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 [--receipts <dir>] <X> <version> as the first form; --receipts holds the upgrade-proof receipts to the candidate (REQ-019), required from 0.6.0 release-check --compat <older> <newer> the published binary of each version reads the mail the other writes (REQ-014) release-check --policy-tests run the policy tests of REQ-020 alone (scripts/releasecheck/policytests.txt) release-check publish [--wait <d>] [--not-latest] [--receipts <dir>] <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 v<version> (<first 7 characters of 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 eight binaries (mash and mashctl), the two scripts 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 a candidate that still has change-log fragments in changelog.d/ (other than README.md) or whose docs/decisions/INDEX.md differs from what the records at X generate (internal/adrindex), both read from git at X. 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. --compat is a deliberate exception: it exits 0 passed, 1 an unexpected error (a panic is recovered and exits 1, never Go's 2), 2 usage, 3 refused (a message the reader did not deliver exactly once), 4 could not decide (a binary could not be downloaded). It prints its results to stdout, and usage and could-not-decide to stderr (compat.go).