action #154798
opencoordination #154768: [saga][epic][ux] State-of-art user experience for openQA
Batch update for jobs
0%
Description
When working on: https://foursixnine.io/blog/linux/tech/qualityassurance/openqa/2024/01/25/testingkernelswithsporadicissuesuntilheisenbugshowsinopenqa.html
I had to write a small bash oneline:
The script will generate a file called: jobs-launched.list, in case you absolutely need to change the priority of the jobs, set it to 45, so it runs higher than default priority, which is 50
cat jobs-launched.list | grep https | sed -E 's/^.*->\s.*tests\///' | xargs -r -I {} bash -c "openqa-cli api --osd -X POST jobs/{}/prio prio=45; sleep 1"
That sleep 1, is needed, as otherwise the webUI will return 503's constantly, As a Test Engineer, I would like to be able to pass a collection of job ids, to perform updates.