kiji-proxy icon indicating copy to clipboard operation
kiji-proxy copied to clipboard

CI does not run the Python tests

Open Davidnet opened this issue 2 weeks ago • 0 comments

The checks on PRs are:

  • PR scope
  • frontend lint
  • Go lint
  • Go tests
  • Python lint
  • PR title
  • actionlint
  • cla

None of them runs pytest, so "all checks green" says nothing about the Python tests. The v5 stack (#688, #689) adds about 1,500 lines of them (split, collator, data builder and benchmark tests). They currently pass only in local runs: 130 passed with uv run --all-extras pytest.

Things a CI job needs to handle:

  • Plain uv run pytest fails, because pytest is in the dev extra.
  • --extra dev --extra training can't collect tests/benchmark/{smoke_test,test_run_metrics}.py. run.py imports onnxruntime at module top, and onnxruntime is in the quantization extra.
  • Some tests download Hub datasets or need model files. Mark them, or skip them in CI.

Suggested fix: add a workflow job running uv run --extra dev --extra training --extra quantization pytest -m "not network", or similar, on PRs that touch model/** or tests/**.

Davidnet avatar Nov 17 '26 02:11 Davidnet