Repository navigation
chore: release 0.3.6 - #595
Merged
Merged
Conversation
Signed-off-by: Carlos Vigo <[email protected]>
Automated sync of `main` to `dev` found **merge conflicts** that require manual resolution. ### How to resolve ```bash git fetch origin chore/sync-main-to-dev-7-1:chore/sync-main-to-dev-7-1 git checkout chore/sync-main-to-dev-7-1 git merge origin/dev # resolve conflicts git commit -S git push origin chore/sync-main-to-dev-7-1 ``` Once pushed, this PR will update and become mergeable.
## Description Fixes recurring silent failure of the `promote-release.yml` GHCR RC cleanup job. RC image tags (`X.Y.Z-rc*`) were never deleted because `RELEASE_APP` lacked package-admin permission (GitHub returns misleading HTTP 404). The job also used a blanket `sha256-*` rule that would delete live release cosign signatures once permissions were fixed. This PR switches GHCR deletes to `GITHUB_TOKEN` (with repo Admin on the package), adds digest-aware RC/signature selection via a bats-tested script, and makes the cleanup step fail loudly when RC tags remain. ## Type of Change - [ ] `feat` -- New feature - [x] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [x] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - **`.github/scripts/select-ghcr-prune-targets.sh`** — jq-driven selection of RC image versions and matching RC cosign signatures; preserves published release signatures - **`.github/workflows/promote-release.yml`** — GHCR prune step uses `GITHUB_TOKEN`, calls selection script, idempotent delete with post-pass verification (fails step on leftovers) - **`tests/bats/select-ghcr-prune-targets.bats`** + **`tests/bats/fixtures/ghcr-versions.json`** — bats coverage for selection logic - **`docs/RELEASE_CYCLE.md`**, **`docs/DOWNSTREAM_RELEASE.md`** — document `GITHUB_TOKEN` + package Admin grant requirement ## Changelog Entry ```markdown ### Fixed - **GHCR RC artifacts never pruned after promote-release** ([#583](#583)) - Switch GHCR package-version deletes to `GITHUB_TOKEN` with repo Admin on the `devcontainer` package (one-time Manage Actions access grant) - Replace blanket `sha256-*` deletion with digest-aware selection that prunes RC images and matching RC cosign signatures only - Fail the cleanup step loudly when deletes fail or RC tags remain (job still uses `continue-on-error`) ``` ## Testing - [ ] Tests pass locally (`just test`) - [x] Manual testing performed (describe below) ### Manual Testing Details - `npx bats tests/bats/select-ghcr-prune-targets.bats` — 4/4 green - Package Admin grant applied manually on `ghcr.io/vig-os/devcontainer` (Manage Actions access → `vig-os/devcontainer` → Admin) - Existing RC image tags (`0.3.5-rc1*`, `0.3.4-rc1*`) manually pruned from GHCR ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Additional Notes One-time manual prerequisite (already done): Package settings → Actions access → add `vig-os/devcontainer` with role **Admin** on the `devcontainer` GHCR package. Without this grant, cleanup will fail visibly (red job) on the next promote. Refs: #583
Replace deprecated app-id input with client-id across root, workspace template, and smoke-test workflows. Update canonical secret docs and changelog. sync-issues-action retains app-id (different action). Refs: #576
## Description Migrate every `actions/create-github-app-token` usage from the deprecated `app-id` input to `client-id`, removing the deprecation warning from workflow runs. Root workflows, workspace template copies, and the smoke-test asset are updated in sync. Canonical secret documentation is updated to reference the new `*_CLIENT_ID` org secrets. `vig-os/sync-issues-action` in `sync-issues.yml` is unchanged — it uses a different action with its own `app-id` input and still requires `COMMIT_APP_ID`. **Prerequisite before merge:** org-level `COMMIT_APP_CLIENT_ID` and `RELEASE_APP_CLIENT_ID` secrets must be provisioned (GitHub App Client ID, not numeric App ID). ## Type of Change - [ ] `feat` -- New feature - [ ] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [ ] `chore` -- Maintenance task (deps, config, etc.) - [ ] `refactor` -- Code restructuring (no behavior change) - [ ] `test` -- Adding or updating tests - [x] `ci` -- CI/CD pipeline changes - [ ] `build` -- Build system or dependency changes - [ ] `revert` -- Reverts a previous commit - [ ] `style` -- Code style (formatting, whitespace) ### Modifiers - [ ] Breaking change (`!`) -- This change breaks backward compatibility ## Changes Made - **Root workflows** (`.github/workflows/`) - `prepare-release.yml`, `promote-release.yml`, `release.yml`, `sync-main-to-dev.yml`, `renovate-changelog-commit.yml` — `app-id` → `client-id` - `sync-issues.yml` — token generation step only (line 84); `sync-issues-action` step unchanged - **Workspace template workflows** (`assets/workspace/.github/workflows/`) - Same migrations plus `release-core.yml` and `release-publish.yml` - **Smoke-test asset** (`assets/smoke-test/.github/workflows/repository-dispatch.yml`) — 9 usages migrated - **Documentation** - `docs/RELEASE_CYCLE.md` — App secrets table updated to `*_CLIENT_ID` - `docs/DOWNSTREAM_RELEASE.md` — required secrets list updated; `COMMIT_APP_ID` retained for sync-issues-action - **Changelog** — `CHANGELOG.md` and synced `assets/workspace/.devcontainer/CHANGELOG.md` ## Changelog Entry ### Changed - **Migrate `actions/create-github-app-token` to `client-id`** ([#576](#576)) - Replace deprecated `app-id` input with `client-id` across root, workspace template, and smoke-test workflows - Requires org-level `COMMIT_APP_CLIENT_ID` and `RELEASE_APP_CLIENT_ID` secrets (GitHub App Client ID, not numeric App ID) ## Testing - [ ] Tests pass locally (`just test`) - [ ] Manual testing performed (describe below) ### Manual Testing Details N/A — workflow input rename only. Post-merge verification: confirm a workflow run (e.g. Prepare Release) no longer emits the `app-id` deprecation warning. Requires `*_CLIENT_ID` org secrets to be provisioned before merge. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Additional Notes Org secrets must be provisioned before merging: ```bash gh secret set RELEASE_APP_CLIENT_ID --org vig-os --visibility all gh secret set COMMIT_APP_CLIENT_ID --org vig-os --visibility all ``` Use each GitHub App's **Client ID** (`Iv23...`) from Org `vig-os` → Settings → Developer settings → GitHub Apps. Refs: #576
The install/upgrade flow referenced https://vig-os.github.io/devcontainer/install.sh, which 404s because GitHub Pages was never enabled for this repo, and piped it to sh despite install.sh having a #!/bin/bash shebang and using bashisms. Replace every reference with the canonical raw.githubusercontent.com/vig-os/ devcontainer/main/install.sh URL piped to bash, matching the single source of truth already used in README.md. This fixes the real `just devcontainer-upgrade` host command plus the error hints, the version-check upgrade nag, the smoke-test install docs, and install.sh usage/--help output. The unrelated get.docker.com installer pipe is left untouched. Refs: #591
## Summary Consolidates four Renovate update branches that were stuck due to changelog-churn loops (empty `docs(changelog): add unreleased entry…` commits) and a `requires-python` patch bump the toolchain couldn't resolve. Each update is squash-merged into one clean commit: - **#586** — `python:3.14-slim-bookworm` base image digest → `7e2f304…` (verified multi-arch index, keeps arm64 working per #578) - **#587** — `taiki-e/install-action` digest → `bafb217` - **#588** — GitHub Actions minor/patch (incl. `astral-sh/setup-uv` `0.11.19` → `0.11.21`) - **#589** — Python deps: `requires-python` `==3.14.6`, `pytest` 9.1.0, `ruff` 0.15.17, `github-backup` 0.63.0 (lockfile refreshed) A single consolidated CHANGELOG entry replaces the per-PR churn (the loop had left #586/#588/#589 with no entry at all). ## Why they were stuck Renovate bumped `requires-python` to `==3.14.6`, which the pinned `uv 0.11.19` could not download — blocking `uv sync` / pre-commit. The companion #588 bump (`setup-uv` → 0.11.21) fixes this in CI; merging the group together unblocks it. Verified locally by updating `uv` to 0.11.21 and installing the 3.14.6 interpreter. ## Testing (caches cleared) - ✅ 548 unit tests pass (utils, install-script, transforms, vig-utils) - ✅ `uv lock --check` consistent with new `pyproject.toml` - ✅ New base digest confirmed as a valid multi-arch index manifest -⚠️ `worktree.bats` failures are pre-existing and environment-only (tmux/cursor-agent), identical on clean `dev` -⚠️ `test-renovate` not run locally — host Node v18 < required v20 (CI runs Node 24; configs untouched) Closes #586, closes #587, closes #588, closes #589
#592) ## Summary Fixes #591. The install/upgrade flow pointed users at `https://vig-os.github.io/devcontainer/install.sh`, which **404s** because GitHub Pages was never enabled for this repo, and piped it to `sh` despite `install.sh` having a `#!/bin/bash` shebang and using bashisms. All references now use the canonical form already in `README.md` (single source of truth): ``` curl -sSf https://raw.githubusercontent.com/vig-os/devcontainer/main/install.sh | bash -s -- --force ./ ``` Two defects addressed: 1. **Wrong host** — `vig-os.github.io` (Pages, never enabled) → `raw.githubusercontent.com/vig-os/devcontainer/main`. 2. **Wrong shell** — `| sh` → `| bash`. ## Changes - `assets/workspace/.devcontainer/justfile.devc` — the real `just devcontainer-upgrade` host command + the in-container error hint - `assets/workspace/.devcontainer/scripts/version-check.sh` — upgrade-available nag message - `assets/smoke-test/README.md` — smoke-test install instructions - `install.sh` — usage/help comments and `--help` output (host on the `-o install.sh` download line, `sh`→`bash` on all installer pipes) - `CHANGELOG.md` — Unreleased / Fixed entry (synced to the workspace asset by the manifest hook) The unrelated `get.docker.com | sh` and `astral.sh/uv/install.sh | sh` installer pipes are left untouched. ## Verification - New URL returns **HTTP 200**: `curl -sSf https://raw.githubusercontent.com/vig-os/devcontainer/main/install.sh` - `bash -n` syntax check passes on `install.sh` and `version-check.sh` - `pre-commit run --all-files` (shellcheck, pymarkdown, sync-manifest, agent-identity) passes - `pytest`: 714 passed, 29 skipped. The single `test_manifest_files` failure was a stale **local** container image baking the pre-edit CHANGELOG; source and synced asset hash identically, so CI's image rebuild resolves it. Refs: #591
sync-main-to-dev could silently drop dev's fresh ## Unreleased: the sync branch is cut from main (which had no Unreleased, since prepare-release stripped it from the release branch) and merged into dev (which has it), so the 3-way merge resolved cleanly in main's favour and deleted the scaffold with no conflict. Stop stripping ## Unreleased from the release branch. main now keeps an empty ## Unreleased above the dated release, matching dev, so the section is stable common context in the freeze commit that becomes the main/dev merge base. Finalization only edits the [X.Y.Z] line, so the sync merge preserves ## Unreleased cleanly. Apply to the workspace template too so adopters inherit the fix. Refs: #590
#594) ## Summary Fixes #590. `sync-main-to-dev` could **silently drop** `dev`'s fresh `## Unreleased` scaffold: the sync branch is cut from `main` (which had no `## Unreleased`, because `prepare-release` stripped it from the release branch) and merged into `dev` (which has it). The 3-way merge then resolves *cleanly* in `main`'s favour and deletes the scaffold — no conflict, green auto-merge, invisible loss until the next structure PR has nowhere to add an entry (observed every release in `part-registry`). ## Fix Stop stripping `## Unreleased` from the release branch. `main` now keeps an empty `## Unreleased` above the dated release, **matching `dev`**, so the section is stable common context in the freeze commit that becomes the `main`↔`dev` merge base. Finalization only edits the `## [X.Y.Z]` line, so the sync merge preserves `## Unreleased` cleanly. [Keep a Changelog](https://keepachangelog.com/) endorses an always-present `Unreleased` section. This is the minimal change — just remove the strip step — applied to **both** the canonical workflow and the workspace template so adopters (e.g. `part-registry`) inherit it. ### Why not re-add Unreleased on `dev` after the fork? An earlier approach froze without `Unreleased` and re-added it to `dev` post-fork, keeping `main` free of `Unreleased`. Empirically that made the `main→dev` sync **conflict every release** (finalize edits the `[X.Y.Z]` line adjacent to the re-inserted scaffold) — i.e. the same manual chore #590 complains about. Keeping the section on both sides is the only way to get a *clean* conflict-free merge. ## Changes - `.github/workflows/prepare-release.yml` + `assets/workspace/.github/workflows/prepare-release.yml`: drop the "Strip empty Unreleased section" step (and its release-branch commit); refresh the flow header/summary comments. - `.github/workflows/sync-main-to-dev.yml` + workspace copy: refresh the stale comment to document the new invariant. - `CHANGELOG.md` (+ mirrored workspace copy): `Fixed` entry. ## Verification Simulated the full freeze → fork → finalize → `main→dev` sync cycle with the real `prepare-changelog` tooling, across **two consecutive releases**, with and without ongoing `dev` work: ``` cycle 0.2.0: sync merge rc=0 clean -> ## Unreleased PRESERVED cycle 0.3.0: sync merge rc=0 clean -> ## Unreleased PRESERVED ``` The pre-fix flow reproduces the silent drop (`clean -> DROPPED`) for contrast. `just test-pytest` for `vig-utils` (481 passed) and `yamllint` on all four workflows are green.
Move Unreleased content to [0.3.6] - TBD and create fresh empty Unreleased section for continued development.
c-vigo
marked this pull request as ready for review
June 18, 2026 11:11
c-vigo
approved these changes
Jun 18, 2026
The smoke-test repo is a fixture with no hand-authored changelog entries,
so each release freeze reset ## Unreleased to empty and the downstream
prepare-release gate rejected it ("Unreleased section has no entries").
The deploy step in repository-dispatch.yml now seeds a deploy entry into
## Unreleased when it is empty, so the smoke-test release pipeline can
always proceed. Existing entries are left untouched (idempotent guard).
Refs: #597
## Summary Fixes #597 in the `0.3.6` release. The `0.3.6-rc1` candidate built and published fine, but the downstream smoke-test failed at `prepare-release` (`Unreleased section has no entries`). The smoke-test fixture has no hand-authored changelog entries, so each release freeze resets `## Unreleased` to empty and the gate can never pass on a no-op deploy. This adds a **"Seed CHANGELOG Unreleased entry"** step to the deploy job in the smoke-test source template (`assets/smoke-test/.github/workflows/repository-dispatch.yml`): when `## Unreleased` is empty it seeds a deploy bullet under `### Changed`; existing entries are left untouched (idempotent guard). **Targeted at `release/0.3.6`** so the fix ships with 0.3.6 and the candidate can be re-cut/re-validated. The consumer-side mirror of this fix (the smoke-test repo's own deployed copy) is tracked in vig-os/devkit-smoke-test#157 / PR #158. ## Why not a template/root parity change too? The investigation in #597 initially suspected the workspace template's inline-awk Unreleased check had diverged from the root's `prepare-changelog validate`. It hasn't meaningfully: the template's `validate` job runs on a bare `ubuntu-24.04` (no devcontainer image, so `prepare-changelog` is unavailable), and the inline awk is functionally equivalent. The real bug is the empty-Unreleased fixture, which this PR fixes. ## Changes - `assets/smoke-test/.github/workflows/repository-dispatch.yml`: seed Unreleased entry before opening the deploy PR - `CHANGELOG.md` (+ mirror): Fixed entry under `## [0.3.6]` ## Verification Seeding awk validated against an empty-Unreleased fixture: seeds correctly, leaves dated sections untouched, and the result passes the prepare-release gate. End-to-end requires the consumer PR (#158) to reach the smoke-test repo's `main`, since `repository_dispatch` runs from the default branch. Refs: #597
Set release date to 2026-06-19 and regenerate release docs. Refs: #595
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.
Release 0.3.6 - 2026-06-19
This PR prepares release 0.3.6 for merge to main.
0.3.6 - 2026-06-19
Changed
actions/create-github-app-tokentoclient-id(#576)app-idinput withclient-idacross root, workspace template, and smoke-test workflowsCOMMIT_APP_CLIENT_IDandRELEASE_APP_CLIENT_IDsecrets (GitHub App Client ID, not numeric App ID)python:3.14-slim-bookwormbase image to multi-arch index digestsha256:7e2f304…taiki-e/install-actiondigest tobafb217,astral-sh/setup-uvto0.11.21, and other GitHub Actions minor/patch versionsrequires-pythonto==3.14.6and Python deps:pytest9.1.0,ruff0.15.17,github-backup0.63.0 (lockfile refreshed)Fixed
Smoke-test
prepare-releasefailed on empty Unreleased section (#597)## Unreleasedempty and the downstreamprepare-releasegate rejected it ("Unreleased section has no entries")repository-dispatch.ymlnow seeds a deploy entry into## Unreleasedwhen it is empty, so the smoke-test release pipeline can always proceedsync-main-to-devcould silently drop the fresh## Unreleasedscaffold (#590)prepare-releaseno longer strips## Unreleasedfrom the release branch, somainkeeps an empty## Unreleasedabove the dated release (matchingdev)main↔devmerge base, so the sync merge preserves it cleanly instead of resolving inmain's favour and dropping itpart-registry) inherit the fixdevcontainer-upgrade/ install URL 404s (#591)vig-os.github.io/devcontainer/install.shPages URL with the canonicalraw.githubusercontent.com/vig-os/devcontainer/main/install.shalready used inREADME.mdbashinstead ofsh(the script has a#!/bin/bashshebang and uses bashisms), matching the canonical formjust devcontainer-upgradehost command plus error hints, the version-check upgrade nag, smoke-test install docs, andinstall.shusage/--helpoutputGHCR RC artifacts never pruned after promote-release (#583)
GITHUB_TOKENwith repo Admin on thedevcontainerpackage (one-time Manage Actions access grant)sha256-*deletion with digest-aware selection that prunes RC images and matching RC cosign signatures onlycontinue-on-error)