-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
buildah bud tests under podman-remote #9887
buildah bud tests under podman-remote #9887
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago 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 |
--arch/--os/--platform don't work. --log-rusage either. Will file issues for those later today. |
d1bb4a2
to
b152dc4
Compare
b152dc4
to
e2d1d97
Compare
@edsantiago: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
e2d1d97
to
8b07068
Compare
8b07068
to
92ea8f3
Compare
114c41d
to
f385806
Compare
33c6d93
to
793d8b5
Compare
793d8b5
to
f43c804
Compare
70f0631
to
3b758d3
Compare
@edsantiago Any issues still blocking this? |
Yes. #10154 ("stream dropped") causes 3-5 flakes per run; we can't even dream of merging until that issue is fixed. |
0e7f901
to
09f3b1d
Compare
09f3b1d
to
1b0da61
Compare
1b0da61
to
c893d42
Compare
OMG it passed!! (with #11067) |
c893d42
to
af99f02
Compare
New functionality -- mostly in the diffs we apply to buildah's helpers.bash -- to enable running buildah-bud tests under podman-remote. The gist of it is, we start a 'podman system service' before each test, and clean it up on test exit. Design decision: the diff file for helpers.bash is no longer trailing-whitespace-clean: that ended up producing diffs that git wouldn't apply, because in some cases the whitespace is actually important. In order to pass CI, we need to exclude this file from some checks. Signed-off-by: Ed Santiago <[email protected]>
af99f02
to
ec9dad7
Compare
@containers/podman-maintainers, @containers/build-maintainers, I believe this is ready for review. It's more complicated than I would've liked: the big diffs to Despite the complexity, I think this is worth having. This remote test has already caught a large number of podman-remote bugs, and I think it's likely to catch more in the future. |
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
Thanks for doing this, Ed! Quite a herculean task.
@edsantiago please drop the |
LGTM |
The only thing to do, really, is be careful when touching Where my mind keeps going is: eliminate the diff, put the podman and podman-remote support directly in the buildah repo itself, but that just seems loathsome: buildah really shouldn't know about the kludges done in podman CI. I'd like to do it by some hook- or plugin-based mechanism, but my explorations there just lead to more complexity. |
/lgtm |
When I first enabled buildah-bud tests under podman-remote (containers#9887), I got one aspect all wrong: I added a podman-remote() helper function to match the podman() one. Turns out it's never actually called, even when $PODMAN_BINARY=podman-remote, because functions/aliases don't work that way. The way it works is, those few cases in which bud.bats runs podman are not magically remapped to podman-remote, they use the podman() function. That's where we need to check if we're using podman-remote, and that's where we need to remove the registry-and-rootdir options. With this fix, we can reenable two previously-skipped bud tests. Signed-off-by: Ed Santiago <[email protected]>
A huge ton of skips: podman-remote build just doesn't
really work at all. Lots of issues filed, a few more
left to go. Submitting this just to see how it does in CI.
Signed-off-by: Ed Santiago [email protected]