Repository navigation
feat(distribution): PyPI/container packaging readiness (#953) - #1141
Conversation
Wire wheel/sdist verification into CI on every push, add tag-driven release automation that publishes to PyPI via OIDC Trusted Publishing and pushes a multi-stage OCI image to GHCR, and document the new post-tag operator checklist. - ci.yml: new `distribution` job runs verify-distribution-surface - release.yml: new workflow triggered by vX.Y.Z tag push (build-and-smoke → publish-pypi → publish-container) - Containerfile: multi-stage uv-built wheel installed into python:3.13-slim-bookworm under a non-root user with tini PID 1 - distribution-coverage.yaml: flip wheel/sdist ci_build/ci_test to true, declare oci_container artifact, close #593-tracked CI gaps, open #953-tracked container-CI and browser-extension-store gaps - docs/release.md: drop the "(once #416 lands)" caveat, document the Trusted Publisher / GHCR post-tag verification steps - CHANGELOG.md: Unreleased Added entry Ref #953 Co-Authored-By: Claude <[email protected]>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f7910f577f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Wires Polylogue's existing wheel/sdist verification into CI on every push, adds a tag-driven release workflow that publishes to PyPI via OIDC Trusted Publishing and pushes a multi-stage OCI image to GHCR, and documents the new post-tag operator checklist. Covers Phase 1 (Python/PyPI) and Phase 3 (OCI container) of #953.
Problem
Today the only supported install path is
nix developinside the repo.pyproject.tomlalready declares wheel metadata,devtools verify-distribution-surfacealready builds + smokes the wheel/sdist locally, andflake.nixexposespackages.default— but none of it is published, none of it runs in CI, anddocs/release.mdstill notes "Verify wheel and sdist build (once #416 lands the install path)." Each missing channel is a barrier to external adoption (see #953 acceptance criteria).Solution
Distribution-channel changes are kept to packaging surfaces only; no
polylogue/source is touched..github/workflows/ci.yml: newdistributionjob runsdevtools verify-distribution-surface, uploads the built wheel/sdist as a CI artifact. Closes thedistribution.wheel-ci/distribution.sdist-cigaps thatdocs/plans/distribution-coverage.yamlhad tracked under fix(distribution): gate installed artifacts and build metadata #593..github/workflows/release.yml: new workflow triggered byvX.Y.Ztag push (and aworkflow_dispatchdry-run path).buildjob re-runs the distribution gate and extracts the project version frompyproject.toml.publish-pypijob usespypa/gh-action-pypi-publishwithid-token: write(OIDC Trusted Publishing — no API token, no committed secret). Requires a one-time Trusted Publisher registration on PyPI; documented indocs/release.md.publish-containerjob buildsContainerfilewithdocker/build-push-actionand pushes toghcr.io/<owner>/polyloguewithdocker/metadata-action-derived semver tags.Containerfile: multi-stage. Builder usesghcr.io/astral-sh/uvtouv build --wheelfrom the checkout. Runtime usespython:3.13-slim-bookworm, installs the wheel under a non-root user (polylogueUID 1000), runs as PID 1 undertini, declaresVOLUME ["/data", "/config"]with XDG-aligned env defaults. Default CMD ispolylogue --help; operators override to invokepolylogued run --enable-apietc.docs/plans/distribution-coverage.yaml: flip wheel/sdistci_build/ci_testtotrue(now verifiable byverify_manifests.check_distribution_ci_claims), declare anoci_containerartifact, retire the four#593CI gaps, and file two new#953-tracked gaps (distribution.container-ci-buildfor missing pre-tag image build;distribution.browser-extension-storefor the unsubmitted extension covering feat(distribution): broad-distribution packaging (PyPI, Nix, container, cask, brew) #953 phase 4).docs/release.md: drop the#416caveat, document the Trusted Publisher prerequisite, and add post-tag smoke steps for PyPI install and GHCR pull.CHANGELOG.md: Unreleased > Added entry.Phases 2 (Nix flake —
nix runalready works), 4 (browser extension store submission), and 5 (Homebrew/AUR) are deliberately out of scope for this PR; they remain tracked on #953.Verification
devtools verify-distribution-surfaceitself runs in the new CI job — locally it requires network egress to PyPI and was not re-run in this iteration since the gate is unchanged.Follow-ups
docs/release.md).distribution.container-ci-build).distribution.browser-extension-store).Ref #953