Skip to content

MINOR: [CI] Upload JVM crash files when the Binaries job fails - #1428

Merged
kou merged 1 commit into
apache:mainfrom
andygrove:ci/upload-binaries-crash-files
Nov 1, 2026
Merged

kou merged 1 commit into
apache:mainfrom
andygrove:ci/upload-binaries-crash-files

Conversation

@andygrove

Copy link
Copy Markdown
Member

What's Changed

When a test JVM crashes in the RC workflow's Binaries job, the log says only Error occurred in starting fork, check output in log, Corrupted channel by directly writing to native stream in forked JVM N and Aborted (core dumped). The details stay on the runner. HotSpot writes hs_err_pid<pid>.log to the module directory, and surefire saves the crash banner the JVM printed to stdout in target/surefire-reports/*.dumpstream. The job uploads neither.

For example, the Binaries job on #1419 failed twice this way (attempt 1, attempt 2). All 46 arrow-dataset tests passed, then the JVM that had run 35 of them aborted, and nothing in the log shows where it crashed.

This adds a step that uploads those files as a binaries-jvm-crash-files artifact when the job fails. It uses the same pinned actions/upload-artifact as the job's other upload steps. if-no-files-found: ignore keeps the step quiet when a failure isn't a crash.

I checked the patterns against a local arrow-dataset crash, which left dataset/hs_err_pid<pid>.log and dataset/target/surefire-reports/<timestamp>-jvmRun<N>.dumpstream. actionlint reports nothing new in rc.yml. The step runs only when the job fails, so this PR's own CI run won't exercise it.

A crashed test JVM leaves hs_err_pid<pid>.log in the module directory and its crash banner in surefire's .dumpstream files, and the job uploaded neither, so a fork crash could not be diagnosed from CI.
@andygrove andygrove added the chore PRs that make misc changes. label Nov 1, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Nov 1, 2026

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Let's try this.

@kou
kou merged commit 0f256ec into apache:main Nov 1, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore PRs that make misc changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants