Repository navigation
Fix pixi macOS legs: pin a Python with a macOS build (#2184) - #2209
Conversation
Refs #2184. Assisted-by: Claude Code:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeSEuNcWpJPmod7n42H
setup-python has Linux builds only of CPython's source-only security releases, so an exact pin can pass on Ubuntu and fail on macOS. The test fails on pixi-compatibility.yml's 3.12.13 (#2184). Assisted-by: Claude Code:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeSEuNcWpJPmod7n42H
The native-macos legs stopped in setup-python on every push to main: 3.12.13 is a source-only release with no macOS build. 3.12.10 is the last 3.12 release built for macOS, and the pin ci.yml uses. Fixes #2184. Assisted-by: Claude Code:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeSEuNcWpJPmod7n42H
The pixi legs now download Python 3.12.10, so cap the download at 4 minutes and try once more, as ci.yml does. Compare pins per minor line instead of against ci.yml's set, so a second 3.12 pin in ci.yml fails too and a pin of another line passes. Read releases inside expressions as well. Assisted-by: Claude Code:claude-fable-5-2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeSEuNcWpJPmod7n42H
|
[agent] bugbot run Generated by Claude Code |
PR SummaryLow Risk Overview The shared A new repository test, Reviewed by Cursor Bugbot for commit 8def44d. Configure here. |
|
[agent] PR shepherd: review brief for the approver What it does Risk Look here
Verified
Changes I made Open questions Generated by Claude Code |
Wenxin Jiang (Wenxin-Jiang)
left a comment
There was a problem hiding this comment.
[agent] Reviewed the shared native-job steps. All 22 tool-pin tests passed locally, and the Pixi compatibility dispatch for this commit passed.
LLM Description written by Claude Code:claude-fable-5-2
Fixes #2184
Summary
Both
native-macoslegs ofpixi patch compatibilityhave failed on everypush to
mainsince the workflow landed. They stop inactions/setup-pythonbefore any test runs. This PR pins a Python releasethat has a macOS build, and adds a check so the pin can't drift again. It
changes one workflow and one test file; no product code.
Root cause
pixi-compatibility.ymlpinnedpython-version: '3.12.13'in the stepsits
native(Ubuntu) andnative-macosjobs share. CPython 3.12.11 andlater are source-only security releases, and
setup-python's versionsmanifest has no macOS build of any of them: 3.12.10 is the last 3.12 release
with
darwinfiles (arm64 and x64). It is also the pinci.ymluses. TheUbuntu legs passed, and the macOS legs don't run on pull requests, so the
failure showed only on
main.Changes
pixi-compatibility.yml: pin 3.12.10. The legs now may download Python,so the step gets
ci.yml's protection for that: a 4 minute cap and oneretry.
scripts/tests/test_check_tool_pins.py: a new repository test,test_workflows_pin_one_patch_release_per_python_line. It reads everyworkflow and fails when two patch releases of one Python minor line are
pinned. A pin that only Linux legs run can no longer differ from the one
the macOS legs run.
lint-ecosystemsruns it on every PR.Evidence
python3 -B -m unittest scripts/tests/test_check_tool_pins.pyreported{'3.12': {'3.12.10': ['ci.yml'], '3.12.13': ['pixi-compatibility.yml']}}before the fix. The first test commit on the branch is red by itself.
python3 -B -m unittest discover -s scripts/tests: 423 tests pass.python3 scripts/check-tool-pins.py .github/workflows/pixi-compatibility.ymlpasses.
branch by
workflow_dispatch. Run 45304689800 (pin change, commit4bf1da5): all 8 jobs pass, including
native-macos (macos-latest, 0.20.1)and
native-macos (macos-latest, 0.84.2). Run 45305163077 (head commit8def44d, with the retry steps): all 8 jobs pass, both
native-macoslegs included.
Review findings not fixed here
bun-,pdm-,poetry-andvlt-compatibility.ymlinstall a floatingpython-version: '3.12'. That was there before this PR and doesn't breakmacOS (a floating 3.12 resolves to 3.12.10 there). Pinning them is a
separate change.
${{ }}expression. A version that comes from a matrix value isn't resolved; no
workflow passes Python that way today.
https://claude.ai/code/session_011f9aeSEuNcWpJPmod7n42H
Generated by Claude Code