Skip to content

ci: the ci/tests Python suite (1,478 tests) is not run by any pull-request workflow #4359

Closed

Description

@zackees

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 --cpp
  • template_unit_test.yml:100 (via unit_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:

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 --cpp below 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions