adoroszlai opened a new pull request, #1229: URL: https://github.com/apache/ratis/pull/1229
## What changes were proposed in this pull request? There are some flaky tests that frequently fail in CI. Re-running the entire _unit (...)_ check is wasteful. It may not be successful for a few attempts, as various tests may fail in each re-try. Changes in this PR: - introduce `@Flaky` annotation - identify soem tests failing recently and tag them as flaky - configure Surefire to automatically re-run flaky tests few times until successful https://issues.apache.org/jira/browse/RATIS-2217 ## How was this patch tested? ``` Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.471 s - in org.apache.ratis.server.simulation.TestLeaderElectionWithSimulatedRpc Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.667 s - in org.apache.ratis.grpc.TestLeaderElectionWithGrpc Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 155.428 s <<< FAILURE! - in org.apache.ratis.grpc.TestRaftWithGrpc org.apache.ratis.grpc.TestRaftWithGrpc.testWithLoad(boolean)[2] Time elapsed: 101.104 s <<< ERROR! ... Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.32 s - in org.apache.ratis.grpc.TestRaftWithGrpc Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.372 s - in org.apache.ratis.netty.TestLeaderElectionWithNetty Results: Flakes: org.apache.ratis.grpc.TestRaftWithGrpc.testWithLoad(boolean)[2] Run 1: TestRaftWithGrpc.testWithLoad(boolean)[2] ยป Timeout testWithLoad(boolean) time... Run 2: PASS Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Flakes: 1 ... Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 61.132 s - in org.apache.ratis.TestMultiRaftGroup ``` https://github.com/adoroszlai/ratis/actions/runs/13540259283/job/37839566776#step:11:2587 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
