Repository navigation
Expand file tree
/
Copy pathworkflows.json
More file actions
305 lines (305 loc) · 8.07 KB
/
Copy pathworkflows.json
File metadata and controls
305 lines (305 loc) · 8.07 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
{
"configs": [
{
"name": "bazel_default",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [
"--test_output=all"
],
"env": {}
},
{
"name": "bazel_default_notest",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled"
],
"env": {},
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
}
],
"builds": [
{
"name": "wildcard_build",
"use_config": "bazel_default_notest",
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "clippy",
"build_config": {
"name": "clippy_config",
"description": "Run clippy checks",
"build_type": "bazel",
"args": [
"--aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect",
"--output_groups=clippy_checks"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
},
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "ci_tests",
"build_config": {
"name": "ci_tests_config",
"description": "Execute CI tests (excluding hardware and heavyweight simulator tests)",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu,-fpga",
"--test_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu,-fpga",
"--test_output=streamed",
"--build_event_json_file=${BUILD_ROOT}/pw_ci_tests_bep.json"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//...",
"-//third_party/caliptra/..."
]
},
{
"name": "earlgrey_verilator_tests",
"build_config": {
"name": "earlgrey_verilator_tests_config",
"description": "Run Earlgrey verilator-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+verilator,-nightly_test",
"--test_tag_filters=+verilator,-nightly_test",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/earlgrey/..."
]
},
{
"name": "caliptra_emulator_tests",
"build_config": {
"name": "caliptra_emulator_tests_config",
"description": "Run caliptra emulator-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+emulator,-disabled",
"--test_tag_filters=+emulator,-disabled",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/veer/..."
]
},
{
"name": "caliptra_fpga_build",
"build_config": {
"name": "caliptra_fpga_build_config",
"description": "Build (do not run) the Caliptra MCU FPGA test binaries and images. Catches FPGA cfg, cross-compile, and build-wiring regressions without requiring lab hardware.",
"build_type": "bazel",
"args": [
"--keep_going",
"--config=fpga",
"--build_tag_filters=+fpga,-disabled"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": true
}
},
"targets": [
"//target/veer/..."
]
},
{
"name": "earlgrey_qemu_tests",
"build_config": {
"name": "earlgrey_qemu_tests_config",
"description": "Run Earlgrey QEMU-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--build_tag_filters=+qemu",
"--test_tag_filters=+qemu",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/earlgrey/..."
]
},
{
"name": "ast10x0_qemu_tests",
"build_config": {
"name": "ast10x0_qemu_tests_config",
"description": "Run AST10x0 QEMU-based tests",
"build_type": "bazel",
"args": [
"--keep_going",
"--config=virt_ast10x0",
"--test_tag_filters=-hardware,-do_not_run_test",
"--test_output=streamed"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/ast10x0/..."
]
},
{
"name": "flaky_tests",
"build_config": {
"name": "flaky_tests_config",
"description": "Execute flaky tests",
"build_type": "bazel",
"args": [
"--runs_per_test=3",
"--runs_per_test_detects_flakes",
"--cache_test_results=no",
"--keep_going",
"--test_output=errors",
"--config=k_ast1060_evb"
],
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
"no_test": false
}
},
"targets": [
"//target/ast10x0/..."
]
}
],
"tools": [
{
"name": "format",
"description": "Find and fix code formatting issues",
"use_config": "bazel_default",
"analyzer_friendly_args": [
"--check"
],
"target": "//:format"
},
{
"name": "watch",
"description": "Run Bazel commands when files change",
"use_config": "bazel_default",
"target": "//:watch",
"type": "GENERAL"
},
{
"name": "presubmit_checks",
"description": "Run the presubmit checks",
"use_config": "bazel_default",
"target": "//presubmit:presubmit",
"type": "ANALYZER"
},
{
"name": "lockfile_check",
"description": "Fail if regenerating MODULE.bazel.lock changes the committed file",
"use_config": "bazel_default",
"target": "//presubmit:lockfile_check",
"type": "ANALYZER"
},
{
"name": "zero_test_audit",
"description": "Fail if a rust_test target in ci_tests ran zero tests",
"build_config": {
"name": "zero_test_audit_config",
"description": "Hand the audit the BEP file that ci_tests writes in its sibling build directory",
"build_type": "bazel",
"args": [
"--run_under=env ZERO_TESTS_BEP=${BUILD_ROOT}/../ci_tests_config/pw_ci_tests_bep.json"
]
},
"target": "//presubmit:zero_tests",
"type": "ANALYZER"
}
],
"groups": [
{
"name": "presubmit",
"description": "Quick presubmit for validating code changes locally",
"analyzers": [
"format",
"lockfile_check",
"presubmit_checks"
],
"builds": [
"clippy"
]
},
{
"name": "default",
"description": "Common builds/configurations",
"builds": [
"wildcard_build"
]
},
{
"name": "ci",
"description": "Execute CI tests plus dedicated AST10x0, Earlgrey QEMU and Caliptra emulator coverage",
"builds": [
"ci_tests",
"ast10x0_qemu_tests",
"earlgrey_qemu_tests",
"caliptra_emulator_tests",
"caliptra_fpga_build"
],
"analyzers": [
"zero_test_audit"
]
},
{
"name": "upstream_pigweed",
"description": "Workflow for checking upstream pigweed compatibility",
"builds": [
"ci_tests",
"ast10x0_qemu_tests",
"caliptra_emulator_tests",
"earlgrey_verilator_tests"
]
},
{
"name": "flaky",
"description": "Execute flaky tests",
"builds": [
"flaky_tests"
]
}
]
}