forked from mongrel-intelligence/cascade
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
57 lines (54 loc) · 2.38 KB
/
Copy pathcodecov.yml
File metadata and controls
57 lines (54 loc) · 2.38 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Codecov configuration for CASCADE.
#
# Coverage is uploaded from two CI jobs (see .github/workflows/ci.yml):
# • flag `unit` — `npm run test:coverage` (the 4 unit projects)
# • flag `integration` — `npm run test:integration:coverage` (real Postgres/Redis)
# Codecov merges both flags per-commit into one combined report, so repository/db
# code exercised only by the integration suite (e.g. the projectsRepository
# worker-image build-result writers) counts toward project/patch instead of
# reading as 0% patch on the unit-only run.
coverage:
status:
project:
default:
target: 80%
threshold: 2%
patch:
default:
target: 80%
# Flags let the unit + integration coverage uploads merge into one combined
# report. carryforward keeps the last-known coverage for a flag when a given
# commit does not re-upload it (e.g. a job is skipped), so the combined
# project/patch status stays accurate.
flags:
unit:
carryforward: true
integration:
carryforward: true
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: true
# ── Un-mockable Docker-daemon glue policy ───────────────────────────────────
# The injectable `defaultDeps` real-Docker implementations in
# src/router/worker-image-build.ts and src/router/worker-image-validation.ts
# (docker.buildImage / image inspect / docker.run smoke-test) only execute
# against a live Docker daemon, which unit tests do not have — the handlers are
# unit-tested through injected fakes, and the runtime contract is covered by the
# shared worker-image smoke-test (tests/docker/worker-runtime-tools, run in the
# `docker-build-check` CI job). Those specific default-impl blocks carry
# line-level `/* v8 ignore start | stop */` markers in the source so they are
# excluded from the coverage report and cannot recurrently fail `codecov/patch`
# on future image/build PRs (PR #1474 merged with codecov/patch red for exactly
# this reason — MNG-1723/MNG-1726).
#
# This is deliberately narrow: only the daemon-only default functions are
# excluded. The handler logic, the compose/hashing helpers, and the
# createSingleFileTar ustar builder in those files stay fully counted — do NOT
# blanket-ignore the files below.
ignore:
- "src/**/*.test.ts"
- "src/types/**"
- "web/**"
- "tools/**"
- "tests/**"