podman run silently succeeds when container command exits with code 125 #11540
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman run
succeeds with exit code 0 if command inside fails with code 125. This error code is used by meson in case of failures. In CI these two behaviours mean that failing builds like this are silently shown as green, as the exit code is not propagated properly.Steps to reproduce the issue:
podman run registry.fedoraproject.org/fedora sh -c 'exit 125'; echo $?
Describe the results you received:
Exits with code 0
Describe the results you expected:
Exits with non-zero, preferably 125.
man podman-run
describes 125 as "The error is with Podman itself", so it may seem legit to change error 125 of the wrapped command into something else, but anything except zero.Additional information you deem important (e.g. issue happens only occasionally):
This is not specific to the container image. It happens with e.g.
docker.io/alpine
as well. Exit codes 1, 124, 126 etc. behave correctly.Output of
podman version
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: