Archive compilation core dumps on compile failure - #7645
Conversation
|
One other thing : - |
No I didn't. But I will ask in issue to see if they can test it on my fork and force a failure to prove it work. |
|
@annaibm @mahdipub |
|
@pshipton Kindly review |
When a JVM crash occurs during test compilation (e.g. an AOT relocation crash as seen in eclipse-openj9/openj9#24627), moveDmp.pl moves dump files to output_compilation/ then calls `false` to abort make. This causes the Jenkins shell step in makeCompileTest() to throw before env.jobStatus is updated from its initial SUCCESS value, so the FAILURE branch in post() is never reached and the dumps are wiped by cleanWs. Wrap the compile sh step in a try/catch: archive *.dmp and *.trc from output_compilation/ in the catch block, then re-throw so the build still fails as expected. Fixes: eclipse-openj9/openj9#24627 Signed-off-by: mahdi@ibm.com
224084c to
0e3fadb
Compare
|
@pshipton could you please review again? |
When a JVM crash occurs during test compilation (e.g. an AOT relocation crash as seen in eclipse-openj9/openj9#24627), moveDmp.pl moves dump files to output_compilation/ then calls
falseto abort make. This causes the Jenkins shell step in makeCompileTest() to throw before env.jobStatus is updated from its initial SUCCESS value, so the FAILURE branch in post() is never reached and the dumps are wiped by cleanWs.Wrap the compile sh step in a try/catch: archive *.dmp and *.trc from output_compilation/ in the catch block, then re-throw so the build still fails as expected.
Fixes: eclipse-openj9/openj9#24627
Signed-off-by: mahdi@ibm.com