From 11d8069fcdeb3c0de0c4b087e35f06678ad46f6e Mon Sep 17 00:00:00 2001 From: David Arthur Date: Wed, 11 Sep 2024 02:22:54 -0400 Subject: [PATCH] MINOR: Handle new Gradle exit code behavior in deflake.yml (#17158) Reviewers: Chia-Ping Tsai --- .github/workflows/deflake.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deflake.yml b/.github/workflows/deflake.yml index a87b9fe3ed8..d41cacdf96c 100644 --- a/.github/workflows/deflake.yml +++ b/.github/workflows/deflake.yml @@ -53,14 +53,17 @@ jobs: develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }} - name: Test timeout-minutes: 60 + id: junit-test run: | + set +e ./gradlew --info --build-cache --scan --continue \ -PtestLoggingEvents=started,passed,skipped,failed \ -PignoreFailures=true -PmaxParallelForks=2 \ -Pkafka.cluster.test.repeat=${{ inputs.test-repeat }} \ ${{ inputs.test-module }}:test --tests ${{ inputs.test-pattern }} + exitcode="$?" + echo "exitcode=$exitcode" >> $GITHUB_OUTPUT - name: Archive JUnit reports - if: always() uses: actions/upload-artifact@v4 id: junit-upload-artifact with: @@ -69,8 +72,8 @@ jobs: **/build/reports/tests/test/* if-no-files-found: ignore - name: Parse JUnit tests - if: always() run: python .github/scripts/junit.py >> $GITHUB_STEP_SUMMARY env: GITHUB_WORKSPACE: ${{ github.workspace }} REPORT_URL: ${{ steps.junit-upload-artifact.outputs.artifact-url }} + GRADLE_EXIT_CODE: ${{ steps.junit-test.outputs.exitcode }}