action #110176
closed
openQA Project (public) - coordination #102915: [saga][epic] Automated classification of failures
coordination #94105: [epic] Use feedback from openqa-investigate to automatically inform on github pull requests, open tickets, weed out automatically failed tests
[spike solution] [timeboxed:10h] Restart hook script in delayed minion job based on exit code size:M
Added by mkittler over 2 years ago.
Updated over 2 years ago.
Description
Motivation¶
From hook scripts we need to know about results from other hooks scripts.
Acceptance criteria¶
- AC1: We know how a hook script can indicate it is not done yet, e.g. by returning a special exit code
- AC2: We know how openQA would be able to re-run the hook script again in a delayed Minion job in case of AC1
Suggestions¶
- See #109920 for further context and suggestions
- Note: The bash script openqa-investigate itself must not know anything about "openQA minion jobs" or schedule any
- Copied from action #109920: Identify reproducible product issues using openqa-investigate size:M added
- Subject changed from [spike solution] [time-boxed:10h] Restart hook script in delayed minion job based on exit code size:M to [spike solution] [timeboxed:10h] Restart hook script in delayed minion job based on exit code size:M
- Related to action #95783: Provide support for multi-machine scenarios handled by openqa-investigate size:M added
- Status changed from Workable to In Progress
- Due date set to 2022-06-25
Setting due date based on mean cycle time of SUSE QE Tools
Got to catch up a bit on the hook script code, since i've not worked on it before. But it's interesting at least.
Ok, i'm up to speed now. Experimenting with moving hook scripts into a separate Minion task now.
Open questions that remain:
- How to configure the number of retries?
- How to configure the delay?
- Which exit code to use in the real implementation?
- How to handle the output of more than one run? (proof of concept only keeps the latest result)
kraih wrote:
Open questions that remain:
- How to configure the number of retries?
- How to configure the delay?
- Which exit code to use in the real implementation?
https://github.com/os-autoinst/openQA/pull/4703#discussion_r897747670
- How to handle the output of more than one run? (proof of concept only keeps the latest result)
log output for debugging into the gru log for all "skipped" runs, only keep latest result in minion job information.
- Status changed from In Progress to Feedback
- Related to action #112523: Make hook scripts restartable with a special exit code added
- Status changed from Feedback to Resolved
Also available in: Atom
PDF