Repository navigation
Expand file tree
/
Copy pathcodecov.yml
More file actions
32 lines (31 loc) · 1.64 KB
/
Copy pathcodecov.yml
File metadata and controls
32 lines (31 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Canonical Codecov configuration of the ResearchHarness. `harness workflows --apply` copies it
# verbatim into the root of every package and experiment repository. Edit the template,
# githooks/workflows/codecov.yml, and re-run the installer; never edit an installed copy.
#
# WHY THIS FILE HAS TO EXIST AT ALL.
#
# Without it Codecov's defaults apply: `target: auto` with `threshold: 0%`, which fails a pull
# request for *any* decrease. That is sharper than it reads, because Codecov counts a *modified*
# line as part of the diff — changing a signature's annotation, or splitting one into a method per
# shape, re-attributes lines that were already uncovered to whoever touched them. A pull request
# can report 13 missing lines on a net movement of 2, or a 0.24 % regression while its hit count
# goes *up* by 22 lines, because the denominator grows faster than the numerator.
#
# 1 % on both, so a real regression still fails and drift does not. `informational` is deliberately
# NOT set: the check should still be able to fail on genuinely untested methods.
#
# Coverage is instrumented and uploaded from a single matrix entry (see the COVERAGE expression in
# CI.yml), once per test group where the repository has test/ci-groups.toml, and once where that
# file sets `split = false`. Where a repository has a second job whose tests reach code the main
# suite does not, that job uploads too and Codecov merges the reports, as an extra Symbolic.yml
# does.
coverage:
status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: auto
threshold: 1%