Appearance
0084. Releases are cut by release-please, and production pins a version ​
Status: Accepted (2026-11-27). The owner decided on 2026-11-27: "Cheat how I'm doing here to have automatic commits collections for building versions ... so that we have a similar flow for all of them. In prod we'll deploy only fixed versions like that". The flow is vaam-apps/vpay's; decisions 2, 4 and 5 are this ADR's choices for the owner to confirm.
Context ​
adam-rs had no release. Every commit of main that passes coder.yml pushes ghcr.io/vymalo/another-adam-rs/coder:sha-<7> and commits chore(deploy): bump coder to sha-<7> to deploy/coder/values.yaml. A deployment that renders the chart from main moves whenever that commit lands; one that pins picks a sha-<7> and reads the history to learn what changed. The crates said 0.1.0, the chart 0.5.0 with appVersion 0.1.0, and nothing moved either. Nothing checked that a commit's subject was a Conventional Commit.
vaam-apps/vpay releases with release-please (verified 2026-11-27 from its master: release-please-config.json, .release-please-manifest.json, .github/workflows/release-please.yml, .github/workflows/release.yml; its pull request 417 is a release pull request, chore: release master, 0.19.0): release-type: simple, include-v-in-tag, bump-minor-pre-major, every version line marked x-release-please-version and listed in extra-files, a GitHub App token so the tag release-please creates starts the release workflow, and on a v* tag images tagged X.Y.Z and X.Y, never latest, with buildx provenance (mode=max) and an SBOM, signed with cosign keyless, and the chart pushed to GHCR as OCI and signed.
Decision ​
- release-please, as vpay runs it.
release-please.ymlon every push tomainopens or updates one release pull request (chore: release main) with the changelog of the Conventional Commits since the last release and every marked version moved. Merging it tagsvX.Y.Zand makes the GitHub release. The configuration is vpay's:release-type: simple,include-v-in-tag: true,include-component-in-tag: false,bump-minor-pre-major: true,bump-patch-for-minor-pre-major: false, and vpay's changelog sections. The token is a GitHub App's, minted byactions/create-github-app-tokenfrom the secretsRELEASE_PLEASE_APP_CLIENT_IDandRELEASE_PLEASE_APP_PRIVATE_KEY(vpay's names), withcontents: writeandpull-requests: writeonly. There is no fallback toGITHUB_TOKEN: a tag it creates starts no workflow, so a release would publish nothing, silently. - One version for the repository, seeded at 0.5.0. The workspace's
version, every path dependency'sversion(a 0.x caret range does not cross a minor, so one left behind stops the workspace resolving) and the chart'sversionandappVersionare marked and move together. The manifest starts at0.5.0, the chart's version when this landed, so the chart's version never goes down; the crates andappVersionjoin it at the first release, which is0.5.1(fixes and chores only) or0.6.0(a feature).bootstrap-shaismainat adoption (ce99d98), so the first changelog starts there. ARelease-As: X.Y.Zfooter picks another number. - What cannot be marked moves on the release branch. After release-please, the same job runs
cargo metadataon everyCargo.lockand renders the chart's four goldens again: every object carrieshelm.sh/chart: coder-<version>andapp.kubernetes.io/version, and the checksums of the ConfigMaps a pod reads follow them. The release pull request's own CI (render-check.sh, the Rust jobs with--locked) proves both. A pull request that adds an unmarked path dependency, or a marked file that is not listed, failsci.yml. - On a
v*tag, the image is built again, not retagged.coder.ymlkeeps pushing the image it smoke-tested, from the runner's Docker, withdocker push: that carries no provenance and no SBOM, and buildx makes them only when it builds and pushes the image itself. Sorelease.yml(a) waits untilcoder.yml's image job has passed on the tag's commit (the smoke tests and every compose scenario), (b) builds that commit with the same build arguments and main's cache, withprovenance: mode=maxandsbom: true, and pushes it by digest with no tag, (c) runs the container smoke tests on that digest, (d) signs it with cosign keyless, and only then (e) names itX.Y.ZandX.Y. A release tag only ever names a signed, smoke-tested digest; it is not the digest ofsha-<7>. A publishedX.Y.Zis never moved;X.Yfollows the newest patch. Nolatest. - The chart is
oci://ghcr.io/vymalo/another-adam-rs/charts/coder. Beside the image, under the repository's own namespace, and undercharts/so the chart and the image (.../coder) are not two artifacts of one name. The packaged chart isdeploy/coderat the tag withimage.tagset toX.Y.Zin the copy that is packaged;values.yamlonmainkeepscoder.yml'ssha-<7>. A version already published and signed stops the release; published and unsigned (a run that died between push and sign) is signed and not pushed again. sha-<7>stays for development.coder.yml, its image, its tag and its bump ofvalues.yamldo not change.- Production pins
X.Y.Z@sha256:<digest>, the image by tag and digest (image.tagaccepts the pair), the chart by version. A consumer that followsmaincan keep asha-<7>. - Every subject is a Conventional Commit.
tools/commit-lint.shis the rule, from vymalo/another-agentic-system, with the types of the changelog (depsincluded) and a comma between two scopes; CI checks the pull request's title (a squash merge makes it the commit) and every commit, and.githooks/commit-msgchecks locally. - Pinned actions. Every action the new workflows use is pinned by its full commit sha, with its version in a comment.
Consequences ​
- The owner sets up a GitHub App with
contents: writeandpull-requests: write, installs it on this repository, and adds the secretsRELEASE_PLEASE_APP_CLIENT_ID(the Client ID, not the App ID) andRELEASE_PLEASE_APP_PRIVATE_KEY. Until thenrelease-please.ymlfails at its first step and nothing is released. - The chart's package is new and private until its owner makes it public; check an anonymous pull before a deployment points at it. The image package is public already.
- A release changes two labels of every object and two checksums in the chart's render. The platform renders this chart for its parity goldens at a pinned revision (
tools/adam-parity); moving that pin across a release moves those lines and nothing else. The markers added here are comments: no render changes. - A release builds the image twice (once in
coder.ymlon the merge, once here); the second reads main's cache. - Titles like
ANR-123: ...are refused from now on; the task id goes in the scope or the body. - Unverified until the first tag: the App token minting and the release pull request, the release image's build and smoke tests on a tag, the carbon copy (
imagetools create --prefer-index=false) keeping the signed digest, creating the chart's package withGITHUB_TOKEN, andcosign verifyof either.release.ymlchecks each in the run.
Amended 2026-11-27: the tag's commit keeps its coder.yml run (ANR-1195) ​
The first release, v0.6.0, failed its gate: no coder.yml run on the tag's commit had passed its image job. The cause was not cancel-in-progress (already off for main) but the concurrency group. A group runs one workflow and holds one pending; a newer pending run cancels the older pending run even with cancel-in-progress: false. Seven docs pull requests merged within minutes of the release commit, so its run was replaced while it waited. The fix:
- The release commit has a group of its own, its sha (
coder-<sha>), and so has a manual dispatch; a pull request keepscoder-<ref>and keeps cancelling; every other push to main sharescoder-refs/heads/mainand skips to the newest. The release commit is special because release.yml's gate needs exactly its run, and it is recognised by its subject,chore: release main (#N). Giving every merge a group would run a 90-minute build and e2e for each merge of a burst in parallel (about 11 for v0.6.0's). A release cut from another commit, or a gate that finds its run replaced, is recovered by aworkflow_dispatchofcoder.ymlon the tag. - The gate accepts any
coder.ymlrun on the commit whose image job concludedsuccess, whatever the run's status or conclusion (a later job, such as the bump, may be cancelled), a manual dispatch on the tag included, and keeps waiting while a run of the commit has not finished its image job. bump the tag in the charthas no concurrency group. A queue ordered by finish time lets an older commit's pending bump cancel the newest commit's pending bump and then skip. It cannot write a stale tag without the group: it skips whenmainhas a non-bump commit newer than its own, and its fetch, reset and retry loop keeps the newest writing. If the newer commit's image job fails, the chart keeps the older tag until the next good build.ci.ymlis not read by the gate; its group is unchanged.coder.ymlhas no tag trigger: a tag's commit is reached by the main push or by a dispatch.