RFR: 7903217: jtreg could try killing descendants of stuck test, before timing out the test [v2]

Gerard Ziemski gziemski at openjdk.org
Mon Aug 22 20:18:43 UTC 2022


> This is an enhancement that aims to improve the robustness of the testing by attempting to quit any child processes (that are possibly stuck and are blocking the parent process from terminating) before timing out the target parent process.
> 
> Aborting a process will flush its stdout/stderr streams, which will hopefully get captured in the test's log and provide additional clues as to why a test was timing out.
> 
> This enhancement was locally tested with a handcrafted test that itself launched a child process that would get stuck on purpose and worked as intended.
> 
> Hopefully, this will help debug issues such as [JDK-8286345](https://bugs.openjdk.org/browse/JDK-8286345)

Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:

  use process out stream to write meesages

-------------

Changes:
  - all: https://git.openjdk.org/jtreg/pull/97/files
  - new: https://git.openjdk.org/jtreg/pull/97/files/56707613..b2b59d44

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jtreg&pr=97&range=01
 - incr: https://webrevs.openjdk.org/?repo=jtreg&pr=97&range=00-01

  Stats: 43 lines in 1 file changed: 19 ins; 1 del; 23 mod
  Patch: https://git.openjdk.org/jtreg/pull/97.diff
  Fetch: git fetch https://git.openjdk.org/jtreg pull/97/head:pull/97

PR: https://git.openjdk.org/jtreg/pull/97


More information about the jtreg-dev mailing list