Commit 152bd8a
committed
[MINOR] Upgrade Surefire to 3.5.2 and harden fork shutdown
- Bump maven-surefire-plugin from 3.0.0 to 3.5.2.
- Switch the fork <-> Surefire control channel to TCP via
SurefireForkNodeFactory. The default pipe-based channel can
deadlock on fork shutdown when child threads are still writing
to stdout/err (SUREFIRE-1722), which matches the hang pattern
observed in the **.component.c**.** GitHub Actions job: a fork
finishes its test class, fails to exit, and the whole job
stalls until the 30 minute CI cap.
- Add forkedProcessExitTimeoutInSeconds=30 so a fork that still
has live non-daemon threads after its test class completes is
forcibly killed instead of stalling the run.
- Enable enableProcessChecker=native so each fork detects a dead
parent and self-terminates, and Surefire can more reliably kill
stuck forks on Linux.
These changes target the intermittent ~26 minute hangs between
test classes seen in the Java component.c CI matrix.1 parent 88c26e2 commit 152bd8a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| |||
0 commit comments