Skip to content

🐛 fix(seed): fail --upgrade-embed-wheels when an upgrade fails - #3747

Merged
gaborbernat merged 3 commits into
pypa:mainfrom
gaborbernat:rework/pr-3694
Nov 20, 2026
Merged

gaborbernat merged 3 commits into
pypa:mainfrom
gaborbernat:rework/pr-3694

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

virtualenv --upgrade-embed-wheels could exit successfully after one or more wheel upgrades failed. The command now exits with status 1 if any upgrade fails and 0 if all succeed. Fixes #3583.

Each upgrade worker records its own failure and logs the distribution, Python version, and available pip error output. The command gathers those results after all workers finish, so a worker failure reaches the process exit status without a thread traceback. The wheel download inputs and selection are unchanged.

Contribution by Pratik-Kumar-Dhakar.

@gaborbernat
gaborbernat marked this pull request as ready for review November 20, 2026 16:58
@gaborbernat
gaborbernat marked this pull request as draft November 20, 2026 20:27
@gaborbernat
gaborbernat marked this pull request as ready for review November 20, 2026 21:10
@gaborbernat
gaborbernat merged commit 4c1e1a7 into pypa:main Nov 20, 2026
81 checks passed
@gaborbernat
gaborbernat deleted the rework/pr-3694 branch November 23, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--upgrade-embed-wheels exits 0 when upgrades fail and prints a thread traceback for each

1 participant