Skip to content

GA-9681: Separate runtime security constraints - #519

Open
sebhmg wants to merge 20 commits into
release/ga-4.9from
GA-9681-runtime-constraints
Open

sebhmg wants to merge 20 commits into
release/ga-4.9from
GA-9681-runtime-constraints

Conversation

@sebhmg

@sebhmg sebhmg commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

GA-9681 - update Python distribution for 4.9 beta
Separates conditional Conda security and compatibility constraints from direct and source-forcing dependencies, keeps Dask reporting and h5py dependencies explicit, and moves Mira packages into a dedicated Pixi feature. Conda source-forcing entries retain their original compatibility bounds, including Pillow >=13 as required by the Mira wheels, because Pixi solves Conda before PyPI. The lock regression checks Conda and PyPI security floors without overriding PyPI resolution. Recipe checks omit the source-only lock test. Pillow is transitive here. CI-tools workflow pins use the v4.1.0 commit: its Git tree is identical to the former branch commit. Validation: Pixi lock check and py312 tests, editable-install compatibility, rattler-build recipe rendering, prek hooks, Zizmor, and all six CI pytest jobs passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 03:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unavailable upstream Conda metadata leaves Zarr’s runtime availability unresolved after its move to run_constraints, requiring verification with a Zarr-backed Dask simulation in a clean recipe-built environment.

No open issues 🎉

What changed in this PR

This PR separates runtime security and compatibility constraints from direct dependencies for the 4.9 beta Python distribution, while preserving explicit package-source choices.

Changes:

  • Reorganizes Conda constraints and groups Mira PyPI packages into a dedicated Pixi feature.
  • Declares Bokeh and h5py as direct dependencies and refreshes the lock file.
  • Adds lock regression checks for package sources and security floors, documents validation, and excludes source-only checks from recipe tests.
File Description
tests/​lock_test.py Checks locked package sources and Conda/PyPI security floors.
recipe.yaml Separates runtime constraints and excludes the source-only lock test.
README-dev.rst Documents dependency organization and lock validation.
pyproject.toml Adds Bokeh and h5py dependencies and removes the uv-specific constraint.
pixi.toml Separates constraints, source choices, and Mira package configuration.
pixi.lock Removes unneeded setuptools and Werkzeug environment entries.

Review effort: Balanced (adaptive)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change still has an unresolved documentation typo and a regression test that does not verify the declared security and compatibility version floors.

2 open issues

Review effort: Lite

Comment thread README-dev.rst Resolved
Comment thread tests/pixi_lock_test.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The regression test does not verify the newly required Conda security version floors, so a lockfile could violate those constraints while the test still passes.

No open issues 🎉

2 resolved since last review

Review effort: Lite

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants