mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Try automatically re-running failed tests
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.
This commit is contained in:
parent
e6cac160f4
commit
11dfaa4c0b
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build-test.yml
vendored
3
.github/workflows/build-test.yml
vendored
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue