adoptium / STF

The System Test Framework for executing https://github.com/adoptium/aqa-systemtest
Apache License 2.0
8 stars 35 forks source link

Make 5 attempts at cleaning up sub-processes before giving up #128

Closed Mesbah-Alam closed 2 years ago

Mesbah-Alam commented 2 years ago

Added a loop around the existing logic to clean up child processes to make 5 attempts if cleanup fails. Related : https://github.com/eclipse-openj9/openj9/issues/11557

Signed-off-by: Mesbah-Alam Mesbah_Alam@ca.ibm.com

Mesbah-Alam commented 2 years ago

Tested : https://openj9-jenkins.osuosl.org/job/Grinder_iteration_1/64/console

16:19:02  STF 20:15:14.933 - Killing processes: LT2
16:19:02  STF 20:15:14.933 -   o Process clean up attempt 1 for LT2 pid 17498508
16:19:02  STF 20:15:14.933 -   o Process LT2 pid 17498508 stop()
16:19:12  STF 20:15:24.934 -   o Process LT2 pid 17498508 terminate()
16:19:24  STF 20:15:34.935 -   o Process clean up attempt 2 for LT2 pid 17498508
16:19:24  STF 20:15:34.935 -   o Process LT2 pid 17498508 stop()
16:19:26  STF 20:15:38.935 -   o Process LT2 pid 17498508 killed
16:19:26  STF 20:15:38.936 - EXECUTE stage completed
16:19:26  STF 20:15:39.218 - 
16:19:26  STF 20:15:39.218 - ====================   T E A R D O W N   ====================
16:19:26  STF 20:15:39.218 - Running teardown: perl /home/jenkins/workspace/Grinder_iteration_1/aqa-tests/TKG/../TKG/output_16542008891973/TestIBMJlmRemoteClassNoAuth_0/20220602-201450-TestIBMJlmRemoteClassNoAuth/tearDown.pl
16:19:26  STF 20:15:39.324 - TEARDOWN stage completed
16:19:26  STF 20:15:39.335 - 
16:19:26  STF 20:15:39.335 - =====================   R E S U L T S   =====================
16:19:26  STF 20:15:39.335 - Stage results:
16:19:26  STF 20:15:39.336 -   setUp:     pass
16:19:26  STF 20:15:39.336 -   execute:   pass
16:19:26  STF 20:15:39.336 -   teardown:  pass
16:19:26  STF 20:15:39.336 - 
16:19:26  STF 20:15:39.336 - Overall result: PASSED
16:19:26  
16:19:26  TestIBMJlmRemoteClassNoAuth_0_PASSED