Repository navigation
feat: pluggable pre-release format, draft-first Release owner and publish seam for the release train - #1750
Merged
Conversation
Candidates are computed by the release-version CLI from a format selected
by dispatch input > .vig-os DEVKIT_PRERELEASE_FORMAT > rc{N}. The default
reproduces X.Y.Z-rcN; a format switch that would lower the ordering for
the same X.Y.Z is refused.
Refs: #1746
release-publish.yml now creates the draft against the finalize SHA and POSTs the tag ref afterwards, so tag-triggered consumer workflows always find the draft during the pre-publish assets window. A failed tag POST discards the orphan draft this run created. Refs: #1746
A preserved, default no-op workflow on release: published plus a workflow_dispatch tag retry, for irreversible outward publishes after promote. Standalone so Trusted Publishing binds to its own path; the token stays contents: read with id-token and environment opt-ins seeded as comments. Refs: #1746
…g final tag The monotonicity gate now blocks only lowering pre-release label switches. An existing final X.Y.Z tag is the forward-fix recovery state after a failed final run, so it produces a warning annotation. Refs: #1746
Pins cargo-dist citations to a commit SHA. Refs: #1746
…II digits
A counterless or same-day dated format no longer silently recomputes an
existing candidate tag; {N} may not touch a digit or {YYYYMMDD}; digit
classes are ASCII-only.
Refs: #1746
A create whose response was lost is adopted on retry instead of minting a second draft; releases are looked up in the release list since a draft has no tag ref, and cleanup deletes every draft for the tag and finalize target. Refs: #1746
11 tasks
gerchowl
added a commit
that referenced
this pull request
Sep 28, 2026
Resolves the CHANGELOG conflict by keeping both Unreleased entries: #1746's release-train seams and #1744's operator plugin. Devkit's own release.yml did not conflict -- #1750 changed the SCAFFOLD copy under assets/workspace/, so the plugin.json bump in the "Update root .vig-os" step carried over untouched. #1746's seams are merged now, so the plugin's claims about them were stale in the wrong direction. Corrected: - pack-rust's "what is still open" section becomes an audit of three shipped contracts: the pre-release format (precedence, the dotted- counter caveat because SemVer sorts rc10 below rc9, the sort-below refusal, and stray X.Y.Z-* tags now blocking candidates), the draft-first Release-owner contract with its pre-publish assets window, and the standalone publish seam on `release: published`. - The cargo-dist guidance is taken from the merged docs/DOWNSTREAM_RELEASE.md, NOT from #1746's issue body: the proposed `create-release = false` plus `github-release = "host"` recipe is documented there as wrong, because cargo-dist uploads into the draft and then publishes it itself, bypassing promote and firing no `release: published` event. The supported shape is cargo-dist as an asset builder with no `ci` key, plus a consumer-owned tag-push upload. - status no longer says DEVKIT_PRERELEASE_FORMAT is absent until #1746 lands, and no longer claims a candidate never creates a Release object (`create-release: true` makes a draft pre-release). - Only #1496's pack template layers remain open. The drift gate now resolves publish-release-extension.yml against the real scaffold file, so the seam is named rather than described in prose. Refs: #1744
16 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
Makes Rust (and Rust+Python) repos first-class on the release train without making the train Rust-aware. It adds three language-neutral seams from #1746:
X.Y.Z-alpha.1,-beta,-nightly.YYYYMMDD.Nand so on. The format resolves with precedence dispatch input >.vig-osDEVKIT_PRERELEASE_FORMAT>rc{N}. The default reproduces today'sX.Y.Z-rcNbyte for byte. A format switch that would sort below an existing pre-release of the sameX.Y.Zis refused.release-publish.ymlcreates the draft (--target <finalize_sha>) before the tag ref, so tag-triggered asset workflows always find a draft to upload into. That period is the documented "pre-publish assets window". A failed tag push discards the orphan draft, andpromote-release.ymlstays the only publisher.publish-release-extension.ymlseam. A preserved, default no-op workflow onrelease: published, plus aworkflow_dispatchtag retry, for irreversible publishes (crates.io, PyPI, registries). It is standalone so Trusted Publishing's OIDC subject binds to its own path. It is deny-by-default, with theid-token: writeandenvironment:opt-ins seeded as comments.Two corrections to the issue text (details in this comment):
create-release = false, cargo-dist uploads into the draft and then undrafts it itself underGITHUB_TOKEN. That bypasses promote, makes the Release immutable before late assets land, and never firesrelease: published. The documented recipe instead uses cargo-dist as an asset builder (hosting = ["github"], no generated CI) plus a consumer tag-push workflow that uploads into the draft.rc{N}, notrc.{N}. Onlyrc{N}meets the byte-identical acceptance criterion.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
packages/vig-utils/src/vig_utils/release_version.py(+pyproject.tomlscript, README): newrelease-versionCLI.{N},{YYYYMMDD}, SemVer charset, valid pre-release expansion).{N}in a dated format restarts per day.rc10belowrc9), while other formats compare by SemVer precedence. An existing finalX.Y.Zonly warns, which keeps the forward-fix path after a failed final open.assets/workspace/.github/workflows/release.yml: newpre-release-formatdispatch input, threaded with the documented precedence.assets/workspace/.github/workflows/release-core.yml: newpre_release_formatinput; Compute publish version now delegates torelease-versionand lists<prefix>X.Y.Zplus<prefix>X.Y.Z-*.assets/workspace/.github/actions/resolve-toolchain/action.yml,assets/workspace/.vig-os,assets/init-workspace.sh: newDEVKIT_PRERELEASE_FORMATkey, resolved into aprerelease-formatoutput and persisted across re-scaffolds.assets/workspace/.github/workflows/release-publish.yml: release notes, then the draft (--target, no--verify-tag), then the tag ref. New Discard orphan draft on tag failure step. It never deletes a published Release, and never deletes a pre-existing draft whose tag exists.assets/workspace/.github/workflows/publish-release-extension.yml: new seed.init-workspace.shadds it toPRESERVE_FILESand to thereleasefeature group.docs/DOWNSTREAM_RELEASE.md(+ scaffold mirror): new sections Pre-release format, Release owner and the pre-publish assets window, cargo-dist adopter recipe and Publish Extension Hook.docs/MIGRATION.mdanddocs/WORKFLOW_SECURITY.mdnow list the third seam.packages/vig-utils/tests/test_release_version.pytests/test_release_prerelease_format.py: executes the real compute step against a stubbedgitand the real CLI.tests/test_release_publish_draft_first.py: executes the publish steps against a statefulgh/gitfake, covering ordering, orphan cleanup and idempotent re-runs.tests/test_workflow_publish_release_extension.py: executes the resolve step for both triggers; checks that promote publishes under the App token, and the scaffold ship/preserve/opt-out behaviour.tests/test_vig_os_manifest.pyChangelog Entry
Added
contract, and a standalone publish seam
(#1746)
alpha.{N}for
v0.1.0-alpha.1({N}counter,{YYYYMMDD}date). Precedence:release.ymlinputpre-release-format>.vig-osDEVKIT_PRERELEASE_FORMAT>rc{N}, which keeps today'sX.Y.Z-rcNtagsbyte-identical. A format switch that would sort below an existing tag of
the same
X.Y.Zis refused. Computed by the newrelease-versionvig-utils CLI
release-publish.ymlnow creates the draft GitHub Release before the tagref, so tag-triggered asset workflows always find it (the "pre-publish
assets window"); a failed tag push discards the orphan draft.
promote-release.ymlstays the only place a draft is publishedpublish-release-extension.ymlonrelease: published(plus aworkflow_dispatchtag retry) forirreversible publishes such as crates.io or PyPI. It is standalone so
Trusted Publishing binds to its own path
docs/DOWNSTREAM_RELEASE.mddocuments the contract and a cargo-distrecipe: cargo-dist builds the assets and a tag-push workflow uploads them
into the train's draft, because
create-release = falsemakes cargo-distpublish the draft itself
Testing
just test): 1343 passed;test_image,test_integrationand the 17TestInstallScriptIntegrationcases need a locally builtdevcontainer:devimage and run in CI; BATS 611 okManual Testing Details
N/A for the train itself: no live release was cut. The workflow steps are covered by executing their real bash against stubs. I also ran
release-versionagainst this repo's real tags (git ls-remote origin 1.17.0 1.17.0-*). The cargo-dist behaviour was checked against its source at v0.32.0 (6886366) and HEAD.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
rc-numberwith a leading zero (e.g.01) is now rejected. It used to produce a-rc01tag that auto-discovery read back as 1.publish-release-extension.yml, the.vig-ostemplate gains an emptyDEVKIT_PRERELEASE_FORMAT=, and the draft is now created before the tag. Tags and outputs are unchanged for the default format.publish = falsedetection) and [FEATURE] promote-release: generalise candidate tag cleanup to the configured pre-release format #1749 (promote's candidate-tag cleanup still prunes only-rc*)..github/workflows/release.yml(the upstream train) is untouched. This PR changes only the consumer scaffold.Refs: #1746