fix: testpypi-smoke app must not inherit the script's argv#794
Merged
Conversation
Dry-run 29210928341 got through preflight, gates, build, and the
first real OIDC TestPyPI publish, then failed in testpypi-smoke:
App.run() parses sys.argv[1:] by default, so the SmokeApp's argparse
rejected the version argument passed to the wrapper script itself
('smoke: error: unrecognized arguments: 3.0.15'). Set Meta.argv = []
on the smoke app.
Reproduced and verified end-to-end locally: a fresh venv running the
fixed script against real TestPyPI installs the exact cement-3.0.15
bytes published by that run and passes the round-trip.
Co-Authored-By: Claude Fable 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe TestPyPI smoke script configures ChangesTestPyPI smoke flow
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/testpypi-smoke.py`:
- Around line 91-95: Update the class-level argv configuration in SmokeApp.Meta
by importing ClassVar from typing and annotating argv as ClassVar[list[str]]
while preserving its empty-list default and behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
Co-Authored-By: Claude Fable 5 <[email protected]>
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.
Summary
Dry-run 29210928341 made it further than ever — preflight ✓, full gates ✓, isolated build ✓, and the first successful OIDC TestPyPI publish (fresh wheel+sdist with attestations) — then failed in
testpypi-smoke:App.run()parsessys.argv[1:]by default, so the smoke app's argparse saw (and correctly rejected) the version argument passed to the wrapper script itself. One-line fix:Meta.argv = []on the smoke app.Verified end-to-end locally: a fresh venv running the fixed script against real TestPyPI installs the exact
cement-3.0.15bytes published by that run and passes the import/round-trip/version assertions:Test plan
gh workflow run release.yml -R datafolklabs/cement→ green throughdry-run-summary🤖 Generated with Claude Code
Summary by CodeRabbit