Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LIVY-644][TEST] Flaky test: Failed to execute goal org.jacoco:jacoco…
…-maven-plugin:0.8.2:report-aggregate (jacoco-report) on project livy-coverage-report ## What changes were proposed in this pull request? This patch fixes the flaky test: Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.2:report-aggregate (jacoco-report) on project livy-coverage-report. When JVM shutdown no gracefully in a test, the code coverage data file generated by jacoco may be corrupt. Jacoco will throw an exception when generate code coverage report. In Livy integration test, two test cases shut down no gracefully(one of them uses System.exit). We can find random failure when jacoco process code coverage data file generated by that test case. In this patch, we turn off the code coverage analysis on these two test cases. ## How was this patch tested? Compare the jacoco data file generated in the integration test. Before the fix, there're 18 files, and after the fix there're 16 files, which means the fix works. Run 10 builds on Travis each before and after the fix: 1. Before the fix: 3 builds failed due to the jacoco code coverage exception 2. After the fix: No build failed Existing UTs and ITs. Author: yihengwang <[email protected]> Closes apache#229 from yiheng/fix_644.
- Loading branch information