rpminspect / rpminspect-tag-runner

Scripts to run rpminspect against an entire tag of packages
GNU General Public License v3.0
0 stars 1 forks source link

Thread logic needs to allow multiple runs #9

Open jimbair opened 2 years ago

jimbair commented 2 years ago

When running two runs (say c8s and c9s) at the same time, the following loop logic bleeds between the two runs:

https://github.com/rpminspect/rpminspect-tag-runner/blob/main/tag_runner.sh#L130

I suspect we can do something clever to allow this without it being too convoluted.

jimbair commented 1 year ago

This also runs into stuck builds; if we run into a bug where a build stalls out and you kill the script, the subsequent run will run work until the end of inspections, then it waits for the stuck inspection still. I ran into this with a stuck comparison build on el9 but when I started an el8 run, it got stuck at the end of inspections but before the comparisons.

This would also solve that issue (and we probably should have a trap() to pkill runs as well.