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

Rebuild layer if a change in ARG is detected #2938

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

umohnani8
Copy link
Member

@umohnani8 umohnani8 commented Jan 26, 2021

Signed-off-by: Urvashi Mohnani [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

Check whether the ARG in the containerfile is changed by
either the --build-arg flag or local environment and use
the cached layer or rebuild the layer accordingly.
Add tests for this use case as well.

How to verify it

Which issue(s) this PR fixes:

Fixes #2848
Fixes #2837

Special notes for your reviewer:

Does this PR introduce a user-facing change?


@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 26, 2021
@umohnani8
Copy link
Member Author

@nalind @rhatdan PTAL

@TomSweeneyRedHat
Copy link
Member

All kinds of test unhappiness @umohnani8

@umohnani8 umohnani8 force-pushed the arg-cache branch 2 times, most recently from 4a07a77 to d72fc30 Compare January 27, 2021 15:35
@rhatdan
Copy link
Member

rhatdan commented Jan 27, 2021

LGTM

@rhatdan
Copy link
Member

rhatdan commented Jan 27, 2021

@containers/podman-maintainers PTAL

tests/bud.bats Outdated Show resolved Hide resolved
@TomSweeneyRedHat
Copy link
Member

LGTM
One very small question and one nit of a nit in a code comment.
Once I hear back from @umohnani8 I'll merge or wait for the quick repush before merging.

Check whether the ARG in the containerfile is changed by
either the --build-arg flag or local environment and use
the cached layer or rebuild the layer accordingly.
Add tests for this use case as well.

Signed-off-by: Urvashi Mohnani <[email protected]>
@TomSweeneyRedHat
Copy link
Member

LGTM

@TomSweeneyRedHat
Copy link
Member

/lgtm

@umohnani8
Copy link
Member Author

We should backport to 1.19 right?

@TomSweeneyRedHat
Copy link
Member

/approve

1 similar comment
@rhatdan
Copy link
Member

rhatdan commented Jan 28, 2021

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: rhatdan, TomSweeneyRedHat, umohnani8

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 0ec651f into containers:master Jan 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/bug Categorizes issue or PR as related to a bug. lgtm locked - please file new issue/PR
Projects
None yet
5 participants