diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0bf9be49f..521807af40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,7 +179,7 @@ jobs: run: | TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh jdk` echo "Tests: $TESTS" - ./mvnw test -nsu -B -Pauth-server-quarkus -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh + ./mvnw test -Dsurefire.rerunFailingTestsCount=${{ env.SUREFIRE_RERUN_FAILING_COUNT }} -nsu -B -Pauth-server-quarkus -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh - name: Upload JVM Heapdumps if: always() @@ -193,6 +193,13 @@ jobs: api-key: ${{ secrets.FORESIGHT_API_KEY }} surefire-reports-path: 'testsuite/integration-arquillian/tests/base/target/surefire-reports/*.xml' + - uses: ./.github/actions/upload-flaky-tests + name: Upload flaky tests + env: + GH_TOKEN: ${{ github.token }} + with: + job-name: Java Distribution IT + databases-new-store: name: Databases New Store runs-on: ubuntu-latest @@ -236,7 +243,7 @@ jobs: TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh database` echo "Tests: $TESTS" - ./mvnw test -nsu -B -Pauth-server-quarkus ${PARAMS["${{ matrix.db }}"]} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh + ./mvnw test -Dsurefire.rerunFailingTestsCount=${{ env.SUREFIRE_RERUN_FAILING_COUNT }} -nsu -B -Pauth-server-quarkus ${PARAMS["${{ matrix.db }}"]} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh - name: Upload JVM Heapdumps if: always() @@ -250,6 +257,13 @@ jobs: api-key: ${{ secrets.FORESIGHT_API_KEY }} surefire-reports-path: 'testsuite/integration-arquillian/tests/base/target/surefire-reports/*.xml' + - uses: ./.github/actions/upload-flaky-tests + name: Upload flaky tests + env: + GH_TOKEN: ${{ github.token }} + with: + job-name: New Store IT + legacy-store-integration-tests: name: Legacy Store IT needs: build @@ -270,7 +284,7 @@ jobs: run: | TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh database` echo "Tests: $TESTS" - ./mvnw test -nsu -B -Pauth-server-quarkus -Pdb-${{ matrix.db }} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh + ./mvnw test -Dsurefire.rerunFailingTestsCount=${{ env.SUREFIRE_RERUN_FAILING_COUNT }} -nsu -B -Pauth-server-quarkus -Pdb-${{ matrix.db }} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh - name: Upload JVM Heapdumps if: always() @@ -284,6 +298,13 @@ jobs: api-key: ${{ secrets.FORESIGHT_API_KEY }} surefire-reports-path: 'testsuite/integration-arquillian/tests/base/target/surefire-reports/*.xml' + - uses: ./.github/actions/upload-flaky-tests + name: Upload flaky tests + env: + GH_TOKEN: ${{ github.token }} + with: + job-name: Legacy Store IT + store-model-tests: name: Store Model Tests runs-on: ubuntu-latest @@ -319,7 +340,7 @@ jobs: - name: Run cluster tests run: | - ./mvnw test -nsu -B -Pauth-server-cluster-quarkus -Dsession.cache.owners=2 -Dtest=**.cluster.** -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh + ./mvnw test -Dsurefire.rerunFailingTestsCount=${{ env.SUREFIRE_RERUN_FAILING_COUNT }} -nsu -B -Pauth-server-cluster-quarkus -Dsession.cache.owners=2 -Dtest=**.cluster.** -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh - name: Upload JVM Heapdumps if: always() @@ -333,6 +354,13 @@ jobs: api-key: ${{ secrets.FORESIGHT_API_KEY }} surefire-reports-path: 'testsuite/integration-arquillian/tests/base/target/surefire-reports/*.xml' + - uses: ./.github/actions/upload-flaky-tests + name: Upload flaky tests + env: + GH_TOKEN: ${{ github.token }} + with: + job-name: Legacy Clustering IT + fips-unit-tests: name: FIPS UT runs-on: ubuntu-latest @@ -382,7 +410,7 @@ jobs: run: | TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh fips` echo "Tests: $TESTS" - ./mvnw test -nsu -B -Pauth-server-quarkus,auth-server-fips140-2 -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh + ./mvnw test -Dsurefire.rerunFailingTestsCount=${{ env.SUREFIRE_RERUN_FAILING_COUNT }} -nsu -B -Pauth-server-quarkus,auth-server-fips140-2 -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh - name: Upload JVM Heapdumps if: always() @@ -396,6 +424,13 @@ jobs: api-key: ${{ secrets.FORESIGHT_API_KEY }} surefire-reports-path: 'testsuite/integration-arquillian/tests/base/target/surefire-reports/*.xml' + - uses: ./.github/actions/upload-flaky-tests + name: Upload flaky tests + env: + GH_TOKEN: ${{ github.token }} + with: + job-name: FIPS IT + check-set-status: name: Set check conclusion needs: