aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

Run terminateTestProcesses before git clone

Open llxia opened this issue 9 months ago • 1 comments

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 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().

llxia avatar Mar 05 '25 21:03 llxia

@LongyuZhang could you work on this? Thanks

llxia avatar Jun 26 '25 17:06 llxia