You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "joshiste (via GitHub)" <gi...@apache.org> on 2026/07/22 12:24:59 UTC

[I] Support runOrder=balanced with forkCount>1 (without parallel=classes) [maven-surefire]

joshiste opened a new issue, #3396:
URL: https://github.com/apache/maven-surefire/issues/3396

   ### New feature, improvement proposal
   
   `runOrder=balanced` currently sizes its class distribution only by the parallel `threadCount` (from `parallel` / `-DthreadCount`). When tests are parallelised with `forkCount>1` but **without** `parallel=classes`, `threadCount` is `1`, so `balanced` degrades to a plain slowest-first list and ignores the number of forks that actually consume the tests.
   
   **Proposal:** size the balanced distribution by the real concurrency — `forkCount × threadCount` — so `balanced` is effective with `forkCount>1` even without `parallel=classes`.
   
   **Sketch:** propagate `forkCount` to the provider via a `forkcount` provider property (mirroring the existing `threadcount`) and use `threadCount × forkCount` as the bin-packing width in `DefaultRunOrderCalculator`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org