Commit b2c8067
committed
Capture full native-crash diagnostics from all CI test jobs
The previous CI failure on Windows uploaded only the
*.dumpstream file (surefire's view), leaving us no way to see
the JVM crash log, the native callstack, or which @test method
was running when the abort fired. Linux had similar gaps. Fix
both the JVM-side capture and the upload globs across all four
test jobs.
JVM side (pom.xml)
- Add an explicit maven-surefire-plugin 3.5.4 entry (the same
version Maven was auto-selecting in CI, pinned now so we do
not drift independently of plugin-defaults bumps).
- argLine: '@{argLine} -XX:ErrorFile=hs_err_pid%p.log
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=.' .
@{argLine} interpolation preserves the jacoco runtime agent
set by jacoco-maven-plugin:prepare-agent (must not break
coverage); ErrorFile is workspace-relative so the JVM crash
log lands next to the basedir, where the CI upload step
already globs hs_err_pid*.log.
- redirectTestOutputToFile=true so each test class's
stdout/stderr (including the upstream server's I srv ...
log lines, which are the only signal of which @test was
last running before a crash) is captured to
target/surefire-reports/<class>-output.txt.
CI side (.github/workflows/publish.yml)
- All four test jobs (linux-x86_64, macos-14-metal,
macos-15-metal, macos-15-no-metal) expand their failure
upload-artifact path globs to:
hs_err_pid*.log
*.hprof (heap dumps on OOM)
core.* (linux only — already)
target/surefire-reports/*.dump
target/surefire-reports/*.dumpstream
target/surefire-reports/*.txt (per-class summary + the
new -output.txt capture)
target/surefire-reports/TEST-*.xml
- Windows test job gains an 'Enable WER LocalDumps for
java.exe' step BEFORE 'Run tests'. Registers
HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting
\LocalDumps\java.exe with DumpFolder=workspace\dumps,
DumpType=2 (MiniDumpWithFullMemory), DumpCount=5. This is
the Windows analogue of Linux core dumps; without it a
__fastfail / abort from the JNI layer leaves no native
callstack at all. Windows upload path globs add
dumps\*.dmp, *.hprof, *.txt, TEST-*.xml.
Verified
- mvn test -Dtest='ContentPartTest,MultimodalMessagesTest,
CancellationTokenTest': 31 tests pass with the new argLine
+ redirectTestOutputToFile; jacoco coverage report still
generated (52 classes analysed). @{argLine} requires the
full 'mvn test' phase (jacoco prepare-agent runs first);
'mvn surefire:test' direct invocation breaks because @{...}
is a phase-only late binding — CI uses the full phase, so
unaffected.1 parent f399a8c commit b2c8067
2 files changed
Lines changed: 62 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
| 376 | + | |
| 377 | + | |
375 | 378 | | |
376 | 379 | | |
377 | 380 | | |
| |||
447 | 450 | | |
448 | 451 | | |
449 | 452 | | |
| 453 | + | |
450 | 454 | | |
451 | 455 | | |
| 456 | + | |
| 457 | + | |
452 | 458 | | |
453 | 459 | | |
454 | 460 | | |
| |||
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
| 517 | + | |
511 | 518 | | |
512 | 519 | | |
| 520 | + | |
| 521 | + | |
513 | 522 | | |
514 | 523 | | |
515 | 524 | | |
| |||
569 | 578 | | |
570 | 579 | | |
571 | 580 | | |
| 581 | + | |
572 | 582 | | |
573 | 583 | | |
| 584 | + | |
| 585 | + | |
574 | 586 | | |
575 | 587 | | |
576 | 588 | | |
| |||
617 | 629 | | |
618 | 630 | | |
619 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
620 | 649 | | |
621 | 650 | | |
622 | 651 | | |
| |||
633 | 662 | | |
634 | 663 | | |
635 | 664 | | |
| 665 | + | |
| 666 | + | |
636 | 667 | | |
637 | 668 | | |
| 669 | + | |
| 670 | + | |
638 | 671 | | |
639 | 672 | | |
640 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
272 | 301 | | |
273 | 302 | | |
274 | 303 | | |
| |||
0 commit comments