Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check existence of the layer in cache before pushing in "post-" step. #52

Open
gmanny opened this issue Jun 22, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@gmanny
Copy link

gmanny commented Jun 22, 2023

Is your feature request related to a problem? Please describe.
After the build has gone through the action pushes all the layers from the local action's docker to the cache. Most of those layers normally already exist in the cache, but it seems that GitHub cache only answers with an error about the layer already existing after the whole layer was pushed to the server, so this ends up taking a significant amount of time to the point of making the build overall slower than without caching.

Describe the solution you'd like
Before pushing each layer to the GitHub Actions cache, check whether it already exists, and if it does, don't push the layer to cache. Alternatively, the action can remember which layers it restored from the cache when initially run, and delete those layers from local docker before pushing other layers to cache.

Describe alternatives you've considered
Don't see many alternatives other than removing caching entirely 🙁

@gmanny gmanny added the enhancement New feature or request label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant