-
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
compat, build: suppress step
errors when quiet=1
is set
#14319
compat, build: suppress step
errors when quiet=1
is set
#14319
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 |
Hi, Thank you for fixing this so quickly ! Since I face this problem on a RHEL (8.6 and 9) with the official podman package, and since it seems to me that this fix isn't quite invaside/risky, would it be possible to also consider a backport in branch 4.0 and an official RHEL 8.6/9 podman package release as well ? Cheers, |
ae2398b
to
cb5856c
Compare
@Romain-Geissler-1A I am not sure if we could backport this or not afaik backports are usually critical bug-fixes but I think since its pretty straight-forward to backport this so maybe this could be picked up as backport candidate. @mheon @rhatdan Would it be possible to consider this as backport candidate ? |
case e := <-stderr.Chan(): | ||
if len(stepErrors) > 0 { |
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.
No need for length check. For loop will not fire if len==0.
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.
fixed :)
Please open a Bugzilla if you wish to have this backported - the backport process lives there. |
Match with docker API and suppress step errors when field quiet is set. Closes: containers#14315 Signed-off-by: Aditya R <[email protected]>
cb5856c
to
2133edb
Compare
LGTM |
@Romain-Geissler-1A Can you verify this fix works for you? |
Hi, I have started an image in privileged mode based on this Dockerfile https://github.com/containers/podman/blob/main/contrib/podmanimage/upstream/Dockerfile targetting this pull request, started the podman service, cloned my own code and tried running this command, and indeed it seems to work:
So as far as I can tell, yes it's validated on my side. Note: it looks like this diff applies cleanly on branch "v4.0". I tried to rpmbuild it on a centos stream 8 image, but went into errors, so I haven't tried this on an actual RHEL 8, only in the above fedora privileged image. Cheers, |
/lgtm |
Just for historical purposes, the backport BZ was opened here: https://bugzilla.redhat.com/show_bug.cgi?id=2089790 |
Match with docker API and suppress step errors when field quiet is set.
Closes: #14315