Skip to content

Restore interpreter cache warming - #22524

Draft
zanieb wants to merge 1 commit into
mainfrom
zb/restore-interpreter-cache-warming
Draft

zanieb wants to merge 1 commit into
mainfrom
zb/restore-interpreter-cache-warming

Conversation

@zanieb

@zanieb zanieb commented Oct 13, 2026

Copy link
Copy Markdown
Member

Restore interpreter cache warming from #21304, reverted in #22520, to provide a shared base for fixes to inferred virtual environment metadata.

@furudean

furudean commented Nov 5, 2026

Copy link
Copy Markdown

This patch introduces a bug under Rosetta. InterpreterInfo::from_virtualenv copies platform and markers from the base interpreter instead of asking the venv's Python. A universal2 base breaks that shortcut, because its architecture depends on how it's launched. When we build on an Apple Silicon runner under arch-x86_64, the venv's Python runs as x86_64, but the inferred metadata says arm64. uv then installs arm64 wheels the venv can't load.

This branch was previously deployed

1 inactive deployment
automations — e83627b9 Deployed Oct 13, 2026 by zanieb via review / security review #50847
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