Project

General

Profile

Actions

action #180218

open

openqa-investigate leaves temporary job comments "Starting investigation for job ..." size:S

Added by tinita 11 days ago. Updated 9 days ago.

Status:
Workable
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2025-04-08
Due date:
% Done:

0%

Estimated time:

Description

Observation

As part of #180065 we saw that in some cases the "Starting investigation for job ..." comments aren't deleted:
https://openqa.suse.de/tests/17281378#comments

These comments are made during openqa-investigate runs and are supposed to be deleted when the real investigation comment with the cloned jobs is written.

If cloning fails, the script aborts and never deletes those comments.

Acceptance criteria

  • AC1: If openqa-investigate aborts, no confusing leftover comments exist
  • AC2: Given openqa-investigate is started on a job When it successfully finishes Then there is exactly one comment with the links to the cloned jobs
  • AC3: Given openqa-investigate is started on a job When it aborts (e.g. because the clone failed) Then there is exactly one comment informing that it aborted (and possibly why)

Suggestions

  • If possible, when cloning fails with a known reason, edit the comment to display that reason (e.g. "Current job 4822599 will fail, because the repositories for the below updates are unavailable")
  • Out of scope: post investigation; that is when openqa-investigate runs a second time on the cloned jobs and posts a comment on the original one. That can be ignored here

Related issues 1 (0 open1 closed)

Copied from openQA Project (public) - action #180065: openqa-investigate job comments broken, missing job idsResolvedtinita2025-04-05

Actions
Actions #1

Updated by tinita 11 days ago

  • Copied from action #180065: openqa-investigate job comments broken, missing job ids added
Actions #2

Updated by tinita 11 days ago

  • Tags changed from reactive work, osd, openqa-investigation to openqa-investigation

Somehow it seems that was also overlooked in #174601 which suggested "Catch the error and propagate it to openqa investigate and write a comment on the job".

Actions #3

Updated by okurz 10 days ago

  • Target version set to Ready
Actions #4

Updated by gpuliti 9 days ago

  • Subject changed from openqa-investigate leaves temporary job comments "Starting investigation for job ..." to openqa-investigate leaves temporary job comments "Starting investigation for job ..." size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions

Also available in: Atom PDF