adoptium / adoptium/aqa-tests

Run terminateTestProcesses before git clone

Open
#6,006 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

We do `forceCleanWS()` before git clone to ensure a clean workspace.
https://github.com/adoptium/aqa-tests/blob/master/buildenv/jenkins/openjdk_tests#L457

We have noticed on Windows (maybe z/OS as well), if the previous job exited not cleanly (i.e., Jenkins restarted) and left a running Java process holding the folder, the next job that lands on the machine cannot run cleanWs. When this happens, the job will fail and the machine will be marked offline automatically.

I think we should do a little more - try to kill the level over processes. It means to run [terminateTestProcesses.sh](https://github.com/adoptium/aqa-tests/blob/master/terminateTestProcesses.sh) to terminate any left over processes before the first `forceCleanWS()`. Because the repo is not cloned yet at this time, we need to download the script alone/separately and run it before forceCleanWS().

Contributor guide

Open the contributing guide

Research direction

Start at buildenv/jenkins/openjdk_tests around line 457 and inspect terminateTestProcesses.sh. Determine how to obtain and run that script before the first forceCleanWS(), before the repository is cloned. Done means leftover processes are terminated before cleanup is attempted.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
ci-cd, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.