Closed rail closed 5 years ago
Weird. Do we know which python that is? signingscript?
I think I know what this is. scriptworker.task.worst_level
assumes that we want to exit with the largest of the statuses... 0 if successful, otherwise an exit code of 1 will be failure, 2 for worker-shutdown, etc. But the status here is -9
, so when we upload artifacts, we compare -9 vs 0, and the worst_level
(according to the logic) is 0.
I think we should either translate -9 to a positive int (is this wrap-around from 255?) or change the worst_level
function (maybe compare absolute values of the exit codes?) or make worst_level
prefer non-zero, or?
Edit: maybe we should treat non-zero exit code as a 1
status, and we should either return that, or raise an exception that corresponds to exit code 1 .
I was testing the new GCP workers and hit this issue due to network timeout to the autograph server (some netlows still should be open). The task was marked as green while the logs stated that something went wrong: