Skip to content

Stage interpreter-changing tool upgrades - #2543

Draft
zaniebot wants to merge 13 commits into
zb/opportunity-18-05-tool-export-transactionfrom
zb/opportunity-18-04-staged-tool-upgrades
Draft

zaniebot wants to merge 13 commits into
zb/opportunity-18-05-tool-export-transactionfrom
zb/opportunity-18-04-staged-tool-upgrades

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Interpreter-changing uv tool upgrade operations remove the working environment before its replacement finishes installing. Prepare a sibling environment first, then finalize generated scripts and bytecode for the published path after builds complete. Journal environment and executable publication so incomplete upgrades can restore owned prior state, and retain recovery data when foreign changes prevent restoration or cleanup.

Use directory exchange where supported and a recoverable rename sequence otherwise. Same-interpreter upgrades continue to update their environment in place. Builds on #2538 and shares the directory-exchange primitive with #2118.

@astral-automations-bot astral-automations-bot Bot added bug Something isn't working preview Experimental behavior labels Oct 9, 2026
@codspeed

codspeed Bot commented Oct 9, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 25 untouched benchmarks


Comparing zb/opportunity-18-04-staged-tool-upgrades (073c370) with zb/opportunity-18-05-tool-export-transaction (1b1677e)

Open in CodSpeed

This branch has not been deployed

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

Labels

bug Something isn't working preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant