diff --git a/changelog.d/codecov-project-informational.changed.md b/changelog.d/codecov-project-informational.changed.md new file mode 100644 index 00000000000..c0eb62e8961 --- /dev/null +++ b/changelog.d/codecov-project-informational.changed.md @@ -0,0 +1 @@ +Report Codecov's project coverage as informational, since pull requests upload coverage from selected tests only; the patch check stays the coverage gate. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000000..ca3e8f945be --- /dev/null +++ b/codecov.yml @@ -0,0 +1,15 @@ +# Coverage is uploaded only by the PR workflow's Quick Feedback job, which runs +# the tests selected for the files a PR changes (run_selective_tests.py +# --coverage; .coveragerc counts */variables/* only). No job uploads coverage +# from main. Reports can therefore cover different selections of tests and +# source files, so project percentages are not reliably comparable between a +# PR and its base. Report the project status without failing it; keep the +# patch status, which measures the PR's own changed lines, as the gate. +coverage: + status: + project: + default: + informational: true + patch: + default: + target: auto