Repository navigation
Expand file tree
/
Copy pathcodecov.yml
More file actions
40 lines (40 loc) · 2.1 KB
/
Copy pathcodecov.yml
File metadata and controls
40 lines (40 loc) · 2.1 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
33
34
35
36
37
38
39
40
# Mirrors sonar.coverage.exclusions in sonar-project.properties — same
# reasoning applies to Codecov, which consumes the identical
# coverage.out (ci.yml's `test` job produces one file, uploaded to
# both). Since Go 1.20, `go test ./... -coverprofile=...` emits a
# synthetic all-0-count entry for every statement in a package with no
# test files at all (confirmed: cmd/conformance-client/*.go — 330
# lines, all count 0), not just the packages actually under test. Left
# unexcluded, that inflates the coverage denominator with lines that
# structurally can never be covered by a unit test, exactly the same
# "metric that can't reflect reality" problem sonar-project.properties
# already documents.
#
# conformance/** (both the .py scripts and the setup-config/
# generate-client-key Go tools under conformance/server/scripts) and
# cmd/conformance-client/** are local dev/CI tooling that drives the
# OIDF conformance suite (see conformance/README.md) — verified by
# actually running it against a live suite
# (conformance/scripts/run-all.sh), not by unit tests; none of these
# have a _test.go/pytest counterpart, deliberately. (Codecov's ignore
# globs are file-extension-agnostic and don't need the separate
# **/*.py / **/*.go split sonar.coverage.exclusions uses — one
# directory-wide pattern covers both here.)
#
# cmd/conformance-as/main.go specifically (not the rest of that
# package, which keeps real unit coverage): func main() itself calls
# flag.Parse(), log.Fatal (os.Exit) on every validation failure, and
# blocks forever on ListenAndServeTLS — see sonar-project.properties'
# own longer account of this one.
#
# cmd/conformance-federation-trust-anchor is the same story as the
# conformance/** dev tooling above: a minimal standing OpenID
# Federation Trust Anchor for conformance-testing this repo's own AS
# against a live OIDF suite instance, verified by actually running it
# (conformance/server/scripts/README.md's own "OpenID Federation"
# section), not by unit tests.
ignore:
- "conformance/**"
- "cmd/conformance-client/**"
- "cmd/conformance-as/main.go"
- "cmd/conformance-federation-trust-anchor/**"