https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41273

--- Comment #1 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 189714
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189714&action=edit
Bug 41273: Parallelize test execution for improved performance

This patch adds parallel processing to xt/perltidy.t using
Parallel::ForkManager, following the same pattern as xt/pl_valid.t
and xt/tt_tidy.t.

Changes:
- Uses Parallel::ForkManager to process files concurrently
- Auto-detects CPU count via Sys::CPU (respects KOHA_PROVE_CPUS env var)
- Preserves working directory context in forked child processes
- Maintains correct failure tracking in %results hash

Performance improvement: ~N× speedup on N-core systems
(e.g., 8× faster on 8-core, 16× faster on 16-core machines)

Test plan:
1. Clear incremental test cache (if needed):
   docker exec kohadev-koha bash -c 'rm -rf /tmp/koha-ci-results/perltidy*'
2. Run test:
   docker exec kohadev-koha bash -c 'KOHA_PROVE_CPUS=8 prove xt/perltidy.t'
3. Verify all 3138 tests pass
4. Verify test completes significantly faster than before

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to