Repository navigation
ci: publish in the environment release - #571
Conversation
Rename the GitHub environments of the publishing jobs to `release`: the PyPI job of release.yml (was `pypi`) and the chart publish job of release-chart.yml (was `chart-release`). PyPI trusted publishing binds the environment name; the maintainer set up the environment and the trusted publisher. Comments and docs follow. Closes #563 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR changes only the GitHub Actions environment configuration for PyPI and Helm chart publishing, making both jobs use the preconfigured File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #571 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 7068 7068
=========================================
Hits 7068 7068
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#563 ci: align the release job names · 2 of 5 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | A prepare job named “Prepare release” holds all checks, and other jobs depend on it. |
❌ Not addressed | The workflow still uses build and has no prepare job; this PR says job-name alignment moves to follow-up issues. |
| 2 | Registry-publishing jobs are named after what they release and are unique across repository workflows. | 🟡 Partly met | The image and chart job names identify what they publish, but the PyPI job remains pypi / “Publish to PyPI” rather than being named after the package it releases. |
| 3 | publish / “Publish release” creates the GitHub release. |
✅ Met | The publish job is named “Publish release” and includes the release-creation step. |
| 4 | Use release for publishing and dev-images for CI pushes. |
🟡 Partly met | The PyPI and chart publishing jobs now use release, but the image publishing jobs and CI image pushes still have no environment configured. |
| 5 | Required checks remain unaffected; the ruleset requires only CI passed. |
✅ Met | The change only renames environment references and does not alter job IDs or required-check configuration. |
Sourcery assessment
Needs a human reviewer. The publishing jobs now rely on the shared release environment for approval and deployment restrictions; if its protection rules or PyPI trusted-publishing configuration are wrong, releases could publish without the intended gate or fail to publish. Reverting the workflow would not retract package versions or artifacts already published to PyPI or GHCR.
Summary
Renames the GitHub environments of the publishing jobs to
release, as decided for the org:.github/workflows/release.yml, jobpypi(PyPI trusted publishing):pypi→release.github/workflows/release-chart.yml, jobpublish(chart-v*tags):chart-release→releaseThe maintainer set up the environment
releaseand registers the matching PyPI trusted publisher (workflowrelease.yml, environmentrelease).Comments and docs naming the environments follow: workflow header and job comments,
docs/contributing.md("Versioning and releases"),docs/helm-chart.md("Releases"; the shared environment must allow bothv*andchart-v*tags). No test names the environments.Scope: the environment rename only. The release job-name alignment, the README image rewrite for PyPI and the image jobs' environments (
dev-images,release) move to follow-up issues (milestone v0.20.0); #563 is updated accordingly.Closes #563
Lane
Light lane: changes only the environment name (a configuration value) plus comments and docs; no logic, secrets, permissions or job structure change. Reviewed the diff by hand: both
environment.namevalues are exactlyrelease, and no occurrence ofpypiorchart-releaseas an environment name is left.Verification
mkdocs build --strict: passedpytest tests/test_repository.py tests/test_release_assets.py tests/test_release_notes.py tests/test_docs_hooks.py: 151 passedactionlinton both workflows: no findingsgit diff --check),ast-grep scan,semgrep scan --config .semgrep: no findingsDeclined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Rename the publishing environments to
releasefor consistent protected release deployments.Enhancements:
releaseGitHub environment.Documentation:
releaseenvironment and its tag restrictions.