Documentation
¶
Overview ¶
Command release-check is mash's release gate.
release-check <X> <version> judge candidate X for release v<version> release-check --assets <version> <X> after CI drafted the release: is the tag right and are the assets ours? release-check --consumer <checkout> <X> <version> as the first form, plus the consumer's check run against X (maintainers only) release-check publish [--wait <d>] <version> <X> the whole path, resumable: gate, signed tag, draft, --assets gate, publish, verify
It verifies the candidate is on main of the release repository; CI's check runs on X succeeded; X builds, from fresh clones in different directories, to identical bytes whose `version` line is exactly "mash <version> (commit X)". With --assets it verifies the remote tag v<version> is annotated, signed by a key this machine trusts and points at X, and that the draft release carries exactly the four binaries and SHA256SUMS, each equal to our own build of X. It then signs SHA256SUMS (ssh-keygen -Y sign, namespace mash-release) after checking every line against those builds, verifies the signature against ci/release.allowed_signers at X and uploads SHA256SUMS.sig; RELEASE_SIGNING_KEY names the key (the one that signs the tag). With --consumer (maintainers only: needs a downstream consumer's checkout) it also runs that checkout's own check of mash against X, as its .mash-consumer-check manifest directs (docs/release.md): opt-in, as it can take 30+ minutes. It refuses to tag while an earlier vN.N.N tag has a release that is a draft or missing, unless docs/skipped-releases.txt at X records it with a reason. It reports every problem, not the first. Exit 0 passed, 3 refused, 4 the gate could not decide, 2 usage.