-
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
build: relay exitcode
from imagebuildah to registry
#12622
build: relay exitcode
from imagebuildah to registry
#12622
Conversation
Lets see if other tests are happy with this. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, giuseppe 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 |
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
/hold
As expected I have to adjust older tests to receive actual error code instead of |
cmd/podman/images/build.go
Outdated
if w, ok := ee.Sys().(syscall.WaitStatus); ok { | ||
exitCode = w.ExitStatus() | ||
} |
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.
There is no need for this, you can directly call ee.ExitCode()
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.
Nice.
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.
@Luap99 Fixed in latest commit however I think go versions older than 1.12
does not contains ExitCode()
but I think we are not going to be using 1.12
so we should be good.
941e97f
to
cf13541
Compare
Podman does not relay exit code from buildah instead returns a generic error code `125`. Following PR allows `podman` to relay exit code from `imagebuildah` to `registry` as it is. Signed-off-by: Aditya Rajan <[email protected]>
cf13541
to
99619ca
Compare
/lgtm |
Old build tests were expecting genric error code `125` however another commit in this PR ensures that we relay exact exit code from build to registry. Hence adjusting tests Signed-off-by: Aditya Rajan <[email protected]>
99619ca
to
6423174
Compare
/lgtm |
/hold cancel |
Podman does not relay exit code from buildah instead returns a generic
error code
125
. Following PR allowspodman
to relay exit code fromimagebuildah
toregistry
as it is.Closes: #12616