-
Notifications
You must be signed in to change notification settings - Fork 384
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
storage: use race-free AddNames
instead of SetNames
#1480
Conversation
72d094c
to
1eaae7e
Compare
@giuseppe @vrothberg @mtrmac @nalind This fixes the reported issue. I have also shared a reproducer above which is fixed. |
I have to point to actual |
1eaae7e
to
aa17da2
Compare
aa17da2
to
a939655
Compare
a939655
to
7faba36
Compare
7faba36
to
b500288
Compare
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.
LGTM
b500288
to
0219501
Compare
Wait for containers/storage#1153 and tests to pass here: containers/podman#13339 |
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.
LGTM — just so that it isn‘t forgotten, the replace
in go.mod
should be replaced.
After that is done, and tests pass, feel free to merge without another review.
Also: Thanks! |
9e8da2d
to
b361ff3
Compare
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.
LGTM
b361ff3
to
f118f32
Compare
@mtrmac @vrothberg done. |
LGTM. Can you rebase it over the release, please, so that it’s trivially clear which commits part of 5.20.0 and which commits come after? Feel free to merge afterwards. |
Invoking parallel/concurrent builds from podman race against each other following behviour was fixed in containers/storage#1153 and containers/image#1480 Test verifies if following bug is fixed in new race-free API or not. Read more about this issue, see bz 2055487 for more details. More details here: containers/buildah#3794 and containers#13339 Co-authored-by: Ed Santiago <[email protected]> Signed-off-by: Aditya R <[email protected]>
@containers/image-maintainers @mtrmac @vrothberg I want to backport this commit to Thanks |
@flouthoc, I just created one: https://github.com/containers/image/tree/release-5.16 When backporting, please make sure to bump the version accordingly in |
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.
ACK to the code (but blocked on a c/storage release).
WRT the test failures, is it possible to fix that by updating SKOPEO_BRANCH
on this branch to an appropriate consumer of c/image 5.16?
Invoking parallel/concurrent builds from podman race against each other following behviour was fixed in containers/storage#1153 and containers/image#1480 Test verifies if following bug is fixed in new race-free API or not. Read more about this issue, see bz 2055487 for more details. Test manually backported from: containers@63f92d0 Signed-off-by: Aditya R <[email protected]>
Invoking parallel/concurrent builds from podman race against each other following behviour was fixed in containers/storage#1153 and containers/image#1480 Test verifies if following bug is fixed in new race-free API or not. Read more about this issue, see bz 2055487 for more details. Test manually backported from: containers/podman@63f92d0 Signed-off-by: Aditya R <[email protected]>
Invoking parallel/concurrent builds from podman race against each other following behviour was fixed in containers/storage#1153 and containers/image#1480 Test verifies if following bug is fixed in new race-free API or not. Read more about this issue, see bz 2055487 for more details. More details here: containers/buildah#3794 and containers#13339 Co-authored-by: Ed Santiago <[email protected]> Signed-off-by: Aditya R <[email protected]>
Commits from parallel builds using
SetNames
removesnames
fromstorage for other builds.
Use race-free atomic
AddNames
to prevent breaking of parallel builds.Uses
c/storage
from PR: containers/storage#1153Fixes issue:
Builds fail with image not known.
Reproducer
Dockerfile
FROM quay.io/jitesoft/alpine
PS: I am not sure how to ensure parallel builds in CI and produce a race so not sure how to test this in CI.