forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
215 lines (194 loc) · 4.72 KB
/
Copy pathcodecov.yml
File metadata and controls
215 lines (194 loc) · 4.72 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# Codecov Configuration for openpilot
# Docs: https://docs.codecov.com/docs/codecovyml-reference
#
# Coverage Targets:
# - Project overall: 90%+
# - Per-component minimum: 80%
# - Safety-critical modules (controls): 95%
coverage:
precision: 2
round: down
range: "70...100"
status:
# Project-level coverage requirements
project:
default:
target: 90%
threshold: 1%
if_ci_failed: error
informational: false
# Critical safety modules - higher standards
controls:
target: 95%
threshold: 0.5%
paths:
- "openpilot/selfdrive/controls/"
informational: false
car:
target: 90%
threshold: 1%
paths:
- "openpilot/selfdrive/car/"
informational: false
selfdrived:
target: 90%
threshold: 1%
paths:
- "openpilot/selfdrive/selfdrived/"
informational: false
monitoring:
target: 85%
threshold: 1%
paths:
- "openpilot/selfdrive/monitoring/"
informational: false
locationd:
target: 85%
threshold: 1%
paths:
- "openpilot/selfdrive/locationd/"
informational: false
# System modules
system:
target: 80%
threshold: 2%
paths:
- "openpilot/system/"
informational: false
# Tools
tools:
target: 80%
threshold: 2%
paths:
- "openpilot/tools/"
informational: false
common:
target: 85%
threshold: 1%
paths:
- "openpilot/common/"
informational: false
# C++ coverage targets
cpp-core:
target: 80%
threshold: 2%
flags:
- cpp-core
informational: false
cpp-tools:
target: 80%
threshold: 2%
flags:
- cpp-tools
informational: false
# PR-specific coverage (changes only)
patch:
default:
target: 80%
threshold: 0%
if_ci_failed: error
codecov:
require_ci_to_pass: false
notify:
wait_for_ci: true
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: true
require_base: false
require_head: true
# Ignore generated code, third-party, and submodules
ignore:
- "msgq_repo/**"
- "opendbc_repo/**"
- "panda/**"
- "rednose_repo/**"
- "tinygrad_repo/**"
- "teleoprtc_repo/**"
- "openpilot/cereal/gen/**"
- "**/c_generated_code/**"
- "**/generated/**"
- "**/*.capnp"
flags:
unittests:
paths:
- "openpilot/selfdrive/"
- "openpilot/system/"
- "openpilot/common/"
- "openpilot/tools/"
carryforward: true
# C++ coverage flags
cpp:
paths:
- "openpilot/common/"
- "openpilot/system/"
- "openpilot/selfdrive/pandad/"
- "openpilot/tools/cabana/"
- "openpilot/tools/replay/"
carryforward: true
cpp-core:
paths:
- "openpilot/common/"
- "openpilot/system/"
- "openpilot/selfdrive/pandad/"
carryforward: true
cpp-tools:
paths:
- "openpilot/tools/cabana/"
- "openpilot/tools/replay/"
carryforward: true
component_management:
default_rules:
statuses:
- type: project
target: 80%
individual_components:
- component_id: controls
name: Controls (Safety Critical)
paths:
- openpilot/selfdrive/controls/**
- component_id: car
name: Car Interface
paths:
- openpilot/selfdrive/car/**
- component_id: selfdrived
name: Self-Driving State Machine
paths:
- openpilot/selfdrive/selfdrived/**
- component_id: monitoring
name: Driver Monitoring
paths:
- openpilot/selfdrive/monitoring/**
- component_id: locationd
name: Localization
paths:
- openpilot/selfdrive/locationd/**
- component_id: system
name: System Services
paths:
- openpilot/system/**
- component_id: tools
name: Development Tools
paths:
- openpilot/tools/**
- component_id: common
name: Common Utilities
paths:
- openpilot/common/**
# C++ specific components
- component_id: cpp-core
name: C++ Core (common, system, pandad)
paths:
- openpilot/common/**/*.cc
- openpilot/common/**/*.h
- openpilot/system/**/*.cc
- openpilot/system/**/*.h
- openpilot/selfdrive/pandad/**/*.cc
- openpilot/selfdrive/pandad/**/*.h
- component_id: cpp-tools
name: C++ Tools (cabana, replay)
paths:
- openpilot/tools/cabana/**/*.cc
- openpilot/tools/cabana/**/*.h
- openpilot/tools/replay/**/*.cc
- openpilot/tools/replay/**/*.h