Repository navigation
Expand file tree
/
Copy pathsuites.toml
More file actions
984 lines (890 loc) · 34.9 KB
/
Copy pathsuites.toml
File metadata and controls
984 lines (890 loc) · 34.9 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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
schema = 2
# What Cargo already knows is not written here. `cargo metadata` supplies every package,
# every dependency edge and every test binary, and `tools/test_plan.py` holds the CI job
# table. This file holds the two things neither can see: the path triggers and build
# commands of Cargo packages that other languages or tools reach, and the suites that no
# Cargo package owns.
#
# `route` says when a suite runs:
# ordinary selected by the change
# required runs whenever one of its jobs starts
# manual explicitly invoked only
# live contacts a live service, invoked by hand
# ── Cargo packages with facts Cargo cannot derive ───────────────────────────
# The vector files are a contract, not a dependency: a codec consumer never imports them. The About
# credits are tested against data/sources.toml, which obc-data embeds without a Cargo edge to it.
[[package]]
name = "obc-app"
triggers = ["specs/vectors/**", "data/sources.toml"]
# The captured planner export is under `fixtures/`, which already selects every unit that declares
# fixture inputs. Its SwiftPM duplicate is not, and only this suite holds the two identical. The
# climb test reads the shared climb vectors; no Cargo edge carries that.
[[package]]
name = "obc-route"
triggers = ["companion-ios/Packages/OBCKit/Sources/OBCMock/Fixtures/sample-import.gpx", "specs/vectors/climbs.json"]
[[package]]
name = "obc-formats"
route = "required"
triggers = ["specs/**"]
# The bake embeds the kind table and the road classes, its codec test reads the shared vectors, and
# the census test reads the TrailView fixture.
[[package]]
name = "obc-trailview-features"
triggers = ["data/trailview/kinds.json", "data/trailview/roads.json", "data/trailview/finishes.json", "data/trailview/waterways.json", "data/trailview/parts.json", "specs/vectors/trailview-features.*", "builder/web/tests/browser/trailview/fixture/**"]
# The parts embed the table of the tunnel parts: Cargo cannot see it.
[[package]]
name = "obc-trailview-parts"
triggers = ["data/trailview/parts.json"]
# The ground plan embeds the cross-section tables and, through the parts, their table; its tests read the shared
# vectors, the TrailView fixture and the viewer's mask reach: Cargo cannot see these inputs.
[[package]]
name = "obc-ground-plan"
triggers = ["data/trailview/plan.json", "data/trailview/parts.json", "data/trailview/roads.json", "data/trailview/finishes.json", "data/trailview/waterways.json", "specs/vectors/trailview-features.*", "builder/web/tests/browser/trailview/fixture/**", "builder/web/src/lib/trailview/terrain/features.wgsl"]
[[package]]
name = "obc-link"
triggers = ["specs/vectors/**"]
[[package]]
name = "obc-dfu"
triggers = ["specs/vectors/**"]
[[package]]
name = "obc-ble"
triggers = ["specs/vectors/**"]
[[package]]
name = "obc-vectors"
route = "required"
triggers = ["specs/vectors/**"]
[[package]]
name = "obc-builder-bridge"
fixtures = true
triggers = ["specs/vectors/**", "builder/presets/**", "builder/wasm/tests/fixture/**"]
[[package]]
name = "obc-usb"
triggers = ["specs/flat-store-protocol.md", "specs/vectors/flat-store-v4/**"]
[[package]]
name = "obc-fixtures"
triggers = ["fixtures/catalog.toml"]
# The inspector reads the committed artefacts to prove it names them; no Cargo edge carries that.
[[package]]
name = "obc-inspect"
triggers = [
"specs/vectors/**",
"sim/desktop/assets/grimsel-demo.obcm",
"fixtures/sources/sim-grimsel/routes/**",
]
[[package]]
name = "obc-sim"
triggers = ["fixtures/catalog.toml"]
# Both compile the shipped preset in with `include_str!` and own the guard that fails when the
# skin-preview fixture no longer matches it; obc-bake also reads data/regions/ and the corpus
# `tiny.osm.pbf`. No Cargo edge carries that.
[[package]]
name = "obc-bake"
triggers = ["builder/presets/**", "data/regions/**", "data/sources.toml", "builder/tests/corpus/data/tiny.osm.pbf"]
# Its tests load the checked-in registry and regions; no Cargo edge carries that.
[[package]]
name = "obc-data"
# A test validates the examples of the operator page against the schemas of `--json`.
triggers = ["data/**", "tools/basemap_tool.py", "specs/obc-data.md", "builder/web/test-support/data/**"]
# Its tests plan the checked-in live environment and run the Python steps.
[[package]]
name = "obc-data-steps"
triggers = [
"data/**",
".python-version",
"pyproject.toml",
"uv.lock",
"tools/step_request.py",
"tools/step_pool.py",
"tools/data_registry.py",
"tools/planner_*.py",
"tools/planner_mvt_verify.mjs",
"planner/search/*.py",
"planner/search/*.sql",
"planner/search/web/address-terms.json",
"planner/search/query/*.py",
"planner/search/query/contract.json",
"host/obc-search-bake/policy.py",
"planner/search/place-kinds.json",
]
[[package]]
name = "obc-bench"
triggers = ["sim/bench/golden.txt"]
# Its wire test reads the FLPR C source with `include_str!`, which gives no Cargo edge.
[[package]]
name = "obc-display"
triggers = ["firmware/obc-fw-nrf54l/src/flpr/flpr_scan.c"]
# Both write credits from data/sources.toml, which obc-data embeds without a Cargo edge to it.
[[package]]
name = "obc-pack"
triggers = ["builder/presets/**", "data/sources.toml"]
# The configuration tests load the shipped presets.
[[package]]
name = "obc-map-core"
triggers = ["builder/presets/**"]
[[package]]
name = "planner-router-build"
triggers = ["data/sources.toml"]
# Both read the checked-in assembly fixture, so a change under `fixtures/` reaches them.
[[package]]
name = "obcm-assemble"
fixtures = true
triggers = ["builder/wasm/tests/fixture/**"]
# The factory ride is built from the app's bundled route.
[[package]]
name = "obc-replay"
triggers = ["companion-ios/Packages/OBCKit/Sources/OBCFormats/Resources/grimsel-pass.gpx"]
# The board runs the host crate's detour and ride logic; no Cargo edge carries that.
[[package]]
name = "obc-host-core"
triggers = ["firmware/obc-fw-nrf54l/src/detour.rs", "firmware/obc-fw-nrf54l/src/flat_ride.rs", "firmware/obc-fw-nrf54l/src/factory_demo_ride.rs"]
# The answer encoder test reads the shared route answer vector; no Cargo edge carries that.
[[package]]
name = "planner-router"
triggers = ["specs/vectors/route-answer.json"]
[[package]]
name = "obc-ios-host"
triggers = [
"sim/desktop/assets/grimsel-demo.obcm",
"fixtures/sources/sim-grimsel/routes/grimsel-climb.obcr",
"fixtures/sources/sim-grimsel/tracks/grimsel-climb.gpx",
]
# The standalone Cargo roots are not in the workspace nextest run, so each names the
# command a local `obc test affected` uses for it.
[[package]]
name = "obc-fw-nrf54l"
command = "cargo build --manifest-path firmware/obc-fw-nrf54l/Cargo.toml --release --locked"
triggers = ["rust-toolchain.toml"]
platforms = ["linux"]
[[package]]
name = "obc-sensor-sim"
command = "bash firmware/obc-sensor-sim/check.sh"
platforms = ["linux", "macos"]
[[package]]
name = "obc-boot"
command = "cargo build --manifest-path firmware/obc-boot/Cargo.toml --release --locked"
platforms = ["linux"]
# ── Suites no Cargo package owns ────────────────────────────────────────────
[[suite]]
id = "web.demo-browser"
route = "ordinary"
command = "npm test --prefix sim/web-demo/tests/browser"
jobs = ["wasm"]
fixtures = ["embedded-demo-assets"]
platforms = ["linux", "macos"]
triggers = ["sim/web-demo/**", "tools/loopback_port.mjs", "sim/desktop/assets/**", "docs/index.html", "docs/Trunk.toml", "docs/assets/**", "docs/templates/**", "docs/build_docs.py"]
[[suite]]
id = "web.builder-vitest"
route = "ordinary"
command = "cd builder/web && npm test"
jobs = ["web"]
fixtures = ["checked-in-web-fixtures"]
triggers = [
"planner/search/place-kinds.json",
"docs/assets/theme.css", "docs/assets/fonts/**",
"builder/web/**/*.test.ts",
"builder/web/src/**",
"builder/web/test-support/**",
# mesh.test.ts meshes the fixture's feature tiles.
"builder/web/tests/browser/trailview/fixture/**",
"builder/web/package.json",
"builder/web/package-lock.json",
"tools/planner_mvt_verify.mjs",
# bins.test.ts checks the stamp profiles of the road classes and the cross-section tables.
"data/trailview/roads.json",
"data/trailview/finishes.json",
"builder/web/vite.config.ts", "builder/web/tsconfig.json",
"specs/vectors/**",
"sim/flat-device/**",
"planner/search/query/contract.json",
# The web build embeds credits from it.
"data/sources.toml",
]
# The whole app is the subject, the bridge fixture is the input, and the shared catalog
# generator is what publishes it. This catalog is cut from the bridge fixture.
[[suite]]
id = "web.verification"
route = "ordinary"
command = "npm run verify --prefix tools/verification"
jobs = ["verification"]
platforms = ["linux", "macos"]
triggers = ["tools/verification/**"]
[[suite]]
id = "web.planner-requests"
route = "ordinary"
command = "npm run test:planner --prefix builder/web/tests/browser"
jobs = ["web-browser"]
platforms = ["linux", "macos"]
triggers = [
"planner/search/place-kinds.json",
"docs/assets/theme.css", "docs/assets/fonts/**",
# The area and Device journeys build a map in the tab from the fixture catalog, with the wasm core.
"builder/web/src/**",
"builder/wasm/**",
"tools/fixture_catalog.py",
"builder/web/planner.html",
"builder/web/tests/browser/planner/**",
"builder/web/tests/browser/playwright.planner.config.js",
"tools/loopback_port.mjs",
"builder/web/tests/browser/package.json",
"builder/web/package.json",
"builder/web/vite.config.ts",
"planner/search/query/contract.json",
]
# The run loop of the UX study with a stand-in environment and participant: no browser, no model call.
[[suite]]
id = "web.ux-study"
route = "ordinary"
command = "npm run test:ux-study --prefix builder/web/tests/browser"
jobs = ["web-browser"]
platforms = ["linux", "macos"]
triggers = [
"builder/web/tests/browser/ux-study/**",
"builder/web/tests/browser/package.json",
# The task checks import the food kinds of the search.
"planner/search/place-kinds.json",
]
[[suite]]
id = "web.data-page"
route = "ordinary"
command = "npm run test:data --prefix builder/web/tests/browser"
jobs = ["web-browser"]
platforms = ["linux", "macos"]
triggers = [
"docs/assets/theme.css", "docs/assets/fonts/**",
"builder/web/src/components/data/**",
"builder/web/src/lib/data/**",
"builder/web/src/lib/map/**",
"builder/web/src/styles/tokens.css",
"builder/web/src/styles/data.css",
"builder/web/src/data.ts",
"builder/web/data.html",
"builder/web/test-support/data/**",
"builder/web/tests/browser/data/**",
"builder/web/tests/browser/playwright.data.config.js",
"tools/loopback_port.mjs",
"builder/web/tests/browser/package.json",
"builder/web/package.json",
"builder/web/vite.config.ts",
]
# Every WGSL file of the TrailView engine through naga, with its includes, without a GPU.
[[suite]]
id = "web.trailview-wgsl"
route = "ordinary"
command = "npm run check:wgsl --prefix builder/web"
jobs = ["web"]
platforms = ["linux", "macos"]
triggers = ["builder/web/src/lib/trailview/**/*.wgsl", "builder/web/src/lib/trailview/gpu/include.ts", "builder/web/scripts/check-wgsl.mjs", "builder/web/package.json"]
# The TrailView ground worker in Chromium: the ground bytes under a low alpha and the snow mark. A test
# that draws on SwiftShader takes minutes, so it takes the tag @gpu (the page load with its probe, the
# crack and surface audits, the stamp audits of a village and a lake): pull requests skip it,
# `web.trailview-gpu` runs it on a GPU.
[[suite]]
id = "web.trailview-smoke"
route = "ordinary"
command = "npm run test:trailview --prefix builder/web/tests/browser -- --grep-invert @gpu"
jobs = ["web-browser"]
platforms = ["linux", "macos"]
triggers = [
"builder/web/src/lib/trailview/**",
"builder/web/src/lib/planner/config.ts",
"builder/web/src/lib/planner/release.ts",
"builder/web/src/lib/planner/layers/archive.ts",
"builder/web/src/lib/planner/layers/mercator.ts",
"builder/web/src/lib/planner/solar.ts",
"builder/web/src/lib/planner/layers/terrain.ts",
"builder/web/src/trailview.ts",
"builder/web/trailview.html",
"builder/web/tests/browser/trailview/**",
"builder/web/tests/browser/playwright.trailview.config.js",
"tools/loopback_port.mjs",
"builder/web/tests/browser/package.json",
"builder/web/package.json",
"builder/web/vite.config.ts",
]
# The @gpu TrailView browser tests on the machine's GPU, where they take seconds. A CI runner has no
# GPU, and SwiftShader takes minutes per test.
[[suite]]
id = "web.trailview-gpu"
route = "manual"
command = "OBC_TRAILVIEW_GPU=1 flock /tmp/trailview-gpu.lock npm run test:trailview --prefix builder/web/tests/browser -- --grep @gpu"
platforms = ["linux"]
triggers = ["builder/web/tests/browser/trailview/**"]
# The job table is not derived from the builders it describes, so the unit tests that pin
# it against `build-wasm-bridges.sh` and the Trunk page are triggered by those files too.
# The `guards` job is unconditional, so they also run on every pull request regardless.
[[suite]]
id = "python.repository-tools"
route = "required"
command = "rm -rf .artifacts/python/repository-tools && uv run --locked --group dev --group planner-snow --group forest-reference --group route-sources python -m xmlrunner discover -s tools/tests -v -o .artifacts/python/repository-tools"
jobs = ["guards", "selection"]
triggers = [
"planner/search/place-kinds.json",
"pyproject.toml", "uv.lock",
"tools/*.py",
"tools/**/*.py",
"tools/vps/deploy-services.sh",
"hardware/bom.py",
"docs/build_docs.py",
# The planner tools read their credits and region boxes from them.
"data/sources.toml",
"data/regions/**",
# planner_verify.py decodes the feature tiles.
"specs/vectors/trailview-features.*",
# The footers that test_data_registry.py compares with the registry.
"docs/templates/*.html",
"tools/testing/*.toml",
"docs/testing.md",
".github/workflows/**",
"builder/build-wasm-bridges.sh",
"docs/index.html",
"docs/Trunk.toml",
]
# The frame table and its manifest are inputs to this suite, not just its subjects:
# `test_ui_frames.py` reads both, and it is the only thing that catches a frame deleted together
# with its digest row — the frames a sweep renders are unchanged, so `ci.ui-snapshots` still
# passes.
[[suite]]
id = "python.firmware-tools"
route = "ordinary"
command = "rm -rf .artifacts/python/firmware-tools && uv run --locked --group dev --group planner-snow --group forest-reference python -m xmlrunner discover -s firmware/tools/tests -v -o .artifacts/python/firmware-tools"
jobs = ["test"]
triggers = [
"pyproject.toml", "uv.lock",
"firmware/tools/*.py",
"firmware/tools/**/*.py",
"firmware/ui-frames.toml",
"firmware/ui-snapshots.sha256",
]
# The ingest tool needs rasterio and pyproj, which no other suite wants, so the suite runs
# under the locked uv group `terrain-reference`. The tests write their own rasters: no
# service, no credential and no captured fixture.
[[suite]]
id = "python.dem-reference"
route = "ordinary"
command = "rm -rf .artifacts/python/dem-reference && uv run --locked --group terrain-reference --group dev python -m xmlrunner discover -s host/obc-dem/reference/tests -v -o .artifacts/python/dem-reference"
jobs = ["test"]
triggers = ["host/obc-dem/reference/**", ".python-version", "pyproject.toml", "uv.lock",
"data/sources.toml", "tools/data_registry.py", "tools/step_request.py"]
# The TrailView tools need rasterio, pyogrio and osmium, which no other suite wants, so the suite runs
# under the locked uv group `trailview`. The tests write their own rasters, read the ruleset of
# data/trailview/, the engine's tree and plant models that a pack may name and the captured service
# answers of fixtures/sources/trailview-ground/: no service. They take seconds and build no Rust, so
# they ride the unconditional `guards` job.
[[suite]]
id = "python.trailview"
route = "required"
command = "rm -rf .artifacts/python/trailview && uv run --locked --group trailview --group dev python -m xmlrunner discover -s tools/trailview/tests -v -o .artifacts/python/trailview"
jobs = ["guards"]
triggers = ["tools/trailview/**", "data/trailview/**", "fixtures/sources/trailview-ground/**", "tools/planner_geo.py",
"tools/step_pool.py", "tools/step_request.py", "tools/data_registry.py", "tools/planner_runtime.py", "data/sources.toml",
"builder/web/src/lib/trailview/models/trees/**", "builder/web/src/lib/trailview/models/plants/**", "pyproject.toml", "uv.lock"]
[[suite]]
id = "python.packer-profiles"
route = "ordinary"
command = "rm -f .artifacts/python/packer.xml && uv run --locked --group packer-test python -m pytest host/obc-bake/tests/test_routing_profiles.py -v --junitxml=.artifacts/python/packer.xml"
jobs = ["packer-python"]
fixtures = ["builder-corpus"]
triggers = [
"host/obc-bake/tests/test_routing_profiles.py",
"builder/tests/corpus/**",
"builder/presets/**",
"host/obc-map-core/schema/config.schema.json",
"pyproject.toml", "uv.lock",
]
[[suite]]
id = "ios.replay-camera"
scoped = true
route = "ordinary"
command = "npm ci --prefix companion-ios/ReplayAssets && npm test --prefix companion-ios/ReplayAssets"
jobs = ["ios-unit"]
platforms = ["linux", "macos"]
triggers = ["builder/web/src/lib/planner/poi-kinds.*", "planner/search/place-kinds.json", "companion-ios/ReplayAssets/**", "companion-ios/Packages/OBCKit/Sources/OBCUI/Resources/Replay/**",
# The replay-assets prepare step transpiles the web map style.
"builder/web/src/lib/planner/map-style.ts", "data/sources.toml"]
[[suite]]
id = "swift.obckit-host"
scoped = true
rust_packages = ["obc-ios-host"]
rust_excludes = ["firmware/obc-app/src/harness/**"]
route = "ordinary"
command = "tools/build-ios-host.sh --mac-only && npm ci --prefix companion-ios/ReplayAssets && cd companion-ios/Packages/OBCKit && xcodebuild test -scheme OBCKit-Package -destination 'platform=macOS' -parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO"
jobs = ["ios-unit"]
fixtures = ["captured-met", "legacy-library"]
platforms = ["macos"]
triggers = [
"builder/web/src/lib/planner/poi-kinds.*", "planner/search/place-kinds.json",
"companion-ios/Packages/OBCKit/Package.swift",
"tools/build-ios-host.sh",
"companion-ios/Packages/OBCKit/Sources/**",
"companion-ios/Packages/OBCKit/Tests/**",
"companion-ios/ReplayAssets/prepare.mjs",
# The replay-assets prepare step transpiles the web map style.
"builder/web/src/lib/planner/map-style.ts",
"data/sources.toml",
"planner/search/query/contract.json",
"specs/vectors/**",
]
# These tests wait on real time: condition polling has a 30-second default deadline, and
# negative observation windows and mock/model timing assertions use bounded real time.
[[suite]]
id = "ios.xcuitest"
scoped = true
route = "ordinary"
command = "companion-ios/scripts/capture-website-screenshots.sh --check"
jobs = ["ios-app"]
platforms = ["macos"]
triggers = [
"companion-ios/scripts/generate-website-fixture.py",
"companion-ios/scripts/capture-website-screenshots.sh",
"companion-ios/OBCCompanionUITests/WebsiteScreenshotTests.swift",
"companion-ios/OBCCompanion/**",
"companion-ios/project.yml",
"companion-ios/ReplayAssets/**",
"companion-ios/Packages/OBCKit/Sources/**",
]
# ── Required CI validations that own no test source ─────────────────────────
[[suite]]
id = "ci.rust-workspace-tests"
route = "ordinary"
command = "obc check test"
jobs = ["test"]
foundation = true
triggers = ["Cargo.toml", "Cargo.lock", "rust-toolchain.toml", "tools/fixtures.py"]
[[suite]]
id = "ci.rust-fixture-tests"
route = "ordinary"
command = "bash tools/ci/test.sh nextest-fixtures"
jobs = ["test"]
fixtures = ["test"]
triggers = ["fixtures/catalog.toml", "tools/fixtures.py"]
[[suite]]
id = "ci.rust-format"
route = "required"
command = "obc check fmt"
jobs = ["fmt"]
foundation = true
triggers = [".rustfmt.toml"]
[[suite]]
id = "ci.rust-clippy"
route = "ordinary"
command = "obc check clippy"
jobs = ["boot", "clippy", "embedded"]
foundation = true
triggers = ["Cargo.toml", "Cargo.lock", "rust-toolchain.toml"]
[[suite]]
id = "ci.rust-builds"
route = "ordinary"
command = "obc check device board wasm"
jobs = ["boot", "device", "embedded", "packer-python", "ui-snapshots", "wasm"]
foundation = true
triggers = ["Cargo.toml", "Cargo.lock", "rust-toolchain.toml", "tools/install-riscv.sh"]
[[suite]]
id = "ci.dependencies"
route = "ordinary"
command = "obc check deny"
jobs = ["deny"]
foundation = true
triggers = ["tools/licenses/deny.toml"]
# The other half of the dependency work, and a different job: the `test` job runs this script as
# one step. It reads `cargo metadata` and compiles nothing, so a plan too large to run locally
# still runs it. A new workspace crate must be classified here before CI accepts it, which is
# why the workspace manifest selects it directly and not only through the job it rides.
[[suite]]
id = "ci.dependency-direction"
route = "required"
command = "python3 firmware/tools/check_dependencies.py"
jobs = ["test"]
foundation = true
triggers = ["firmware/tools/check_dependencies.py", "firmware/tools/dependency_rules.json"]
[[suite]]
id = "ci.resource-contracts"
route = "ordinary"
command = "python3 firmware/tools/resource_guard.py strict-align"
jobs = ["boot", "device", "embedded"]
foundation = true
triggers = [
"firmware/tools/resource_baseline.json",
"firmware/tools/resource_guard.py",
"firmware/tools/strict_align_probe.rs",
]
[[suite]]
id = "ci.ui-snapshots"
route = "ordinary"
command = "obc shot --check"
jobs = ["ui-snapshots"]
fixtures = ["sim"]
triggers = [
"firmware/ui-frames.toml",
"firmware/ui-snapshots.sha256",
"firmware/tools/ui_frames/**",
"firmware/obc-app/src/**",
"firmware/obc-render/src/**",
"sim/desktop/src/**",
"firmware/obc-app/i18n/*.toml",
"firmware/obc-render/fonts/**",
"sim/desktop/assets/**",
"fixtures/catalog.toml",
"fixtures/sources/sim-*/**",
]
[[suite]]
id = "ci.wasm-size"
route = "ordinary"
command = "bash builder/build-wasm-bridges.sh"
jobs = ["wasm", "wasm-bridges"]
foundation = true
triggers = [
"builder/web/package-lock.json",
"builder/build-wasm-bridges.sh",
"builder/wasm/wasm_size_guard.py",
"sim/flat-device/**",
"docs/Trunk.toml",
"docs/index.html",
]
# The fixture census of the ground plan: every cell's faces, records, heights, mesh and graph. Its
# inputs are the crate, the rule tables and the TrailView fixture. The fast tier runs its targets
# when the suite is selected.
[[suite]]
id = "ci.ground-plan-census"
route = "ordinary"
jobs = ["test"]
package = "obc-ground-plan"
targets = ["faces", "records", "heights_fixture", "mesh", "graph"]
foundation = true
triggers = [
"host/obc-ground-plan/**",
"host/obc-trailview-parts/**",
"data/trailview/**",
"specs/vectors/trailview-features.*",
"builder/web/tests/browser/trailview/fixture/**",
]
# Check 7 of the ground plan: every fixture cell gives the same plan digest natively and in WASM.
[[suite]]
id = "ci.ground-plan-bytes"
route = "ordinary"
command = "bash builder/ground-plan-wasm/check-bytes.sh"
jobs = ["wasm-bridges"]
rust_packages = ["obc-ground-plan-bridge"]
triggers = [
"builder/ground-plan-wasm/**",
"host/obc-ground-plan/**",
"host/obc-trailview-parts/**",
"data/trailview/**",
"builder/web/tests/browser/trailview/fixture/**",
]
[[suite]]
id = "ci.web-build"
route = "ordinary"
command = "obc check frontend"
jobs = ["web"]
triggers = ["planner/search/place-kinds.json", "docs/assets/theme.css", "docs/assets/fonts/**", "builder/web/package.json", "builder/web/package-lock.json", "builder/web/src/**"]
[[suite]]
id = "ci.docs"
route = "required"
command = "obc check docs"
jobs = ["docs"]
triggers = [
"docs/**",
# `build_docs.py` makes the tables of the data-sources page from it.
"data/sources.toml",
# The agent on-ramps are owned here so they are not unowned paths. `build_docs.py` does not
# read them; the check that does is the unconditional `guards` job.
"AGENTS.md", "**/AGENTS.md", "companion-ios/README.md",
# The third-party agent skills and their lock file are agent prose too.
".agents/skills/**", "skills-lock.json",
]
[[suite]]
id = "ci.licenses"
route = "ordinary"
command = "tools/licenses/gen-third-party.sh --check"
jobs = ["deny"]
foundation = true
triggers = ["Cargo.lock", "planner/service/Cargo.toml", "planner/router/Cargo.toml", "builder/web/package-lock.json", "tools/licenses/about.toml", "tools/licenses/**", "data/sources.toml", "tools/data_registry.py"]
[[suite]]
id = "ci.obc-data-licence"
route = "ordinary"
command = "python3 tools/check_obc_data_licence.py"
jobs = ["deny"]
triggers = ["Cargo.lock", "host/obc-data/Cargo.toml", "tools/check_obc_data_licence.py"]
[[suite]]
id = "ci.data-sources-guard"
route = "required"
command = "python3 tools/check_data_sources.py"
jobs = ["guards"]
triggers = ["tools/check_data_sources.py", "data/sources.toml"]
[[suite]]
id = "ci.memory-x-guard"
route = "required"
command = "python3 firmware/tools/check_memory_x.py"
jobs = ["guards"]
triggers = ["firmware/tools/check_memory_x.py", "firmware/obc-fw-nrf54l/*"]
[[suite]]
id = "ci.fixture-policy"
route = "required"
command = "python3 tools/check_fixture_policy.py"
jobs = ["guards"]
triggers = ["fixtures/catalog.toml", "tools/check_fixture_policy.py", "tools/fixtures.py"]
[[suite]]
id = "ci.prose"
route = "required"
command = "python3 tools/prose.py --check"
jobs = ["guards"]
triggers = ["tools/prose.py", "tools/testing/prose-baseline.json"]
# `cairn check` fails for a new violation of a system whose doc is approved. For every doc, it
# fails for a stale system map, a lost name in a Rules table and a skill file over its budget.
# It reads source paths (ownership), system docs (the Rules tables) and Cargo manifests (dependencies), so any
# change to one of them selects it, and a documentation-only or data-only change does not.
[[suite]]
id = "ci.cairn"
route = "ordinary"
command = "python3 -m unittest discover -s tools/cairn/tests && python3 tools/cairn/cairn.py check"
jobs = ["cairn"]
triggers = [
"tools/cairn/**", ".cairn/**", "docs/design/**",
"**/Cargo.toml", "**/Cargo.lock",
"tools/obc",
"**/*.rs", "**/*.ts", "**/*.svelte", "**/*.py", "**/*.swift", "**/*.wgsl",
"**/*.js", "**/*.mjs", "**/*.sh", "**/*.h", "**/*.c",
]
[[suite]]
id = "ci.ios-host-portability"
route = "required"
command = "cargo check -p obc-ios-host --target aarch64-apple-ios --locked"
jobs = ["clippy"]
ci_only = true
# The app links OBCKit, and no Swift dependency graph exists to derive that edge: an
# OBCKit API change breaks `xcodebuild build` without touching a file under OBCCompanion/.
# build-for-testing, because the same pass produces the UI-test bundle `ios.xcuitest` runs.
[[suite]]
id = "ci.ios-app-build"
scoped = true
rust_packages = ["planner-service", "obc-ios-host"]
# The phone library disables the HTTP feature.
rust_excludes = ["planner/service/src/http.rs", "firmware/obc-app/src/harness/**"]
route = "ordinary"
command = "tools/build-ios-host.sh --sim-only && xcodebuild build-for-testing -project companion-ios/OBCCompanion.xcodeproj -scheme OBCCompanion"
jobs = ["ios-app"]
platforms = ["macos"]
triggers = [
"planner/search/place-kinds.json",
"companion-ios/scripts/generate-website-fixture.py",
"companion-ios/OBCCompanion/**",
"companion-ios/project.yml",
"companion-ios/ReplayAssets/**",
"companion-ios/Packages/OBCKit/Package.swift",
"companion-ios/Packages/OBCKit/Sources/**",
"tools/build-planner-ios.sh",
"tools/build-ios-host.sh",
"companion-ios/PlannerNative/*.swift",
"planner/search/native.mjs",
"planner/search/native-build.mjs",
"planner/search/calendar-date.mjs",
"planner/search/federation.mjs",
"planner/search/hours.mjs",
"planner/search/local-query.mjs",
"planner/search/query.mjs",
"planner/search/resolver.mjs",
"planner/search/runtime.mjs",
"planner/search/validation.mjs",
"planner/search/package.json",
"planner/search/package-lock.json",
"companion-ios/PlannerSearch/*.swift",
"planner/search/web/**",
"planner/search/query/contract.json",
"planner/search/query/lexicon/kinds.json",
# The project step runs planner/search/native-build.mjs, which loads the notice module.
"builder/web/vite/third-party-licenses.ts",
"data/sources.toml",
"rust-toolchain.toml",
]
# Mock and developer-panel code must never ship. The Debug grep rides the build above and
# proves this grep is not vacuous; the Release build is its own job because it shares no
# output with the Debug one and would otherwise extend the pull-request wall clock.
[[suite]]
id = "ci.ios-release-build"
scoped = true
rust_packages = ["planner-service", "obc-ios-host"]
# The phone library disables the HTTP feature.
rust_excludes = ["planner/service/src/http.rs", "firmware/obc-app/src/harness/**"]
route = "ordinary"
command = "tools/build-ios-host.sh --sim-only && xcodebuild build -project companion-ios/OBCCompanion.xcodeproj -scheme OBCCompanion -configuration Release"
jobs = ["ios-release"]
platforms = ["macos"]
triggers = [
"planner/search/place-kinds.json",
"companion-ios/OBCCompanion/**",
"companion-ios/project.yml",
"companion-ios/ReplayAssets/**",
"companion-ios/Packages/OBCKit/Package.swift",
"companion-ios/Packages/OBCKit/Sources/**",
"tools/build-planner-ios.sh",
"tools/build-ios-host.sh",
"companion-ios/PlannerNative/*.swift",
"planner/search/native.mjs",
"planner/search/native-build.mjs",
"planner/search/calendar-date.mjs",
"planner/search/federation.mjs",
"planner/search/hours.mjs",
"planner/search/local-query.mjs",
"planner/search/query.mjs",
"planner/search/resolver.mjs",
"planner/search/runtime.mjs",
"planner/search/validation.mjs",
"planner/search/package.json",
"planner/search/package-lock.json",
"companion-ios/PlannerSearch/*.swift",
"planner/search/web/**",
"planner/search/query/contract.json",
"planner/search/query/lexicon/kinds.json",
# The project step runs planner/search/native-build.mjs, which loads the notice module.
"builder/web/vite/third-party-licenses.ts",
"data/sources.toml",
"rust-toolchain.toml",
]
# The shell links the Rust host through an XCFramework and no Swift dependency graph
# carries that edge: a change in the host crate, in the shared host modules under it, or
# in the script that packs the slices breaks this build without touching sim/phone/app/.
[[suite]]
id = "ci.ios-device-build"
scoped = true
rust_packages = ["obc-ios-host"]
rust_excludes = ["firmware/obc-app/src/harness/**"]
route = "ordinary"
command = "xcodebuild build -project companion-ios/OBCCompanion.xcodeproj -scheme OBCDevice"
jobs = ["ios-app"]
platforms = ["macos"]
triggers = [
"planner/search/place-kinds.json",
"sim/phone/app/**",
"companion-ios/OBCCompanion/Assets.xcassets/**",
"companion-ios/project.yml",
"companion-ios/ReplayAssets/**",
"rust-toolchain.toml",
"tools/build-ios-host.sh",
]
# ── Explicitly invoked work ─────────────────────────────────────────────────
[[suite]]
id = "fixtures.assistant-inputs"
route = "manual"
command = "python3 fixtures/verify-assistant-inputs.py"
triggers = ["fixtures/verify-assistant-inputs.py", "fixtures/sources/ride-assistant/**"]
[[suite]]
id = "fixtures.landmark-content"
route = "manual"
command = "python3 fixtures/verify-landmark-content.py"
triggers = [
"fixtures/verify-landmark-content.py",
"host/obc-pack/src/landmarks/**",
"specs/photo-pools.json",
"fixtures/sources/ride-assistant/assistant-wiki.json",
]
[[suite]]
id = "fixtures.assistant-places"
route = "manual"
command = "python3 fixtures/verify-assistant-places.py"
package = "obc-bake"
targets = ["assistant_places"]
triggers = [
"fixtures/verify-assistant-places.py",
"host/obc-bake/tests/assistant_places.rs",
"firmware/obc-reader/src/reader/places.rs",
]
[[suite]]
id = "fixtures.peak-content"
route = "manual"
command = "python3 fixtures/verify-peak-content.py"
triggers = [
"fixtures/verify-peak-content.py",
"specs/photo-pools.json",
"host/obc-pack/src/landmarks/**",
"fixtures/sources/peak-view/peak-articles-source.json",
]
[[suite]]
id = "manual.obc-link"
route = "manual"
command = "cargo run -p obc-link --features std --example flat_vectors --release --locked"
package = "obc-link"
targets = ["flat_vectors"]
[[suite]]
id = "manual.obc-vectors"
route = "manual"
command = "cargo run -p obc-vectors --example regenerate --release --locked"
package = "obc-vectors"
targets = ["regenerate"]
[[suite]]
id = "manual.obc-builder-bridge"
route = "manual"
command = "cargo run -p obc-builder-bridge --example fixture --release --locked"
package = "obc-builder-bridge"
targets = ["fixture"]
# Run it by hand before a release, and after a firmware change to the flat store or the USB path.
# Needs a board on both cables, a designated test card whose map it replaces, probe-rs with no other
# probe session open, and `npm install` in its own directory. It cannot pass without hardware. The
# physical procedure and its evidence live in the issue that asks for the run.
[[suite]]
id = "device.upload-smoke"
route = "manual"
command = "npm run smoke --prefix builder/web/tests/device-smoke -- --replace-map"
platforms = ["linux", "macos"]
triggers = [
"builder/web/tests/device-smoke/**",
"builder/web/test-support/device-smoke/**",
"sim/desktop/assets/grimsel-demo.obcm",
"tools/board.py",
]
[[suite]]
id = "live.copernicus"
route = "live"
command = "cargo test -p obc-dem --locked --test decode --test real_tile -- --ignored --nocapture"
package = "obc-dem"
targets = ["decode", "real_tile"]
# `test-weekly.yml` invokes this each Monday, and a maintainer can invoke it by hand. The
# schedule belongs to that workflow; this row owns the XCUITest classes and the command.
[[suite]]
id = "ios.application-weekly"
route = "manual"
command = "companion-ios/scripts/test-application.sh"
platforms = ["macos"]
triggers = ["companion-ios/OBCCompanionUITests/**"]
[[suite]]
id = "planner.native-tiles"
scoped = true
route = "ordinary"
command = "bash companion-ios/PlannerNative/test-tiles.sh"
jobs = ["ios-unit"]
platforms = ["macos"]
triggers = ["companion-ios/PlannerNative/PMTilesArchive.swift", "companion-ios/PlannerNative/tests/**", "companion-ios/PlannerNative/test-tiles.sh", "pyproject.toml"]
[[suite]]
id = "planner.search"
route = "ordinary"
command = "npm test --prefix planner/search"
jobs = ["planner-search"]
platforms = ["linux", "macos"]
triggers = ["planner/search/**", "companion-ios/PlannerSearch/**"]
[[suite]]
id = "planner.tiles"
route = "ordinary"
command = "npm test --prefix planner/tiles && npm run build --prefix planner/tiles"
jobs = ["planner-search"]
platforms = ["linux", "macos"]
triggers = ["planner/tiles/**"]
[[suite]]
id = "planner.query-decoder"
route = "ordinary"
command = "npm run test:query --prefix planner/search"
jobs = ["planner-search"]
platforms = ["linux", "macos"]
triggers = ["planner/search/query/**", "planner/search/package.json", "pyproject.toml", "uv.lock"]
[[suite]]
id = "planner.search-data"
route = "manual"
command = "npm run test:data --prefix planner/search"
fixtures = ["local-photon-search-packages"]
platforms = ["linux", "macos"]
triggers = ["planner/search/**", "companion-ios/PlannerSearch/**"]
[[suite]]
id = "planner.query-model"
route = "manual"
command = "npm run test:model --prefix planner/search"
fixtures = ["local-query-onnx-model"]
platforms = ["linux", "macos"]
triggers = ["planner/search/query/**"]