Unbreak releases: cosign v3 bundle signing, drop PGO

Merged
JE
3mo ago
+58-296

Why

v0.1.0 was tagged today and the release failed at cosign: cosign-installer v4.1.2 installs cosign v3, which rejects --output-certificate/--output-signature. That left an empty, non-draft v0.1.0 marked Latest (now moved to draft). proxy.golang.org cached the tag, so it is immutable — the first good release is v0.1.1, cut from this PR once merged.

What

  • signs: now produces checksums.txt.bundle (--bundle, --new-bundle-format=true), the shape basecamp-cli ships and that the installers / hey upgrade will verify.
  • Remove PGO machinery end to end: the release step, build-pgo/collect-profile/clean-pgo/bench-cpu/bench-mem, scripts/collect-profile.sh. There are zero benchmarks, so it only ever produced an empty profile. Builds use -trimpath.
  • make_latest tracks prerelease, replace_existing_artifacts: true so re-running a failed tag is idempotent, cask/scoop skip_upload: auto.
  • Drop the go mod tidy before-hook and the duplicate completions step; zsh completion is completions/_hey in archive, cask and nfpm; nfpm adds apk and per-packager zsh paths.
  • VERSION ?= dev for local builds (a git-describe SHA would make a dev binary look like a release once hey upgrade exists). make release passes VERSION/DRY_RUN to release.sh, which it previously did not.
  • Delete root install.sh (requested darwin_all, which is never built); plugin hook links to README#install.
  • create-github-app-token uses client-id (app-id is deprecated); RELEASE_CLIENT_ID is set on the release environment.
  • goreleaser pinned at 2.15.4 in .mise.toml and release.yml.
  • RELEASING.md loses the PGO and AI-summary steps (full rewrite comes later in this series).

Verified

  • goreleaser check, actionlint, zizmor, make build && ./bin/hey --version → hey version dev, make test.
  • goreleaser release --snapshot --skip=publish,sign,sbom: archives contain completions/_hey; cask uses zsh_completion "completions/_hey"; deb/rpm/apk built with the zsh completion at the right path.

First PR of the release-engineering series (CI consolidation, release.yml port, installers, Windows signing, Nix, hey upgrade, surface/size gates follow).


Summary by cubic

Switches signing to cosign v3 bundle mode and removes the unused PGO pipeline, unblocking releases and making failed tags idempotent. Previously we wrote separate signature/cert files that v3 rejects; now we publish checksums.txt.bundle with the bundle format pinned.

  • goreleaser: signs checksums.txt as checksums.txt.bundle (keyless, pinned new-bundle format); pins v2.15.4; skips Homebrew/Scoop upload for prereleases; make_latest respects prerelease; replace_existing_artifacts: true.
  • Build/PGO: drop PGO steps and scripts; build with -trimpath; remove duplicate completions generation; zsh completion is completions/_hey everywhere, including AUR; nfpm adds apk and per-packager zsh paths.
  • Makefile: local builds default to VERSION=dev; make release forwards VERSION and DRY_RUN.
  • Auth: actions/create-github-app-token uses client-id; set RELEASE_CLIENT_ID in the release environment. Migration: replace any use of RELEASE_APP_ID.
  • Installers/docs: remove root install.sh; plugin hook links to README #install; docs note skipping SBOM for local snapshots. Migration: update any external scripts to follow README.
  • Rollout: v0.1.0 is immutable and broken; first valid release will be v0.1.1.