-
Notifications
You must be signed in to change notification settings - Fork 117
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
fix(build): avoid docker cache contamination and invalidation #4254
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use scoped caching and more file ignores to reduce cache invalidation
3 tasks
Testing in another PR, there might be a missing fix on this one. |
teor2345
reviewed
May 3, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I understand how this cache is used, so it's hard for me to review this PR.
dconnolly
reviewed
May 3, 2022
dconnolly
reviewed
May 3, 2022
dconnolly
reviewed
May 3, 2022
dconnolly
reviewed
May 3, 2022
dconnolly
approved these changes
May 3, 2022
It's fun how this change didn't fail in other PRs where I've been using it, but it failed when merged to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-devops
Area: Pipelines, CI/CD and Dockerfiles
C-bug
Category: This is a bug
C-enhancement
Category: This is an improvement
do-not-merge
Tells Mergify not to merge this PR
I-build-fail
Zebra fails to build
I-integration-fail
Continuous integration fails, including build and test failures
lightwalletd
any work associated with lightwalletd
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
We've been having issues with image building, and cache is not being as effectively as when initially implemented. And jobs are failing mainly when an image takes more than 45 minutes to build. The specific root cause is unknown, but this is also a good workaround.
Fixes #4234
Solution
.dockerignore
Review
@teor2345 and @dconnolly can review this
Reviewer Checklist
Follow Up Work
scopes
to target specific images.