gnodet opened a new pull request, #14035:
URL: https://github.com/apache/maven/pull/14035

   ## Summary
   
   Drop the flaky parallel-worker assertion in `MavenITmng8445DiDumpTest`.
   
   ## Root Cause
   
   The test asserted that at least two distinct thread IDs were observed when 
building
   three modules with `-T 8`. With a fast `validate`-phase goal and only three 
modules,
   the thread-pool scheduler can legitimately assign all three sequentially to 
the same
   thread — this is not a Maven bug, just non-deterministic scheduling. The 
assertion
   fired intermittently (observed on macOS JDK 17 in CI).
   
   ## Fix
   
   Remove the probabilistic multi-thread assertion. The parallel `BuilderCase` 
entries
   are still exercised to verify that the DI dump mechanism is safe under a 
concurrent
   builder configuration. The per-module count check
   (`assertEquals(MODULE_PATHS.size(), workerIds.size())`) is kept to ensure 
all modules
   ran.
   
   ## Tests
   
   No new tests needed — this IS the test fix.
   
   ---
   _Hermes Agent on behalf of Guillaume Nodet_
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to