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

Increases pipeline times instead of decreasing it #305

Open
simplenotezy opened this issue Aug 10, 2022 · 3 comments
Open

Increases pipeline times instead of decreasing it #305

simplenotezy opened this issue Aug 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@simplenotezy
Copy link

Describe the bug
Prior to adding layer caching build took ~2 minutes and 45 seconds.

After adding it, the build time takes 2 minutes and 23 seconds.

However, the actual step (satackey/[email protected]) that's added takes 2 minutes.

So all in all, this increases the overall build time, instead of decreasing it. Any ideas why?

@simplenotezy simplenotezy added the bug Something isn't working label Aug 10, 2022
@simplenotezy
Copy link
Author

This could be due to the fact that I don't really understand the: https://github.com/satackey/action-docker-layer-caching#docker-build

What is the "post run"?

Is there a full example somewhere?

@calteran
Copy link

I'm seeing this too. It seems that over time this is adding more and more layers to the cache, which have to be downloaded and re-uploaded with every build. Cached items expire after 7 days of no use, but if you are frequently running actions, you never expire objects. Github is looking to add a way to manually expire the cache, but ideally that functionality would be built into this action directly.

@isra00
Copy link

isra00 commented Oct 9, 2022

I disabled this action and my build went from 19 min to 8 min. The workflow file is not especially Docker intensive: build a multi-stage image for Development, run the tests, build the Prod image (which uses 80% of the Dev layers):

With Action Docker Layer Caching (19min 56sec): https://github.com/isra00/neo-transposer/actions/runs/3213724751
Without Action Docker Layer Caching (8min): https://github.com/isra00/neo-transposer/actions/runs/3214129406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants