[
https://issues.apache.org/jira/browse/HADOOP-19950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101026#comment-18101026
]
ASF GitHub Bot commented on HADOOP-19950:
-----------------------------------------
pan3793 opened a new pull request, #8651:
URL: https://github.com/apache/hadoop/pull/8651
### Description of PR
Set `forkedProcessExitTimeoutInSeconds` (60s) in the root surefire
configuration so that a hung fork is force-killed after a grace window
and surefire writes the dumpstream (thread dump) naming the non-daemon
thread keeping the fork alive. Without this, the only signal is a
generic "timeout in the fork" error.
Expand the test-logs artifact upload globs from:
```
**/target/*.log
**/target/*.xml
```
to:
```
**/target/**/*.log
**/target/surefire-reports/**
```
The original globs only matched files directly under `target/`
(`site.xml`, `plugin-enhanced.xml`), missing the actual test reports and
thread dumps in nested directories. The new globs capture `TEST-*.xml`,
`*.dump`, and `*.dumpstream` surefire output needed to diagnose fork
hangs.
### How was this patch tested?
Verified via GitHub Actions CI on a fork branch. With the previous
globs, the uploaded artifact was 7KB (2 incidental files). With the new
globs, the artifact is ~112MB and contains the full `surefire-reports/`
directory, including the `*.dump` thread dump that named the culprit
test keeping a fork alive.
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(HADOOP-19950)?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
### AI Tooling
If an AI tool was used:
- [x] The PR includes the phrase "Contains content generated by GLM 5.2"
where GLM 5.2 is the name of the AI tool used.
- [x] My use of AI contributions follows the ASF legal policy
https://www.apache.org/legal/generative-tooling.html
Contains content generated by GLM 5.2
> Capture surefire diagnostics on fork timeout in CI
> --------------------------------------------------
>
> Key: HADOOP-19950
> URL: https://issues.apache.org/jira/browse/HADOOP-19950
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: test
> Reporter: Cheng Pan
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]