From fd543883fa4e56a7be5256bb2fe1ab924a0940a4 Mon Sep 17 00:00:00 2001 From: Max Kotliar Date: Wed, 11 Jun 2025 14:47:51 +0300 Subject: [PATCH] .github/workflows: allow codecov to report without failing CI build ### Describe Your Changes The `fail_ci_if_error` flag only affects the upload step and does not control Codecov's status checks (e.g., codecov/patch, codecov/project). My prior tests did not surface this behavior. Switched to 'informational' mode per Codecov docs to avoid blocking CI. See: https://docs.codecov.com/docs/common-recipe-list#set-non-blocking-status-checks Tested in https://github.com/VictoriaMetrics/VictoriaMetrics/pull/9146 Follow up on https://github.com/VictoriaMetrics/VictoriaMetrics/pull/9139, https://github.com/VictoriaMetrics/VictoriaMetrics/pull/9139/commits/52022e482c3acf455ef5ce24cfadb888d484b1cb --- .github/workflows/main.yml | 1 - codecov.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d1f6ebfdb..90f405e601 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -91,7 +91,6 @@ jobs: uses: codecov/codecov-action@v5 with: files: ./coverage.txt - fail_ci_if_error: false integration-test: name: integration-test diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..b90a6821cb --- /dev/null +++ b/codecov.yml @@ -0,0 +1,9 @@ +# see https://docs.codecov.com/docs/common-recipe-list#set-non-blocking-status-checks +coverage: + status: + project: + default: + informational: true + patch: + default: + informational: true