-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
85 lines (80 loc) · 2.61 KB
/
Copy pathcodecov.yml
File metadata and controls
85 lines (80 loc) · 2.61 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Codecov configuration.
# Docs: https://docs.codecov.com/docs/codecov-yaml
#
# Coverage is uploaded as a single merged lcov produced by `bazel coverage //...`.
# Per-language breakdowns are handled here via components, not via separate CI uploads —
# `bazel coverage` already aggregates across languages, and splitting the upload would
# fight that model.
coverage:
status:
project:
default:
target: auto
threshold: 5%
patch:
default:
target: auto
threshold: 5%
component_management:
default_rules:
statuses:
- type: project
target: auto
threshold: 5%
# Components are grouped into three orthogonal slices of the same lcov:
# - Language: one entry per language adopted in the repo.
# TEND(lang-expand): add a new entry whenever a new language is adopted.
# - Category: one entry per top-level project-category folder, even if empty today —
# the component will start reporting once code lands. No tending needed unless
# we add or remove a top-level folder.
# - Project: one entry per leaf project directory with its own code.
# TEND(project-expand): add a new entry whenever a new project lands.
# Components can overlap — a single .go file in tools/network_infrastructure_maintenance/
# contributes to Go, Category: tools, and Project: network_infrastructure_maintenance.
individual_components:
# Languages
- component_id: go
name: Go
paths:
- "**/*.go"
- component_id: python
name: Python
paths:
- "**/*.py"
# Categories (top-level project-category folders)
- component_id: cat_apps
name: "Category: apps"
paths:
- "apps/**"
- component_id: cat_infra
name: "Category: infra"
paths:
- "infra/**"
- component_id: cat_libs
name: "Category: libs"
paths:
- "libs/**"
- component_id: cat_meta
name: "Category: meta"
paths:
- "meta/**"
- component_id: cat_services
name: "Category: services"
paths:
- "services/**"
- component_id: cat_tools
name: "Category: tools"
paths:
- "tools/**"
# Projects (leaf project directories with code today)
- component_id: proj_meta_scripts
name: "Project: meta/scripts"
paths:
- "meta/scripts/**"
- component_id: proj_network_infrastructure_maintenance
name: "Project: tools/network_infrastructure_maintenance"
paths:
- "tools/network_infrastructure_maintenance/**"
comment:
layout: "header, diff, components, files, footer"
require_changes: true