diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a483efb6b..f633cc40cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,16 +20,18 @@ jobs: matrix: include: # NOTE: Unit Tests include deprecated REST API v6 (as it has unit tests) + # - surefire.rerunFailingTestsCount => try again for flakey tests, and keep track of/report on number of retries - type: "Unit Tests" - mvnflags: "-DskipUnitTests=false -Pdspace-rest" + mvnflags: "-DskipUnitTests=false -Pdspace-rest -Dsurefire.rerunFailingTestsCount=2" resultsdir: "**/target/surefire-reports/**" # NOTE: ITs skip all code validation checks, as they are already done by Unit Test job. # - enforcer.skip => Skip maven-enforcer-plugin rules # - checkstyle.skip => Skip all checkstyle checks by maven-checkstyle-plugin # - license.skip => Skip all license header checks by license-maven-plugin # - xml.skip => Skip all XML/XSLT validation by xml-maven-plugin + # - failsafe.rerunFailingTestsCount => try again for flakey tests, and keep track of/report on number of retries - type: "Integration Tests" - mvnflags: "-DskipIntegrationTests=false -Denforcer.skip=true -Dcheckstyle.skip=true -Dlicense.skip=true -Dxml.skip=true" + mvnflags: "-DskipIntegrationTests=false -Denforcer.skip=true -Dcheckstyle.skip=true -Dlicense.skip=true -Dxml.skip=true -Dfailsafe.rerunFailingTestsCount=2" resultsdir: "**/target/failsafe-reports/**" # Do NOT exit immediately if one matrix job fails # This ensures ITs continue running even if Unit Tests fail, or visa versa