Actions
action #130778
openTreat some openqa-clone-job failures non-fatal in openqa-investigate hook
Start date:
Due date:
% Done:
0%
Estimated time:
Tags:
Description
Observation¶
Sometimes openqa-clone-job
fails with the following error and exit code 255:
Jun 13 10:44:26 openqa openqa-gru[1676]: openqa-clone-job (62 /opt/os-autoinst-scripts/openqa-investigate): (openqa-clone-job --json-output --skip-chained-deps --max-depth 0 --parental-inheritance --within-instance https://openqa.suse.de/tests/11282276 TEST+=:investigate:last_good_build:20230608-1 _TRIGGER_JOB_DONE_HOOK=1 _GROUP_ID=0 BUILD= OPENQA_INVESTIGATE_ORIGIN=https://openqa.suse.de/t11326981) stderr: >>>Current job 11282276 will fail, because the repositories for the below updates are unavailable<<<
Jun 13 10:44:26 openqa openqa-gru[1676]: openqa-clone-job (62 /opt/os-autoinst-scripts/openqa-investigate): (openqa-clone-job --json-output --skip-chained-deps --max-depth 0 --parental-inheritance --within-instance https://openqa.suse.de/tests/11282276 TEST+=:investigate:last_good_build:20230608-1 _TRIGGER_JOB_DONE_HOOK=1 _GROUP_ID=0 BUILD= OPENQA_INVESTIGATE_ORIGIN=https://openqa.suse.de/t11326981) rc: 255 >>><<<
It means that the cloned job would fail, so it skips cloning and returns 255.
Currently the hook script will abort and be marked as a failure.
Instead we should probably just accept that this job can't be cloned, but try to clone the rest and correctly finish the investigation handling in the script.
Acceptance criteria¶
- AC1: If an investigation job can't be created for the above reason, the hook script should not be marked as a failure
Suggestions¶
- Alternatively use a zero exit code in openqa-clone-job in those cases
Updated by tinita over 1 year ago
- Copied from action #99741: Minion jobs for job hooks failed silently on o3 size:M added
Updated by okurz over 1 year ago
- Tags set to reactive work
- Target version set to future
Actions