Skip to content

Slow to write cache file questions #770

@two-plus-two-equals-five

Description

Hey all, thanks for building such a handy action! It's been really easy to use so far (and nice tests btw 🤩) ❤️

I wanted to ask: is it common for the "Post Docker Cache step" to take ~3 min to store the cache file in Github, or am I doing something wrong to make this happen?
Screenshot 2023-12-31 at 2 19 48 am
Screenshot 2023-12-31 at 2 21 01 am

The Cache saved successfully line is outputted about 10 seconds into the "Post Docker Cache step", so I'm wondering what else is going in that other 2 minutes and ~50 seconds.

Is this slowness a known limitation imposed by Github? (Note: I'm using the free tier).
Asking as: I'm new to ts, but from what I've been able to piece together from your action's code is, I think it's using Github's cache library/action under the hood to handle storing the cache file in Github. I can't tell what version of the action it is using, but could this slowness be caused by the cache action version your code is using?

I'm mainly raising this as my jobs take about ~40 seconds to complete without caching enabled but over 3 min when caching is enabled, but the cache file is not found. It feels like such a shame to have such a useful action be affected by something like this, so if I can help fix this in any way, please say!
Screenshot 2023-12-31 at 2 19 37 am

My workflow file:
Screenshot 2023-12-31 at 2 48 57 am

I hope the above information is helpful. Again, if I can help in any way, please say. Oh and happy new year to you all!

Metadata

Metadata

Labels

performanceMake it faster or use fewer resourceswontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions