Repository navigation
feat(ci): per-repo release tag prefix and promote-time floating tags - #1051
Merged
Merged
Conversation
Add failing tests for the per-repo tag prefix: prepare-changelog finalize gains a --tag-prefix that composes into the release heading and link URL (empty prefix byte-identical), and the scaffold release set threads a tag_prefix input from resolve-toolchain through release.yml into the release-core/release-publish children. Refs: #1044
Add an optional per-repo tag prefix declared in .vig-os and applied only at the publishing edge — the pushed tag name and changelog release link — while the version input, release/X.Y.Z branch, and freeze heading stay bare. resolve-toolchain reads DEVKIT_TAG_PREFIX and emits a tag-prefix output; release.yml threads it into release-core/release-publish, composing the prefix at the RC-discovery pattern, publish tag, tag_state check, tag create/push, and gh release create. prepare-release validates the prefixed tag, and promote-release validates the prefixed Release/tag and RC cleanup. prepare-changelog finalize gains --tag-prefix for the heading and link URL; an empty prefix reproduces today's output byte-for-byte. Refs: #1044
Add failing shape tests for the opt-in floating major/minor tags: the .vig-os key, the resolve-toolchain floating-tags output, and a promote-release move job gated on merge success and the opt-in being set. Refs: #1045
Add an optional .vig-os key (comma-separated subset of major,minor; empty = off) read via resolve-toolchain and threaded into promote-release.yml. A new floating-tags job, gated on the release being published and the PR merged, force-moves <prefix>X / <prefix>X.Y to the final release commit. It is idempotent, final-only, composes with DEVKIT_TAG_PREFIX, and pushes with the RELEASE_APP token so the moves can be made app-exclusive by a tag ruleset. Refs: #1045
Pin the fix for the dangling promote-release.yml reference: the scaffold must ship docs/DOWNSTREAM_RELEASE.md (manifest-synced from the devkit root SSoT) so the "See docs/DOWNSTREAM_RELEASE.md" pointer resolves inside consumer repos. Refs: #1046
The scaffolded promote-release.yml points at docs/DOWNSTREAM_RELEASE.md, but the scaffold never shipped it, leaving every consumer with a dangling reference to its primary release documentation. Add it as a manifest-synced managed file (root copy stays the SSoT) so the reference resolves inside consumer repos and refreshes on scaffold upgrades. Refs: #1046
This was referenced Jul 14, 2026
Closed
c-vigo
added a commit
that referenced
this pull request
Jul 14, 2026
…he scaffold lint (#1063) ## Summary Fix+lint pair, designed as one PR: the #1057 lint's rule 1 is the failing test that the #1056 fix turns green. ### #1057 — scaffold lint (`tests/test_scaffold_lint.py`) - **Rule 1 — unshipped-path references:** conservative extractors (workflow header comments matching bare `docs/<path>.md` tokens; file-relative markdown links in scaffold docs) assert every referenced target exists inside the scaffold tree. Tuned until RED flagged **exactly** the two known instances and nothing else; the allowlist is empty. A lookbehind prevents re-matching the `docs/…` substring inside rewritten absolute URLs. - **Rule 2 — non-default-ref checkout + local action** (the #1034 class): a push-triggered job pinning a static foreign ref while invoking `uses: ./…` is a violation. All current workflows (both trees) pass; the exact pre-#1034 sync-main-to-dev shape is covered as a constructed regression fixture, and the fixed shape is asserted safe. ### #1056 — fix the current instances - Scaffold `ci.yml` header: ADR reference → absolute devkit URL (root ci.yml has no such reference — independent copy, unchanged). - Root `docs/DOWNSTREAM_RELEASE.md` (SSoT): 8 internal link targets (RELEASE_CYCLE, CROSS_REPO_RELEASE_GATE, MIGRATION, the ADR) → absolute URLs; the manifest-synced scaffold copy follows. ### Surfaced while tuning (filed, not fixed here) - Broader same-class refs outside the lint's conservative scope → #1062. - `test_scaffold_doc_matches_root_sssot` already fails on the base commit (banner-unaware byte-identity, pre-existing from the #1043×#1051 interaction) → #1060; and the reason nobody noticed — CI never runs these shape-test suites → #1061. Both being fixed in a follow-up PR. ## Test evidence - `uv run pytest tests/test_scaffold_lint.py` → 32 passed (RED first: rule 1 listed exactly the two known files) - `prek run --all-files` → green (re-verified independently before push) Closes #1056 Closes #1057 Refs: #1034, #1046
c-vigo
added a commit
that referenced
this pull request
Jul 14, 2026
…in project checks (#1065) ## Summary Fixes the compounding pair found while landing #1063: a test that has been silently red on `dev`, and the CI scope gap that let it go unnoticed. ### #1060 — banner-aware identity assertion `test_scaffold_doc_matches_root_sssot` broke when #1043's banner landed on the scaffold `DOWNSTREAM_RELEASE.md` (confirmed RED on the base commit). Fix: a new public `strip_banner()` helper in `scripts/transforms.py` — the exact inverse of the `Banner` transform, reusing its own header-split and banner-block internals rather than re-encoding the banner shape — and the test compares `strip_banner(scaffold) == root`, still guarding real content drift. Test-only fix for an already-failing test, so a single commit (RED confirmed first). ### #1061 — CI runs the lightweight suites by default `Project Checks` ran only `tests/test_utils.py` + `packages/vig-utils/tests`; every shape-test file added recently never executed in CI. The `suite: all` step now runs `tests/` with an explicit `--ignore` deny-list of the 9 heavy modules (each needs nix, the built image, or podman, and each is covered by its dedicated targeted CI job — table in the action header). Deny-listing the slow-changing heavy set instead of allow-listing the fast-growing light set means **new shape-test files run in CI automatically** — demonstrated live: after merging dev, the selection swept in #1063's `test_scaffold_lint.py` with no action edit (640 → 672 tests). Commit order preserves per-commit green: the test fix lands before the scope widens onto it. ## Test evidence - Exact final CI selection, post-dev-merge: **672 passed in ~10s** (coverage 83%, gate 50%); all #1061-listed files collected; none of the 9 heavy modules collected - `prek run --all-files` → green (re-verified independently before push) Closes #1060 Closes #1061 Refs: #1036, #1043, #1051, #1063
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.
Summary
Three-issue release-tagging bundle from the commit-action release-stack audit — all touch the same release-workflow family, so they share one PR and CI run.
#1044 —
DEVKIT_TAG_PREFIXNew optional
.vig-oskey (default empty = today's bare tags, byte-identical). Threaded per the issue's plan:resolve-toolchainemitstag-prefix→release.ymlpasses it to theworkflow_callchildren → mechanical${TAG_PREFIX}${VERSION}composition at every tag-emitting call site (release-core RC discovery/publish tag/tag-state, release-publish tag create +gh release create+ outputs, prepare-release tag-exists validation, promote-release release validation + RC cleanup).prepare-changelog finalizegains--tag-prefix(link URL + displayed heading); the empty prefix reproduces today's output byte-for-byte (dedicated test + all 145 pre-existing prepare_changelog tests unchanged). Invariant held:versioninput,release/X.Y.Zbranches, and freeze headings stay bare everywhere.#1045 —
DEVKIT_FLOATING_TAGS(composes with the prefix)New optional
.vig-oskey (major,minorsubset, default off). A newfloating-tagspromote job runs only after Release publication AND the main-merge succeed (the same post-acceptance gate that moves GHCR:latest), derivesX/X.Yfrom the promoted version, composes with the prefix, and force-moves the tags idempotently — final releases only, pushed with the RELEASE_APP token so a tag ruleset can make moves app-exclusive. Documented indocs/DOWNSTREAM_RELEASE.md(floating tags are mutable by design; no Release object).#1046 — ship
docs/DOWNSTREAM_RELEASE.md(Option 1, per decision)The doc is now a managed, manifest-synced scaffold file (root copy stays the SSoT, same mechanism as
COMMIT_MESSAGE_STANDARD.md), resolving the dangling reference in scaffoldedpromote-release.yml.Follow-up candidates surfaced (not in this diff)
DOWNSTREAM_RELEASE.mdcross-links devkit-internal docs (RELEASE_CYCLE.md,CROSS_REPO_RELEASE_GATE.md,MIGRATION.md, one ADR) that consumers don't ship — same dangling-reference class as [BUG] Scaffolded promote-release.yml references docs/DOWNSTREAM_RELEASE.md, which the scaffold does not ship #1046; a follow-up could rewrite them to absolute devkit URLs.ci.yml:4referencesdocs/rfcs/ADR-conditional-container-toolchain.md, also not shipped — separate issue candidate.TDD: one failing-test → implementation pair per issue, in dependency order 1044 → 1045 → 1046.
Test evidence
prek run --all-files→ green (re-verified independently before push)Closes #1044
Closes #1045
Closes #1046