Repository navigation
feat: port the hotfix release lane to the workspace scaffold - #1632
Merged
c-vigo merged 7 commits intoSep 14, 2026
Merged
Conversation
Closed
5 tasks
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.
Description
Phase 2 of #1621: ports the hotfix release lane (#1623) to the workspace scaffold so gitflow consumers get
prepare-hotfix.ymlandjust prepare-hotfix X.Y.Zbefore they need it —workflow_dispatchonly works once the file is on the consumer's default branch, so the lane cannot be adopted and used in the same emergency.The scaffold copy is written in the scaffold dialect: every job runs on the mode-aware devkit toolchain (
resolve-toolchain+setup-devkit-toolchain, nouv run), the latest-tag lookup and the collision check honourDEVKIT_TAG_PREFIX, every checkout setspersist-credentials: false, andprepare-release-extension.ymlstays the only project-specific seam. The lane is gitflow-only: copy-excluded underDEVKIT_WORKFLOW=trunkand pruned on a gitflow → trunk upgrade, the same mechanism assync-main-to-dev.yml— the two now share oneTRUNK_EXCLUDED_WORKFLOWSlist ininit-workspace.shinstead of a sixth special case.The scaffold
release-core.ymlvalidate job switched from grepping for the bare## [X.Y.Z] - TBDheading toprepare-changelog validate --version, so a seeded-but-unfilled hotfix section cannot ship downstream (the--versionflag ships in the same devkit release, so the toolchain contract holds).Stacked on #1631 (#1626), which is stacked on #1630 (#1627): all three rewrite the same hotfix runbook paragraphs and workflow validate jobs. Once #1631 merges, this branch gets rebased onto
devso the diff shrinks to the commits listed below.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
assets/workspace/.github/workflows/prepare-hotfix.yml(new) — the scaffold lane:resolve-toolchain→validate(patch increment of the latestmaintag, single-train refusal, empty-Unreleased refusal viaprepare-changelog) →prepare(cut frommain, seed the## [X.Y.Z] - TBDsection) →extensionhook →open-pr(draft, targetsmain) →rollback(deletes only the release branch).dry_rungates every job butvalidate.zizmor.yml(root + scaffold) — baseline the managed basename forgithub-app,secrets-inheritandunpinned-images;artipackednot needed.assets/workspace/.github/renovate-default.json— the new managed basename joins the trailingenabled: falserule (drift gatetest_renovate_preset_managed_exclusion).assets/init-workspace.sh—TRUNK_EXCLUDED_WORKFLOWSlist +trunk_excluded()replacing the fivesync-main-to-dev.ymlspecial cases (preview classifier, upgrade deletions, rsync exclude, post-copy prune, preserved-class carve-out); the hotfix lane joins thereleasefeature group; theprepare-hotfixrecipe is stripped fromjustfile.ghunder trunk only.scripts/manifest.toml— drop theRemoveBlockthat strippedjust prepare-hotfixfrom the scaffoldedjustfile.gh;assets/workspace/.devcontainer/justfile.ghregenerated.assets/workspace/.github/workflows/release-core.yml— Verify CHANGELOG has TBD entry now runsprepare-changelog validate --version "$VERSION".tests/test_workflow_prepare_hotfix.pyparametrised over both copies plus scaffold-only pins (toolchain, tag-prefix awareness,release-core.ymlcontent gate, recipe present);tests/test_workflow_model.pypins gitflow-has / trunk-lacks and the upgrade prune;tests/test_workflow_zizmor_baseline.pycovers the baseline entries;tests/test_workflow_prepare_extension.pyadds the scaffold lane to the callers.docs/DOWNSTREAM_RELEASE.md(+ mirror) hotfix-lane runbook and trunk carve-out,docs/MIGRATION.mdworkflow lists andreleasegroup,docs/RELEASE_CYCLE.mdconsumer-scaffold paragraph;CHANGELOG.md(+ mirror), including dropping the "devkit-only for now" note from the feat: add the hotfix release lane cut from main #1623 entry.Changelog Entry
Added
(#1625)
assets/workspace/.github/workflows/prepare-hotfix.yml(Phase 2 of#1621): the same lane in the scaffold dialect — every job runs
on the mode-aware devkit toolchain (
resolve-toolchain+setup-devkit-toolchain, nouv run), the latest-tag lookup and thecollision check honour
DEVKIT_TAG_PREFIX, and every checkout drops itsgit credential.
just prepare-hotfix X.Y.Znow reaches consumers tooDEVKIT_WORKFLOW=trunkand pruned on agitflow → trunk upgrade exactly like
sync-main-to-dev.yml(the two nowshare one
TRUNK_EXCLUDED_WORKFLOWSlist ininit-workspace.sh), withthe recipe dropped from the trunk
justfile.gh; part of thereleasefeature group
release-core.ymlnow gates onprepare-changelog validate --version(content, not just the## [X.Y.Z] - TBDheading), so aseeded-but-unfilled hotfix section cannot ship downstream
zizmor.ymlbaselines the managed basename forgithub-app,secrets-inheritandunpinned-imagesonly; consumer runbook indocs/DOWNSTREAM_RELEASE.md(Hotfix lane)Testing
just test)Manual Testing Details
uv run pytest tests/test_workflow_prepare_hotfix.py tests/test_workflow_model.py tests/test_workflow_zizmor_baseline.py tests/test_workflow_prepare_extension.py tests/test_promote_release.py tests/test_promote_latest_guard.py: 148 passed. The new cases were RED before the scaffold file landed (commit 564ebad).test_image.py/test_integration.py/test_install_script.py(no localghcr.io/vig-os/devcontainer:devimage, environmental) and 4packages/vig-utilsCLI e2e cases that fail only under the Nix devshell'sPYTHONPATH(store build shadows the venv; 143 passed withPYTHONPATHunset). The one real red,test_renovate_preset_managed_exclusion, caught the new lane missing from the preset's disabled list — fixed in commit 32cbfa1.just precommit(prek run --all-files): green.assets/workspace/.github/workflows/with the shipped baseline: the only unsuppressed findings areself-repository(an audit newer than the CI-pinned 1.25.2) and they hit every existing managed workflow identically, so the new lane adds nothing against the baseline. CI's pinned run is the authority.devkit-smoke-test(prepare → fix PR → candidate → abandon) is post-merge: it needs a devkit release to ship the asset anddevkit-upgradeto adopt it. Tracked on [FEATURE] Port the hotfix release lane to the workspace scaffold (copy-exclude under trunk) #1625.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Acceptance criteria not closable in this PR: the smoke-test rehearsal (see Testing).
Refs: #1625