Repository navigation
🐛 fix(seed): fail --upgrade-embed-wheels when an upgrade fails - #3588
Merged
gaborbernat merged 2 commits intoNov 20, 2026
Merged
gaborbernat merged 2 commits into
gaborbernat merged 2 commits into
Conversation
Pratik-Kumar-Dhakar
marked this pull request as ready for review
November 19, 2026 16:58
Report failed upgrades and exit 1 when any worker fails. Thread exceptions previously left the command with status 0.
The lazy import placeholder is non-callable in isolated Windows runs, so autospec made the CLI test fail before the upgrade path ran. Keep the exit status and invocation assertions. Correct the changelog claim because pip stderr may span lines.
gaborbernat
force-pushed
the
fix/upgrade-embed-wheels-exit-code
branch
from
November 20, 2026 01:15
c612af6 to
d4cd886
Compare
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3583
manual_upgradenow returns1when any upgrade failed, and0otherwise. The existingraise SystemExit(manual_upgrade(...))turns that into the exit status. Each thread catches its own failure and logs onecould not upgrade <dist> for python <ver>: ...error, including pip's stderr when there is one, instead of printing a thread traceback.With
PIP_NO_INDEX=1, the command now exits1with no tracebacks; it used to exit0with 16. Tests:Security scope: this touches the wheel-download path, but only the error handling after
pip downloadfails. No outside input is newly read. The loggedstderris pip's output, written to the log as data and never executed.Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)
tox -e fix)docs/changelog/+short-description.<type>.rstfragment for each user-facing change, or appliedskip newspyvenv.cfg, wheel downloads, app-data or release workflows: explained in the PR text which outside input the change handlesmainin my environment)