-
Notifications
You must be signed in to change notification settings - Fork 102
fix: Non Zero Exit code for no upgradable packages causes build fail #1274
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
fix: Non Zero Exit code for no upgradable packages causes build fail #1274
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1274 +/- ##
==========================================
- Coverage 39.49% 39.31% -0.19%
==========================================
Files 42 42
Lines 5879 5927 +48
==========================================
+ Hits 2322 2330 +8
- Misses 3361 3396 +35
- Partials 196 201 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@ashnamehrotra @robert-cronin I think the pipeline looks fine. The sentinel error is being outputted but the build is still failing when no upgradable packages are present, even though now the shell give exit code 0. I'm confused as to whether I'm not catching the sentinel error at the correct point in the control flow? Would love to have some eyes on this, Thanks! |
|
@amanycodes can we add a CI test for this? We still want the error on the copa side which is correct, since we do not want to create a "patched" tag when the image is unchanged. We just want to have the exit code changed to "0" so that when copa is running in a pipeline it wouldnt cause a CI failure. Does that make sense? |
|
@amanycodes are you still working on this? |
|
Hi @ashnamehrotra , I'm back from midsems, and have started working on it. |
f9f82aa to
1190f66
Compare
Signed-off-by: amanycodes <amanycodes@gmail.com>
Signed-off-by: amanycodes <amanycodes@gmail.com>
Signed-off-by: amanycodes <amanycodes@gmail.com>
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 after rebase
Signed-off-by: Aman <95525722+amanycodes@users.noreply.github.com>
|
@amanycodes looks like there are some test failures, can you ptal? |
The package manager shell commands now always exit with code 0. A marker file is now created within the build context only if upgradable packages are detected. That is read and if no upgradable packages found the sentinel error propagates to
patchSingleArchImageand it catches this error and logs the user that the package is not upgradable (in summary table if multi-arch setting).Attempt to close #1223