From 6e92a762a3b466dfff1b6c13cc9b24491cc2a13e Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Fri, 25 Aug 2023 15:38:50 -0500 Subject: [PATCH] [Backport 2.x] Retry code coverage upload on failure (#3242) Backport of d7d7f626042a42626bacd25de4af178b8dc37e18 from #3242 Signed-off-by: Peter Nied (cherry picked from commit d7d7f626042a42626bacd25de4af178b8dc37e18) --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecbf4242dd..bcd1d5a9eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,13 +52,17 @@ jobs: cache-disabled: true arguments: | ${{ matrix.gradle_task }} -Dbuild.snapshot=false - -x test - name: Coverage - uses: codecov/codecov-action@v1 + uses: Wandalen/wretry.action@v1.3.0 with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./build/reports/jacoco/test/jacocoTestReport.xml + attempt_limit: 3 + attempt_delay: 2000 + action: codecov/codecov-action@v3 + with: | + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + files: ./build/reports/jacoco/test/jacocoTestReport.xml - uses: actions/upload-artifact@v3 if: always()