From 5e72208afe11eaf0a56addb35c876e877da63a8e Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Wed, 8 May 2024 13:20:08 +0200 Subject: [PATCH 1/4] remove pr annotations --- codecov.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 codecov.yaml diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 0000000000..1e8dd9f9f7 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,2 @@ +github_checks: + annotations: false \ No newline at end of file From fcc54368c4e5f7d639fbecc9fc2a144fcfb8b64a Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Wed, 8 May 2024 13:20:19 +0200 Subject: [PATCH 2/4] disable failing CI --- .github/workflows/codecov.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 95438ad86f..8eb2ebafba 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -38,14 +38,8 @@ jobs: # UPLOAD REPORTS (requires cargo 1.70.0) - name: Upload to codecov.io - if: ${{ always() }} uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - # token: ${{ secrets.CODECOV_TOKEN }} - # files: ./coverage1.xml,./coverage2.xml # optional - # flags: unittests # optional - # name: codecov-umbrella # optional - fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) From e9b898a6da2cc952980d4d69a09388671343a927 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Wed, 8 May 2024 19:03:27 +0200 Subject: [PATCH 3/4] do not block on project status --- codecov.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codecov.yaml b/codecov.yaml index 1e8dd9f9f7..429e2a3a5e 100644 --- a/codecov.yaml +++ b/codecov.yaml @@ -1,2 +1,7 @@ github_checks: - annotations: false \ No newline at end of file + annotations: false +coverage: + status: + project: + default: + informational: true \ No newline at end of file From 31b252a87e28d874f2e4e76b73441fc25595dae3 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Wed, 8 May 2024 19:15:38 +0200 Subject: [PATCH 4/4] Adjust the code coverage folder exclusion --- .github/workflows/codecov.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 8eb2ebafba..29c544a396 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -32,9 +32,16 @@ jobs: RUST_BACKTRACE: 1 run: | cargo tarpaulin --timeout 300 -e runtime-integration-tests --features fast-runtime \ - --exclude-files runtime/*/src/migrations.rs --exclude-files runtime/common/src/migrations \ - --exclude-files pallets/rewards/src/migrations/new_instance.rs --exclude-files pallets/block-rewards/src/migrations.rs \ - --workspace --exclude-files **/mock.rs **/weights.rs **/weights/* --out xml + --exclude-files runtime/*/src/migrations.rs \ + --exclude-files runtime/common/src/migrations \ + --exclude-files pallets/rewards/src/migrations/new_instance.rs \ + --exclude-files pallets/block-rewards/src/migrations.rs \ + --exclude-files **/mock.rs \ + --exclude-files **/weights.rs \ + --exclude-files **/weights/* \ + --exclude-files node/ \ + --exclude-files runtime \ + --workspace --out xml # UPLOAD REPORTS (requires cargo 1.70.0) - name: Upload to codecov.io