Skip to content

Commit

Permalink
Try automatically re-running failed tests
Browse files Browse the repository at this point in the history
This will try to rerun failed tests up to three times.
The side effect is that a very broken test run will take much
longer to complete, but it is hoped for those few
https://github.com/eclipse-cdt/cdt/labels/flakytests in the system
this will resolve the issue.

Note this is applied only to the GitHub actions run, not to Jenkins
run where we build releases from. Ideally we don't want to do that
there.

In a future commit we can consider removing flakyTest from -DexcludedGroups
too.

See [surefire docs](https://maven.apache.org/surefire/maven-surefire-plugin/examples/rerun-failing-tests.html)
for details.
  • Loading branch information
jonahgraham committed Jan 24, 2025
1 parent e6cac16 commit 11dfaa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
-DexcludedGroups=flakyTest,slowTest \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Ddsf-gdb.skip.tests=$(test ${{ steps.filter.outputs.dsf }} == 'false' && echo 'true' || echo 'false') \
-Dindexer.timeout=300
-Dindexer.timeout=300 \
-Dsurefire.rerunFailingTestsCount=3
- name: Upload Logs
uses: actions/upload-artifact@v4
if: success() || failure()
Expand Down

0 comments on commit 11dfaa4

Please sign in to comment.