Skip to content

Fix pixi macOS legs: pin a Python with a macOS build (#2184) - #2209

Merged
Mikola Lysenko (mikolalysenko) merged 4 commits into
mainfrom
agent/fix-pixi-macos-python-pin
Nov 24, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 4 commits into
mainfrom
agent/fix-pixi-macos-python-pin

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

LLM Description written by Claude Code:claude-fable-5-2

Fixes #2184

Summary

Both native-macos legs of pixi patch compatibility have failed on every
push to main since the workflow landed. They stop in
actions/setup-python before any test runs. This PR pins a Python release
that 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.yml pinned python-version: '3.12.13' in the steps
its native (Ubuntu) and native-macos jobs share. CPython 3.12.11 and
later are source-only security releases, and setup-python's versions
manifest has no macOS build of any of them: 3.12.10 is the last 3.12 release
with darwin files (arm64 and x64). It is also the pin ci.yml uses. The
Ubuntu 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 one
    retry.
  • scripts/tests/test_check_tool_pins.py: a new repository test,
    test_workflows_pin_one_patch_release_per_python_line. It reads every
    workflow 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-ecosystems runs it on every PR.

Evidence

  • The test fails on the old pin and passes on the new one:
    python3 -B -m unittest scripts/tests/test_check_tool_pins.py reported
    {'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.yml
    passes.
  • The macOS legs don't run on a pull request, so I ran the workflow on this
    branch by workflow_dispatch. Run 45304689800 (pin change, commit
    4bf1da5): all 8 jobs pass, including native-macos (macos-latest, 0.20.1)
    and native-macos (macos-latest, 0.84.2). Run 45305163077 (head commit
    8def44d, with the retry steps): all 8 jobs pass, both native-macos
    legs included.

Review findings not fixed here

  • bun-, pdm-, poetry- and vlt-compatibility.yml install a floating
    python-version: '3.12'. That was there before this PR and doesn't break
    macOS (a floating 3.12 resolves to 3.12.10 there). Pinning them is a
    separate change.
  • The new test reads literal versions, including ones inside a ${{ }}
    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

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
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review November 24, 2026 01:31
@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] bugbot run


Generated by Claude Code

@cursor

cursor Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
CI workflow and test-only changes; no application or security-sensitive runtime code.

Overview
Fixes failing pixi-compatibility macOS legs by aligning Python with ci.yml: python-version moves from 3.12.13 (no macOS artifact in setup-python) to 3.12.10, the last 3.12 with Darwin builds.

The shared native-steps block now mirrors ci.yml's setup-python hardening—a 4-minute timeout, continue-on-error on the first attempt, and a conditional second attempt—so hung manifest downloads do not stall the job.

A new repository test, test_workflows_pin_one_patch_release_per_python_line, scans all workflow YAML for literal python-version pins and fails if the same minor line (e.g. 3.12) uses more than one patch release across files, blocking Linux-only pins from diverging from what macOS can run.

Reviewed by Cursor Bugbot for commit 8def44d. Configure here.

@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] PR shepherd: review brief for the approver

What it does
Fixes the two native-macos legs of pixi patch compatibility, which fail on every main push (#2184). They pinned Python 3.12.13, and setup-python has no macOS build of it. This PR pins 3.12.10, the version ci.yml already uses, and adds the same 4-minute cap and single retry that ci.yml puts on setup-python. A new repository test fails when two workflows pin different patch releases of the same Python minor line. No product code changes.

Risk
Low. It changes one CI workflow and adds one Python unit test, and nothing ships to users. The steps are a YAML anchor that the native (Ubuntu) and native-macos jobs share, so the Ubuntu legs move to 3.12.10 as well.

Look here

Verified

  • Read the whole diff. The YAML parses, and scripts/check-tool-pins.py passes on the workflow.
  • python3 -B -m unittest scripts/tests/test_check_tool_pins.py: 22 tests pass. With the old 3.12.13 pin put back, the new test fails and names pixi-compatibility.yml, so it would have caught this.
  • The workflow_dispatch run of the pixi workflow at this head (45305163077) passed all 8 jobs, both native-macos legs included. Those legs don't run on pull requests.
  • ci-ok and clippy are green at 8def44d6f. There are no review threads, and Bugbot left no findings.

Changes I made
None.

Open questions
None. The floating python-version: '3.12' in the bun, pdm, poetry and vlt workflows was already there and is out of scope, as the description says.


Generated by Claude Code

@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Nov 24, 2026

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.

[agent] Reviewed the shared native-job steps. All 22 tool-pin tests passed locally, and the Pixi compatibility dispatch for this commit passed.

Merged via the queue into main with commit d2e5705 Nov 24, 2026
101 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the agent/fix-pixi-macos-python-pin branch November 24, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pixi compatibility: native-macos legs fail on main; setup-python has no Python 3.12.13 for macOS 26 arm64

3 participants