Skip to content

fix(ci): run zarr-indexing tests on the matrix interpreter - #359

Closed
d-v-b wants to merge 1 commit into
mainfrom
fix/zarr-indexing-ci-matrix-python
Closed

d-v-b wants to merge 1 commit into
mainfrom
fix/zarr-indexing-ci-matrix-python

Conversation

@d-v-b

@d-v-b d-v-b commented Sep 23, 2026

Copy link
Copy Markdown
Owner

🤖 AI text below 🤖

Fix for zarr-developers#4384.

The zarr-indexing test job syncs the repo-root venv on the matrix Python, but just test / just test-tensorstore then call uv run --project ../.. with no --python. uv honours the root .python-version (3.12), rejects the 3.13/3.14 venv, and rebuilds it on 3.12, so the py=3.13 and py=3.14 legs have run on 3.12 since zarr-developers#4222.

Changes (workflow only):

  • Job-level env: UV_PYTHON: ${{ matrix.python-version }}, the fix proposed by @glaziermag in the issue. Every uv call inside the recipes inherits the matrix interpreter, and the justfile stays interpreter-agnostic for local use.
  • Drop the now-redundant --python from the sync step and correct its comment, which claimed the step pinned the interpreter.
  • New Check interpreter step that fails if the venv interpreter doesn't match the matrix version, so a quiet fallback like this one turns the job red.

A package-local .python-version wouldn't help: with --project ../.., uv reads the pin from the root project, and a single pin can't serve a three-version matrix anyway.

Verified locally (uv 0.12.13) by simulating the 3.13 leg: the check passes, just test runs 1739 passed on 3.13; without UV_PYTHON, the check fails with AssertionError: 3.12. actionlint and zizmor are clean.

No changelog fragment: CI-only change.

🤖 Generated with Claude Code

The test recipes call `uv run --project ../..` without --python, so uv
honoured the root .python-version pin (3.12) and rebuilt the venv the
sync step had created on 3.13/3.14. Both non-3.12 legs have run on
3.12 since zarr-developers#4222.

Set UV_PYTHON at job level so every uv call inside the recipes uses the
matrix interpreter, and add a step that fails if the interpreter drifts
again.

Closes zarr-developers#4384

Assisted-by: ClaudeCode:claude-opus-5-5
@d-v-b

d-v-b commented Sep 24, 2026

Copy link
Copy Markdown
Owner Author

🤖 AI text below 🤖

Closing: merged upstream as zarr-developers#4390.

@d-v-b d-v-b closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant