Repository navigation
Conversation
The published omi-cli 0.2.3 wheel is broken for every new user
(ModuleNotFoundError: click on 'omi --version'): its declared requirements
omit click while omi_cli.main imports it. Nothing in CI catches this class
of breakage because python-cli-ci installs '-e .[dev]' (dev extras mask a
missing runtime dep) and the publish workflow only runs twine check
(metadata only, never imports the artifact).
Adds sdks/python-cli/verify-clean-install.sh: builds-agnostically installs
the built wheel into a fresh venv and runs the console script
('omi --version', 'omi --help') with only the wheel's declared deps.
Wired into publish_omi_cli.yml (blocking, before upload/publish) and
python-cli-ci.yml (PR-time guard, after build).
Verified: helper passes 3/3 on the current wheel (omi-cli 0.3.0,
clean venv -> typer pin respected -> version + help exit 0); the 0.2.3
failure reproduced in a clean venv (ModuleNotFoundError: click).
Refs BasedHardware#13410 (proposed clean-install smoke-test bounty, maintainer
confirmation pending).
|
@amasen02 - thanks for picking this up. Heads up that the same guard is already implemented in #13416, opened from this proposal on 2026-09-10 (before this PR), and it has been through community review: the reviewer ran the helper end to end on Linux and dismissed their earlier changes-requested review once the POSIX layout bug it found was fixed. Two substantive differences worth knowing before a maintainer picks one:
Both PRs change the same three files, so only one can land. Per your offer: standing down would avoid duplicate effort, but the choice belongs to the maintainers. If they prefer your shape I will withdraw ours without complaint, and if anything in yours is better, say so and I will fold it into #13416. |
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…ate; bash shell for Windows build step - verify-clean-install.sh: the smoke test now exercises ONLY the real 'omi' console entry point (with one transient-exec retry). A broken or missing entry point after a bare pip install fails the gate instead of silently passing via a 'python -m omi_cli' fallback. - python-cli-ci.yml: the Build wheel step uses under a matrix that includes windows-latest, whose default shell is PowerShell where rm -rf is invalid - pin shell: bash so the Windows leg can pass.
|
Addressed both P1 findings from the cubic review in 56ff838: P1 - P1 - Verified after the change: |
|
Updated with commit d2829a5 — the smoke now covers every artifact the publish job uploads (sdist included, so a malformed sdist cannot reach PyPI untested) and cross-checks Verified locally on Windows before pushing: positive path (wheel + sdist of 0.3.0 both clean-install, Note: this PR started from the same proposal as #13416 and both change the same files; whichever shape the maintainers prefer, happy to withdraw or fold differences. If #13416 lands, closing this one loses only the sdist verification + version cross-check + Windows smoke coverage — trivially portable if wanted. |
…fact's own metadata Follow-up to cubic review and the promised upgrade in the PR thread: - if an sdist sits in the same dist dir, it is smoked in its own clean venv (a malformed sdist can no longer reach PyPI untested) - every artifact's printed version is cross-checked against the version in THAT artifact's metadata (wheel METADATA / sdist PKG-INFO) to rule out stale or duplicate builds - negative test: a wheel whose filename says 0.2.9 but whose code prints 0.3.0 is correctly rejected (exit 1) - verified 2/2 deterministic PASS on omi-cli 0.3.0 wheel + sdist pair
|
Correction to my comment above: I referenced a commit
Verification (deterministic, run twice):
No changes were needed to the two workflow files for this: both build via |
|
Verified this independently before a maintainer picks it up — the guard works as claimed, in both directions. Execution evidence (Docker, python:3.12-slim, no secrets):
Per-file notes:
Two things for a maintainer:
No issues found in the code itself; leaving the choice vs #13416 and the release-workflow sign-off to human maintainer review. Credit to @amasen02 for a careful implementation and transparent handling of the overlap. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Closing as a later duplicate of #13416, opened earlier for the same file class. Both PRs still change overlapping production files ( |
|
Hey @amasen02 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Closes the release-integrity gap described in #13410: the published
omi-cli0.2.3 wheel is broken for every new user (ModuleNotFoundError: No module named 'click'onomi --version), and nothing in CI can catch that class of breakage:python-cli-ci.ymlinstalls-e ".[dev]"— the dev extras mask a missing runtime dependency.publish_omi_cli.ymlrunstwine check— metadata only, never imports the artifact it is about to publish.What this PR adds
sdks/python-cli/verify-clean-install.sh— a build-agnostic helper that installs the built wheel into a fresh virtual environment and runs the console script (omi --version,omi --help) with only the wheel's declared dependencies. Exit 0 = the artifact users actually get works; exit 1 = it does not.publish_omi_cli.yml— runs the helper aftertwine check, before upload/publish. A broken dependency declaration can no longer reach PyPI.python-cli-ci.yml— builds the wheel and runs the same check on every PR touchingsdks/python-cli, so contributors see the failure at PR time instead of at release time.No CLI behavior changes.
Verification performed
omi_cli-0.3.0-py3-none-any.whl): clean venv → deps resolve from wheel metadata →omi --versionprintsomi-cli 0.3.0→omi --helpexits 0.pip install omi-cli==0.2.3 && omi --version→ModuleNotFoundError: No module named 'click'(exit 1) — exactly what this guard blocks at the publish step.bash -npasses; both workflow files parse as valid YAML.Refs #13410 (proposed $25 bounty — proposer confirmation of scope/reward pending, happy to stand down if they want to land their own branch; my branch is
ci/omi-cli-install-smoke-equivalent work and I'll close this PR on request).