HDDS-10080. Let junit.sh fail if no tests were matched in repeated run #6036
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Repeated tests in
junit.sh
should fail fast if no tests are executed in the first iteration. The goal is to indicate if the wrong test filter was used (e.g. abstract test class).https://issues.apache.org/jira/browse/HDDS-10080
How was this patch tested?
Local tests
Non-existent class:
Non-existent method in existing class:
Valid test class:
flaky-test-check
Used flaky-test-check from HDDS-10079.
Non-existent test method:
https://github.com/adoroszlai/ozone/actions/runs/7584500146/job/20658460541
Abstract test class:
https://github.com/adoroszlai/ozone/actions/runs/7584281925/job/20657631720
Specific method in abstract test class:
https://github.com/adoroszlai/ozone/actions/runs/7584288405/job/20657650841
Valid test class and method:
https://github.com/adoroszlai/ozone/actions/runs/7584274733/job/20657610659
Regular CI
https://github.com/adoroszlai/ozone/actions/runs/7584240425