gnodet opened a new pull request, #1558: URL: https://github.com/apache/maven-mvnd/pull/1558
## Summary - Add 100ms sleep between polling iterations in `TestRegistry.awaitIdle()` to avoid tight busy-loop spinning on file lock acquisition - Increase timeout from 5s to 30s to accommodate slow CI environments ## Problem `StopStatusTest.stopStatus` (and other tests using `awaitIdle`) intermittently fail on macOS ARM64 CI runners with: ``` java.lang.AssertionError: Daemon <id> should have become idle within 5000 ``` Root cause: `awaitIdle()` was a tight busy-loop calling `getAll()` on every iteration. Each `getAll()` call acquires a file lock on the daemon registry, causing contention. The 5000ms timeout was too short for CI runners under load. ## Test plan - [x] Builds successfully - The fix reduces lock contention and provides a more generous timeout, making the test robust on slow CI environments without significantly increasing test duration (the sleep only applies while waiting) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
