From ac2840243a5313a7d3a93feded3cea6cfb76fa28 Mon Sep 17 00:00:00 2001 From: "sammy.huang" Date: Tue, 25 Jun 2024 11:51:30 +0800 Subject: [PATCH] enhance: revert dead try on uploading codecov (#34130) This reverts commit 19936d9994b11bde6d417944c7b699107a93e0c7. Signed-off-by: Liang Huang --- .github/workflows/main.yaml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5885d8f92a..3460fa2bb7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -266,14 +266,21 @@ jobs: ls -lah - name: Upload coverage to Codecov if: ${{ github.repository == 'milvus-io/milvus' }} - uses: Wandalen/wretry.action@v3.5.0 + uses: codecov/codecov-action@v4 + id: upload_cov with: - action: codecov/codecov-action@v4 - with: | - token: ${{ secrets.CODECOV_TOKEN }} - files: ./go_coverage.txt,./lcov_output.info,./it_coverage.txt - name: ubuntu-20.04-unittests - fail_ci_if_error: true - disable_safe_directory: true - attempt_limit: 10 - attempt_delay: 30000 + token: ${{ secrets.CODECOV_TOKEN }} + files: ./go_coverage.txt,./lcov_output.info,./it_coverage.txt + name: ubuntu-20.04-unittests + fail_ci_if_error: true + disable_safe_directory: true + - name: Retry Upload coverage to Codecov + if: ${{ failure() && github.repository == 'milvus-io/milvus' }} + uses: codecov/codecov-action@v4 + id: retry_upload_cov + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./go_coverage.txt,./lcov_output.info,./it_coverage.txt + name: ubuntu-20.04-unittests + fail_ci_if_error: true + disable_safe_directory: true