Skip to content

GA-9681: Separate package requirements and runtime constraints - #113

Merged
sebhmg merged 16 commits into
release/ga-4.9from
copilot/runtime-security-constraints
Nov 23, 2026
Merged

sebhmg merged 16 commits into
release/ga-4.9from
copilot/runtime-security-constraints

Conversation

@sebhmg

@sebhmg sebhmg commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

GA-9681 - update Python distribution for 4.9 beta
Remove the security-only Pillow package dependency; retain Conda source forcing and express the security floor as Pixi and Conda run constraints. Move Mira PyPI dependencies into a dedicated feature. Validation: Pixi lock check, all locked-environment source checks, Python 3.12 tests (57 passed, 1 skipped), recipe render, and prek hooks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 03:28
@github-actions github-actions Bot changed the title [GA-9681] Separate package requirements and runtime constraints GA-9681: Separate package requirements and runtime constraints Nov 21, 2026

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.

🟢 Approval recommended

No active review issues block approval of the dependency and environment-constraint changes.

No open issues 🎉

What changed in this PR

This PR separates package requirements from environment constraints for the 4.9 beta distribution, while retaining Conda sourcing for indirect dependencies.

Changes:

  • Remove Pillow as a direct Python and Conda package requirement.
  • Express the Pillow security floor through Pixi constraints and Conda run constraints.
  • Move Mira PyPI dependencies into a dedicated feature enabled in development, test, and runtime environments.
File Description
recipe.yaml Move Pillow from runtime requirements to a minimum-version run constraint.
pyproject.toml Remove the security-only Pillow dependency from package metadata.
pixi.toml Separate source forcing from version constraints and introduce the mira-pypi feature.

Review effort: Balanced (adaptive)

@sebhmg

sebhmg commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

CI investigation: the Zizmor security scan failed on existing, unchanged workflow pins in python_analysis.yml lines 29 and 40 (hash pin points to unknown ref). The Python 3.12–3.14 matrix, pylint, CodeQL, and pre-commit checks passed.

sebhmg and others added 2 commits November 20, 2026 22:37
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sebhmg

sebhmg commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Resolved the Zizmor failure by pinning both workflows to CI-tools v4.1.0 at its full commit SHA. The former branch no longer exists; the release and former commit have identical Git trees. Restored source-forcing Conda bounds to match Mira PyPI requirements (retaining the existing tighter h5py bound). Pixi lock check and Python 3.12 tests passed; the new CI checks passed.

@sebhmg

sebhmg commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Updated the Mira PyPI index, refreshed the Pixi lock, passed JFrog secrets to analysis jobs, and aligned the development guide. Local verification: pixi lock --check; lock tests (2 passed); py312 tests (59 passed, 1 skipped); prek run --all-files passed; Sphinx docs build succeeded with pre-existing warnings. Anonymous index access returned 401; no local netrc credentials were available for an authenticated probe.

@sebhmg

sebhmg commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Python analysis completed successfully on Linux and Windows for Python 3.12–3.14, including static analysis and Codecov. A cache reservation race was reported as a non-fatal warning.

sebhmg and others added 9 commits November 22, 2026 10:32
no more conda env lock files
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sebhmg
sebhmg force-pushed the copilot/runtime-security-constraints branch from ae6fbf2 to 0909863 Compare November 22, 2026 15:34
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Force push detected - Previous Copilot review comments may no longer be relevant to the current code. Please resolve any outdated threads and re-request a Copilot review when ready.

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

Active critical issues remain: fork-based CI cannot authenticate to the locked private Mira index, and the package test environment lacks the PyYAML dependency needed to collect the new lock test.

4 open issues

Review effort: Lite

Comment on lines +39 to +40
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
Comment thread tests/pixi_lock_test.py Resolved
Comment thread recipe.yaml Resolved
Comment thread README-dev.rst Resolved
@sebhmg
sebhmg merged commit 6b51d5b into release/ga-4.9 Nov 23, 2026
20 checks passed
@sebhmg
sebhmg deleted the copilot/runtime-security-constraints branch November 23, 2026 16:13
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