Just uploading result with -u, exit status corresponds to assessment #284
Comments
Two things come to my mind; probably should not:
|
Currently the return code corresponds to what is in the man page:
This behaviour was designed long ago by the former Preupgrade Assistant maintainer when he changed the meaning of return codes 0-2 so they reflect the risks in the report. Anyway, I'm not trying to defend the current solution. I'm for both updates you mention:
|
Yeah, that was actually based on a misunderstood downstream bug from us. We just wanted preupg to exit with non-zero if assessment generation failed (ie. one or more modules gave ~ Regarding splitting binary: preupg now:
However, if we want to have one-binary-per-task scheme, I'd be happier if it was designed more consistently, upfront. (I had a shot at this downstream---sorry, not public). Anyway, simply ignoring the report content when uploading (ie. -u means either 0 or 28) would be enough to remove the weirdness. |
If I generate, say, assessment report that has
needs_action
as "worst" result:Then later I upload it using
-u
command:This is counter-intuitive: I just performed "upload" action, which succeeded, but got 1 anyway.
The text was updated successfully, but these errors were encountered: