Repository navigation
Description
No pull-request workflow runs the ci/tests Python suite — 1,478 tests, including every golden-vector, reference, and structural guard the colour pipeline relies on.
Evidence
The two PR-gated workflows that run tests both run C++ only:
build_linux.yml:58—uv run test.py --cpptemplate_unit_test.yml:100(viaunit_test_{linux,macos,windows}.yml) —./test --clang --no-parallel --unit --verbose --debug
And test.py --help is explicit about what those exclude:
--cpp Run C++ tests only (equivalent to --unit --examples, suppresses Python tests)
--unit Run C++ unit tests only
--py Run Python tests only
The one workflow that does run bash test --py is mp3_cpu_audit.yml:117, and it is path-filtered to src/fl/codec/mp3*, src/third_party/minimp3/**, tests/fl/codec/mp3* and friends — so it never fires for a change under ci/.
How it surfaced
master is currently red on ci/tests/test_color_rgbw_study.py (#4357), introduced by #4340 and merged without anything noticing. It only came to light because I ran bash test locally. That failure has been sitting on master since.
Why this matters here
The P5 reference is the thing every later phase is measured against, and essentially all of its guards live in ci/tests:
test_transfer_lut_matches_reference.py— the checked-in decode LUTs vs the float64 referencetest_bradford_matrix_agrees.py(test(ci): pin the normative Bradford matrix against ICC, both copies (#4353) #4354) — the normative CAT vs ICC.1:2022 Annex Etest_named_source_spaces_agree.py(test(ci): pin the named source spaces against the standards (#4351) #4352) — sRGB/P3/BT.2020/D65 vs published standardstest_oklab_reference_matrix.py(test(ci): pin the colour reference's OKLab against the quantized matrices (#4355) #4356) — the mapper's objective spacetest_color_reference*.py,test_color_rgbw_study.py, the corpus tests — the goldens themselvestest_per_pixel_stage_lists_agree.py,test_no_rgb8_intermediate.py,test_no_iterative_solver_per_pixel.py— B3/A3 structural guards
None of these gate a PR today. They are load-bearing documents that nothing enforces on the way in, which is close to the opposite of what they were written for.
Precedent in this very file
template_unit_test.yml:75-82 carries a comment about the same class of gap one layer down:
The crate carries ~53 tests covering real rule behaviour ... and until now CI never ran them. Only
bash lint --cppbelow ran, which exercises the BINARY but not its tests, so a broken rule shipped silently.
Same shape: the artifact ran, its tests did not.
Proposed
Add a bash test --py step to the Linux PR job (one platform is enough — these are pure-Python and platform-independent). It takes ~150s locally. Worth checking whether it wants its own job so a Python failure is legible separately from a C++ one, rather than a step inside the unit-test template.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
ci: run the ci/tests Python suite on pull requests (#4359) (#4360)