fix(publish): uv pip install + bump 0.1.0a3 — v0.1.0a2 run died on missing pip#5
Merged
Conversation
…mp to 0.1.0a3
v0.1.0a2 tag fired the workflow but all 15 publish jobs died on:
Run uv venv --python ... /tmp/build-env
/tmp/build-env/bin/pip install build twine
Process completed with exit code 127.
Exact same bug PRs #2 and #3 fixed for bench.yml: `uv venv` does not
bootstrap pip into the venv, so `/tmp/build-env/bin/pip` does not
exist. Fix: switch to
uv pip install --python /tmp/build-env/bin/python build twine
The build/twine step itself + the OIDC publish step never ran, so
TestPyPI is untouched and we have no idea yet whether the 15 Trusted
Publishers are wired correctly. Need another tag to re-test.
Bumping all 15 packages to 0.1.0a3 because tag v0.1.0a2 is already
on a known-broken commit; re-tagging at the same name is brittle and
runs into `skip-existing` ambiguity in the off chance any file did
get uploaded.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Repro
`git push origin v0.1.0a2` fired `publish-to-pypi` (run `26715540392`). All 15 publish jobs failed on:
```
Run uv venv --python ... /tmp/build-env
/tmp/build-env/bin/pip install build twine
##[error]Process completed with exit code 127.
```
Cause
Same bug PR #2 + PR #3 fixed for `bench.yml`: `uv venv` does not bootstrap `pip` into the venv. So `/tmp/build-env/bin/pip` doesn't exist. I missed mirroring the fix into `publish.yml` at the time.
Fix
```yaml
run: |
uv venv --python ${{ env.BUILD_PYTHON_VERSION }} /tmp/build-env
```
Why bump 0.1.0a3 (not re-tag a2)
Re-tagging `v0.1.0a2` at the new commit:
So bump everyone to `0.1.0a3` and we get a fresh, clean run.
State after the failed run
Test plan
🤖 Generated with Claude Code