Skip to content

build(make): pin svu 3.4.1 and guard make bump - #449

Merged
bketelsen merged 1 commit into
mainfrom
build/pin-svu
Oct 22, 2026
Merged

bketelsen merged 1 commit into
mainfrom
build/pin-svu

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Summary

Closes #425. #426 already renamed .svu.yaml to .svu.yml. This PR does the rest of the issue:

  • mise.toml pins svu = "3.4.1". mise.lock gets the aqua:caarlos0/svu entry for the same 7 platforms, with checksums and cosign provenance (mise lock, no flags). The go, golangci-lint and node entries do not change.
  • New make svu-version-check. make bump runs it first, before it builds, tests or tags. It fails with exit 1 in these cases:
    • mise.toml has no svu pin: mise.toml pins no svu
    • svu is missing: svu 3.4.1 is required for make bump (not installed; run: mise install)
    • svu is the wrong release: expected svu 3.4.1, found <v> (run: mise install). An svu build that prints no GitVersion: line shows found unknown.
  • make bump calls $(SVU) next (SVU ?= svu), so the check and the tag use the same binary.
  • New contract test updex/makefile_bump_svu_contract_test.go. It checks the pin, the lock entry (version, plus sha256 for linux-x64 and linux-arm64), that bump runs the check first, and each failure branch, running make svu-version-check against fake svu binaries.
  • AGENTS.md: the Prerequisites, command list, Release Automation and Troubleshooting sections are updated.

CI is unchanged: the workflow installs only golangci-lint (install_args), and nothing in CI runs svu.

What svu next gives now

On main at 8a1e0f7 with svu 3.4.1: svu current gives v2.0.4, and svu next gives v2.1.0.

found minor change: 8a1e0f7 feat(deps): bump jdx/mise-action from 5.1.2 to 5.2.1 (#447)

#446 and #447 merged after #448, but with feat(deps) titles. Dependabot opened them before #448 changed the prefixes, and it does not rename open PRs. svu reads feat as a minor bump. The only other commit since v2.0.4, #448 itself, is ci(deps), which alone gives a patch. If a patch release (v2.0.5) is wanted, a maintainer must pick it, for example with svu patch instead of make bump. Later Dependabot PRs get build(deps) / ci(deps) titles.

Note: the svu on this machine's PATH was an old build (svu version dev, module v1.12.0). The new guard rejects it (found unknown). That is exactly the drift this PR stops.

Checks

  • make fmt
  • make ci: passes on the committed tree (==> CI gate passed, coverage 86.9%, docs gate, lint 2.13.1, E2E, race, cross-builds)
  • go test ./updex/ -run 'Svu|Bump' -v: 4 tests and 4 behaviour subtests pass
  • Manual: mise exec -- make -s svu-version-check exits 0 with the pinned svu
  • New behaviour has focused tests, including every failure path

Risk classification

  • Tier 3: High

Rationale:

  • This changes release automation (make bump tags and pushes at once) and adds a supply-chain tool pin. It does not touch the protected paths .svu.yml, .goreleaser.yaml or .github/workflows/**.
  • Failure mode: the guard stops make bump before any build or tag, with the fix in the message. It cannot tag a wrong version; it can only refuse to tag.
  • Trust: mise verifies the svu download against the mise.lock checksum, and records cosign provenance.
  • Rollback: revert this commit.

Docs housekeeping

  • AGENTS.md updated (prerequisites, commands, release automation, troubleshooting). No other doc had wrong svu text.

Verification

  • node scripts/check-docs.mjs green (part of make ci)
  • Checked against the PR review rubric

Pin svu in mise.toml (verified by mise.lock) and add make
svu-version-check, which make bump runs first: it fails with
'run: mise install' when svu is missing or not the pin. A contract
test pins the pin, the lock entry, the recipe order, and each
failure branch against fake svu binaries.

Closes #425
@github-actions github-actions Bot added documentation Improvements or additions to documentation go Pull requests that update go code labels Oct 22, 2026
@bketelsen
bketelsen added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 9cc822e Oct 22, 2026
18 checks passed
@bketelsen
bketelsen deleted the build/pin-svu branch October 22, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make bump: svu ignores .svu.yaml, and svu is not pinned in mise.toml

2 participants