[BUILD-765] Generalise re-running of flaky tests Created: 29/Apr/22  Updated: 02/Aug/22

Status: Open
Project: Build
Component/s: Poms
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Federico Grilli Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: foundation_team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Team: Foundation

 Description   

It may be beneficial to apply directly in parent pom what was done in DEV-1938. The default value would be 0 and single projects could change it if needed via a pom property.

In many cases ITs flakiness seems related more to variables outside our control (Selenium or infrastructure quirks) than to actual issues with the underlying functionality being tested or the test-framework
Instead of running a whole build again manually in hopes flaky tests eventually pass, let us give them another chance by re-running them within the same build.
The Maven failsafe plugin option https://maven.apache.org/surefire/maven-failsafe-plugin/examples/rerun-failing-tests.html does precisely that.


Generated at Sun Feb 11 23:44:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.