Commit bf09d71
authored
* ci: split build matrix on physics/api marker axis (#1300 PR B)
Follow-up to #1305 (PR A). Now that every test file declares `physics`
or `api`, the CI matrix can stop running the full suite on every Python
and instead run each nature axis where its coverage genuinely matters.
- build-suews/action.yml: CIBW_TEST_COMMAND runs `-m "physics and
<tier>"` on the build Python only. Physics tests are binary-
determined (compiled artefact + CPU floating-point), so one run per
(OS, arch) suffices post-abi3 (#1299).
- determine-matrix.sh: rename output `test_python` -> `api_python` to
reflect that this matrix now drives the api-tier cross-Python tests,
not a generic bridge-loading subset.
- test-api-cross-python-reusable.yml (renamed from test-bridge-reusable
.yml): installs the single abi3 wheel into each test CPython and runs
`-m "api and <tier>"`. Composes the tier expression inline so the
caller doesn't need to.
- build-publish_to_pypi.yml: rename job `test_bridge_loading` ->
`test_api_cross_python`, pass `test_tier` into the reusable workflow,
and add a new standalone `check_test_markers` job that runs a static
AST-based lint (no supy build required) ensuring every test file
declares physics or api. The lint is gated into `pr-gate` so a
missing marker blocks the merge.
- scripts/lint/check_test_markers.py: the static lint. Skips files
under `test/umep/` which pick up `api` via the conftest hook.
- pr-gate.sh: surface check_test_markers result alongside build and
api-test results.
Net effect:
- PR / merge queue: physics runs on N_platforms x 1 Python, api runs
on N_platforms x 2 bookend Pythons. Full-tree marker lint runs
once (single-platform, fast).
- Nightly / tag: physics x 4 platforms + api x (4 platforms x 6
Pythons). Total CPU similar to pre-split, but each cell now
carries orthogonal information.
Docs: RELEASE_MANUAL.md and prep-release skill reference the renamed
job; test/README.md notes that `smoke_bridge` is now legacy (coverage
subsumed by `api and smoke`). Tests tagged `@pytest.mark.smoke_bridge`
continue to work; the marker is still registered.
* test: tag data_model yaml fixture tests with api marker (gh#1300)
Three tests landed on master between #1305 and this PR and need
the nature-axis marker. All three exercise pydantic/yaml config
validation and the suews-convert yaml-upgrade CLI, so they fall
cleanly into the api tier.
Fixes the Check pytest marker axis CI job on this PR.
* docs(rules): require physics/api marker on every new test file
Update the tests/patterns.md rule (auto-loaded when editing test files)
so contributors and AI assistants see the nature-axis requirement
up-front when designing new tests. The lint in
scripts/lint/check_test_markers.py is the hard gate; this rule is the
soft gate that prevents the lint from firing in the first place.
gh#1300
1 parent 78a37fd commit bf09d71
File tree
12 files changed
+363
-124
lines changed- .claude
- rules/tests
- skills/prep-release/references
- .github
- actions/build-suews
- scripts
- workflows
- dev-ref
- scripts/lint
- test
12 files changed
+363
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 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 | + | |
65 | 106 | | |
66 | 107 | | |
67 | 108 | | |
| |||
70 | 111 | | |
71 | 112 | | |
72 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
73 | 118 | | |
74 | 119 | | |
75 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
103 | | - | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
111 | | - | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | | - | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
150 | | - | |
| 154 | + | |
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
156 | | - | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
167 | | - | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
174 | 179 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
38 | 54 | | |
39 | 55 | | |
40 | 56 | | |
| |||
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
48 | | - | |
| 64 | + | |
49 | 65 | | |
50 | | - | |
| 66 | + | |
51 | 67 | | |
52 | | - | |
53 | | - | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
66 | | - | |
| 82 | + | |
67 | 83 | | |
68 | 84 | | |
69 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 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 | + | |
391 | 420 | | |
392 | 421 | | |
393 | 422 | | |
394 | 423 | | |
395 | 424 | | |
396 | 425 | | |
397 | | - | |
| 426 | + | |
398 | 427 | | |
399 | 428 | | |
400 | 429 | | |
| |||
406 | 435 | | |
407 | 436 | | |
408 | 437 | | |
409 | | - | |
| 438 | + | |
| 439 | + | |
410 | 440 | | |
411 | 441 | | |
412 | 442 | | |
| |||
416 | 446 | | |
417 | 447 | | |
418 | 448 | | |
419 | | - | |
| 449 | + | |
420 | 450 | | |
421 | 451 | | |
422 | 452 | | |
423 | | - | |
424 | | - | |
425 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
426 | 456 | | |
427 | 457 | | |
428 | 458 | | |
429 | | - | |
| 459 | + | |
430 | 460 | | |
431 | 461 | | |
432 | 462 | | |
| |||
459 | 489 | | |
460 | 490 | | |
461 | 491 | | |
462 | | - | |
| 492 | + | |
463 | 493 | | |
464 | 494 | | |
465 | | - | |
466 | | - | |
467 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
468 | 498 | | |
469 | 499 | | |
470 | 500 | | |
471 | 501 | | |
472 | 502 | | |
473 | | - | |
| 503 | + | |
474 | 504 | | |
475 | 505 | | |
476 | 506 | | |
| |||
0 commit comments