-
Notifications
You must be signed in to change notification settings - Fork 802
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
stage_executor,layers: burst cache of layers
if heredoc content is changed
#5261
stage_executor,layers: burst cache of layers
if heredoc content is changed
#5261
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@containers/buildah-maintainers PTAL |
LGTM |
LGTM after the two extra files are removed |
LGTM after comments addresses |
0af4509
to
14bcb82
Compare
Done. |
a39392e
to
6dc71f6
Compare
When using buildah with `--layers` then buildah must correctly burst layer cache if `heredoc` content is changed. Following is achieved via properly adding `heredoc` content to the history of the built image. Closes: containers#5225 Signed-off-by: flouthoc <flouthoc.git@gmail.com>
6dc71f6
to
339839d
Compare
/lgtm |
|
||
# on third run since we have changed heredoc so `Cache burst` must be printed. | ||
run_buildah build $WITH_POLICY_JSON --layers -t source -f $contextdir/Dockerfile | ||
expect_output --substring "Cache burst" |
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.
Suggestion: "Cache burst add diff"
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.
@edsantiago I have fixed this is a new PR with another feature: #5314
When using buildah with
--layers
then buildah must correctly burst layer cache ifheredoc
content is changed. Following is achieved via properly addingheredoc
content to the history of the built image.Closes: #5225
What type of PR is this?
What this PR does / why we need it:
Closes: #5225
How to verify it
Newly added integration test
Which issue(s) this PR fixes:
Closes: #5225
Special notes for your reviewer:
Does this PR introduce a user-facing change?