Actions
action #180218
openopenqa-investigate leaves temporary job comments "Starting investigation for job ..." size:S
Start date:
2025-04-08
Due date:
% Done:
0%
Estimated time:
Tags:
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
Updated by tinita 11 days ago
- Copied from action #180065: openqa-investigate job comments broken, missing job ids added
Actions