Parallel tests#2190
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the tmt test runner to support parallel execution of test plans using std::thread. It introduces a RunPlanResult struct and extracts the core test logic into a run_plan function. The review feedback identifies several opportunities for improvement, including addressing interleaved console output from concurrent threads, optimizing the thread-joining logic to avoid waiting for entire batches, handling potential panics when querying system parallelism, and removing redundant clones of owned objects.
| } | ||
| } | ||
|
|
||
| fn run_plan( |
There was a problem hiding this comment.
There was a problem hiding this comment.
Yeah this is an issue, but the final pass vs fail output is logged sequentially
122ad1a to
93f4abf
Compare
cgwalters
left a comment
There was a problem hiding this comment.
Without any kind of deeper review, I think what we really want to do is upstream into https://github.com/teemtee/tmt support for bcvk.
I believe it already has support for concurrency (I mean I'd hope) and such - and that would make it a lot more sustainable for other projects to use tmt+bcvk (and we have many in the ecosystem that would make sense to do so)
| - uses: actions/checkout@v6 | ||
| - name: Bootc Ubuntu Setup | ||
| uses: bootc-dev/actions/bootc-ubuntu-setup@main | ||
| uses: Johan-Liebert1/bootc-actions/bootc-ubuntu-setup@main |
There was a problem hiding this comment.
I think we could add an option to the action which fetches bcvk's binary built from git main or so
There was a problem hiding this comment.
Yeah, that'd help
| plan: String, | ||
| vm_name: String, | ||
| image: String, |
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
93f4abf to
f2bbb18
Compare
|
One or two test failures, but not as good of a speedup as I'd had locally. GA seems to have 4cpu |
|
Yes, we can bump to larger runners though. I was experimenting with that previously in bootc-dev/ci-sandbox#1 but it's been a while |
Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
Container for package was being rebuilt in "Unit and container integration tests" of the CI as build args were different than an already build container with the same target Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
No description provided.