enhance: revert dead try on uploading codecov (#34131)

This reverts commit 5a14f65ee4.

Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
pull/34145/head
sammy.huang 2024-06-25 11:51:35 +08:00 committed by GitHub
parent a33b68678d
commit bd8ad106b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 10 deletions

View File

@ -267,14 +267,21 @@ jobs:
ls -lah ls -lah
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: ${{ github.repository == 'milvus-io/milvus' }} if: ${{ github.repository == 'milvus-io/milvus' }}
uses: Wandalen/wretry.action@v3.5.0 uses: codecov/codecov-action@v4
id: upload_cov
with: with:
action: codecov/codecov-action@v4 token: ${{ secrets.CODECOV_TOKEN }}
with: | files: ./go_coverage.txt,./lcov_output.info,./it_coverage.txt
token: ${{ secrets.CODECOV_TOKEN }} name: ubuntu-20.04-unittests
files: ./go_coverage.txt,./lcov_output.info,./it_coverage.txt fail_ci_if_error: true
name: ubuntu-20.04-unittests disable_safe_directory: true
fail_ci_if_error: true - name: Retry Upload coverage to Codecov
disable_safe_directory: true if: ${{ failure() && github.repository == 'milvus-io/milvus' }}
attempt_limit: 10 uses: codecov/codecov-action@v4
attempt_delay: 30000 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