Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

CI workflows - Move cache instead of copying #398

Merged
merged 3 commits into from
Jul 5, 2021
Merged

CI workflows - Move cache instead of copying #398

merged 3 commits into from
Jul 5, 2021

Conversation

michalinacienciala
Copy link
Contributor

@michalinacienciala michalinacienciala commented Jun 16, 2021

In keep-ecdsa we've seen a number of workflows failing with No space lefton device error.
The problem was a combination of a big cache size and significant memory
allocation after building Docker image.
According to moby/buildkit#1850:
"At the moment caches are copied over the existing cache so it keeps
growing".
As a temporary fix (until issue gets fixed by GH), we introduced a step
that moves the cache (similarily to how it's described in
moby/buildkit#1896) instead of copying.
Although we havent seen the problems with cache size yet in other
projects than keep-ecdsa, we're applying the solution across the
repositories to decrease the likelyhood of encountering problem in the
future.

See also:
keep-network/keep-ecdsa#822
keep-network/keep-core#2501
keep-network/tbtc#807

In `keep-ecdsa` we've seen a number of workflows failing with `No space
lefton device` error.
The problem was a combination of a big cache size and significant memory
allocation after building Docker image.
According to moby/buildkit#1850:
"At the moment caches are copied over the existing cache so it keeps
growing".
As a temporary fix (until issue gets fixed by GH), we introduced a step
that moves the cache (similarily to how it's described in
moby/buildkit#1896) instead of copying.
Although we havent seen the problems with cache size yet in other
projects than `keep-ecdsa`, we're applying the solution across the
repositories to decrease the likelyhood of encountering problem in the
future.
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
# Without the change some jobs were failing with `no space left on device`
name: Move cache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move it to be the very last step.

@nkuba nkuba merged commit 9ff9564 into main Jul 5, 2021
@nkuba nkuba deleted the ci-move-cache branch July 5, 2021 07:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants