-
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
podman-remote build: can fail but exit 0 (success) #10029
Comments
Is this a flake? If it's not, and it's consistent, this is probably a mistake in how remote Build is written (either not returning or correctly handling an error) |
Flake. The above reproducer works fine for the first 50-100 iterations, it just fails randomly. (Same in CI). |
Alright, it's a race then. Damn, I was hoping this one was going to be simple. |
I might have a fix. |
We have a race condition where podman build can fail but still return an exit code of 0. This PR ensures that as soon as the build fails, the failed flag is set eliminating the race. Fixes: containers#10029 [NO TESTS NEEDED] Tests of failed builds are already in place, and the elimination of the race should be enough. Signed-off-by: Daniel J Walsh <[email protected]>
@rhatdan I'm sorry... no-go. It takes a lot longer than before (30 seconds instead of about 10), but the race is still there. |
We have a race condition where podman build can fail but still return an exit code of 0. This PR ensures that as soon as the build fails, the failed flag is set eliminating the race. Fixes: containers#10029 [NO TESTS NEEDED] Tests of failed builds are already in place, and the elimination of the race should be enough. Signed-off-by: Daniel J Walsh <[email protected]>
We have a race condition where podman build can fail but still return an exit code of 0. This PR ensures that as soon as the build fails, the failed flag is set eliminating the race. Fixes: containers#10029 [NO TESTS NEEDED] Tests of failed builds are already in place, and the elimination of the race should be enough. Signed-off-by: Daniel J Walsh <[email protected]>
[ Forked from #9751 ]
podman-remote build sometimes fails but returns exit status 0. Trivial reproducer (assumes podman system service running elsewhere):
master @ 14ec3a6, also in podman-3.1.0-3.fc33
The text was updated successfully, but these errors were encountered: