Project

General

Profile

Actions

action #130778

open

Treat some openqa-clone-job failures non-fatal in openqa-investigate hook

Added by tinita over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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

Related issues 1 (0 open1 closed)

Copied from openQA Infrastructure (public) - action #99741: Minion jobs for job hooks failed silently on o3 size:MResolveddheidler2021-10-04

Actions
Actions #1

Updated by tinita over 1 year ago

  • Copied from action #99741: Minion jobs for job hooks failed silently on o3 size:M added
Actions #2

Updated by tinita over 1 year ago

  • Description updated (diff)
Actions #3

Updated by okurz over 1 year ago

  • Tags set to reactive work
  • Target version set to future
Actions

Also available in: Atom PDF