Skip to content

HDDS-9466. Introduce FlakyTest category for flaky JUnit4 tests#5457

Merged
adoroszlai merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-9466
Oct 19, 2023
Merged

HDDS-9466. Introduce FlakyTest category for flaky JUnit4 tests#5457
adoroszlai merged 2 commits intoapache:masterfrom
adoroszlai:HDDS-9466

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

@Flaky tag only applies to JUnit5 tests. This change implements a similar feature for JUnit4 tests. Now JUnit4 tests can be annotated with @Category(FlakyTest.class) to execute them in integration (flaky) (with few repetitions if necessary) instead of their regular integration split.

Also mark TestStorageContainerManager#testContainerReportQueueTakingMoreTime as flaky (see HDDS-8470).

https://issues.apache.org/jira/browse/HDDS-9466

How was this patch tested?

Test marked as @Category(FlakyTest.class) was executed in integration (flaky):

[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.737 s - in org.apache.hadoop.ozone.scm.TestStorageContainerManager

https://github.com/adoroszlai/hadoop-ozone/actions/runs/6544313982/job/17771626430#step:6:3824

Other tests in same class were executed in integration (scm):

[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 236.343 s - in org.apache.hadoop.ozone.scm.TestStorageContainerManager

https://github.com/adoroszlai/hadoop-ozone/actions/runs/6544313982/job/17771625577#step:5:3848

@adoroszlai adoroszlai self-assigned this Oct 17, 2023
Copy link
Contributor

@sadanand48 sadanand48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adoroszlai for the patch, LGTM.

@adoroszlai adoroszlai merged commit f656e3e into apache:master Oct 19, 2023
@adoroszlai adoroszlai deleted the HDDS-9466 branch October 19, 2023 08:48
@adoroszlai
Copy link
Contributor Author

Thanks @sadanand48 for the review.

ibrusentsev pushed a commit to ibrusentsev/ozone that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants