Repository navigation
ci: downstream promote-release, GHCR cleanup, and RC prune - #472
Conversation
There was a problem hiding this comment.
Pull request overview
Implements issue #463 by extending the release pipeline with a downstream promote-release.yml template, optional draft pre-release creation for candidate runs, and automated/manual RC artifact pruning. This fits into the repo’s split publish/promote release architecture (publish produces artifacts + draft release; promote publishes/merges and performs cleanup).
Changes:
- Add downstream workspace
promote-release.ymlworkflow and wire candidatecreate-releaseoption through dispatch andjust publish-candidate. - Add RC cleanup capabilities: upstream promote cleanup job + new one-time manual
scripts/prune-ghcr-tags.sh. - Update tests and docs/changelogs to reflect the new promote flow and removal of the old downstream RC gate from upstream
release.yml.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
tests/test_integration.py |
Updates template assertions for new/removed release-helper behaviors and create-release forwarding. |
tests/bats/just.bats |
Adjusts recipe signature checks and adds coverage for downstream promote-release.yml template wiring. |
scripts/prune-ghcr-tags.sh |
Adds a manual, dry-run-by-default GHCR/git RC prune utility. |
scripts/manifest.toml |
Updates workspace sync transforms for downstream-friendly release helper text/behavior and removes pull block. |
justfile.gh |
Extends publish-candidate recipe to forward create-release. |
docs/RELEASE_CYCLE.md |
Documents promote-time gating/cleanup and token/permissions model changes. |
docs/DOWNSTREAM_RELEASE.md |
Documents downstream promote workflow and candidate create-release option. |
docs/CROSS_REPO_RELEASE_GATE.md |
Updates gate enforcement documentation to reflect promote-time validation ownership. |
assets/workspace/CHANGELOG.md |
Adds workspace template changelog entries for downstream promote workflow. |
assets/workspace/.github/workflows/release.yml |
Adds create-release input and passes it to publish workflow. |
assets/workspace/.github/workflows/release-publish.yml |
Adds create_release input and conditionally creates draft pre-release for candidates. |
assets/workspace/.github/workflows/promote-release.yml |
Introduces downstream promote workflow (validate → publish release → merge → best-effort RC git tag cleanup). |
assets/workspace/.devcontainer/justfile.gh |
Updates downstream-shipped release helper recipes (incl. create-release forwarding; removes pull). |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors root changelog updates into the workspace devcontainer template copy. |
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Passes create-release=true when orchestrating downstream candidate runs. |
README.md |
Updates documented publish-candidate recipe signature to include create-release. |
CONTRIBUTE.md |
Updates documented publish-candidate recipe signature to include create-release. |
CHANGELOG.md |
Adds unreleased entries for downstream promote template, candidate draft pre-release option, and prune script. |
.github/workflows/release.yml |
Removes dead downstream RC gate steps from upstream release validate job. |
.github/workflows/promote-release.yml |
Adds upstream promote cleanup job for GHCR RC + sha256-orphan package versions and RC git tags. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… draft release API claim Refs: #463
Description
Implements issue #463: downstream
promote-release.ymlworkspace template paired with rootpromote-release, optionalcreate-releasefor candidate runs (wired through smoke-test dispatch andjust publish-candidate), best-effort GHCR and git RC cleanup in rootpromote-release.ymlafter merge, documentation updates (RELEASE_CYCLE,DOWNSTREAM_RELEASE,CROSS_REPO_RELEASE_GATE), and removal of the dead downstream RC gate from upstreamrelease.yml(final verification lives inpromote-release). Adds BATS/integration coverage for promote-release andcreate-release.Stale RC and
sha256-*-only package versions are pruned only via the promote workflow (org Packages API); there is no checked-in manual prune script.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/promote-release.yml— cleanup job: GHCR RC +sha256-*-only orphans (paginated listing merged withjq -s 'add // []'), remote git RC tags without a GitHub Release; continues on error..github/workflows/release.yml— trim validate job; remove dead downstream RC gate steps.assets/workspace/.github/workflows/promote-release.yml— new downstream template (validate, publish, merge, best-effort git RC cleanup).assets/workspace/.github/workflows/release.yml/release-publish.yml—create-releaseinput and conditional draft pre-release for candidates.assets/smoke-test/.github/workflows/repository-dispatch.yml— passcreate-release=truefor downstream candidate dispatch.justfile.gh,assets/workspace/.devcontainer/justfile.gh— forwardcreate-release; GitHub recipe import pattern.scripts/manifest.toml— manifest updates for workspace assets where applicable.CHANGELOG.md(synced toassets/workspace/.devcontainer/CHANGELOG.md) — Unreleased entries ([CHORE] Prune stale RC and sha256 tags from GHCR #463 and related unreleased items).docs/RELEASE_CYCLE.md,docs/DOWNSTREAM_RELEASE.md,docs/CROSS_REPO_RELEASE_GATE.md— release flow and permissions.README.md,CONTRIBUTE.md— minor doc sync.tests/bats/just.bats,tests/test_integration.py— promote-release /create-releaseassertions.Changelog Entry
Testing
just test)Manual Testing Details
N/A (CI and release behavior validated via automated tests; no manual workflow runs in this session).
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #463