Skip to content

Gate release builds under Build and test and make Linux releases reproducible - #257

Merged
saworbit merged 1 commit into
mainfrom
batch/release-fixes
Nov 16, 2026
Merged

saworbit merged 1 commit into
mainfrom
batch/release-fixes

Conversation

@saworbit

Copy link
Copy Markdown
Owner

What and why

The release dry run wasn't part of Build and test, so a pull request that broke the release build could still auto-merge (#252). That is also why #241 and #242 were left open. This puts the dry run under the gate and then does both.

  • The release builds move to release-build.yml, a reusable workflow. release.yml calls it for a tag. ci.yml calls it as a dry run when a pull request changes release.yml, release-build.yml or the Dockerfile, and ci-ok needs it. Other pull requests skip it, and ci-ok already counts skipped as passed. This pull request changes all three files, so its own Build and test includes the dry run.
  • Linux builds run in the Dockerfile's digest-pinned Debian 12 builder image, read from its FROM line, so Dependabot's digest bumps carry over. The binary needs glibc 2.34 (it used to need 2.39), and each build runs it on Debian 12 and Ubuntu 22.04.
  • Windows and macOS install the builder image's Rust version, read from the image's RUST_VERSION.
  • Archives are sorted, with owner 0, mode go-w, every timestamp the commit's, and gzip -n. Paths are remapped. Each archive has a TOOLCHAIN.txt.

Checked locally: two builds of this tree in fresh containers of the builder image gave the same binary and archive (sha256 77ccc323...). The binary's highest glibc symbol is GLIBC_2.34, and spacectl --version runs on Debian 12 and Ubuntu 22.04. No /src or /usr/local/cargo paths are left in it.

Fixes #252
Fixes #241
Fixes #242

Type

  • Bug fix
  • New feature
  • Breaking change (on-disk format, CLI, S3 behaviour or public API)
  • Refactor or cleanup
  • Docs only
  • Build, CI or dependencies

Checklist

  • typos
  • actionlint and zizmor (no findings)
  • CHANGELOG.md has an entry
  • Docs match the change (docs/CI_CD_STRATEGY.md, with how to rebuild a release and compare)

No Rust code changed.

Security

  • No secrets, tokens or keys added
  • Every image is pinned by digest; jobs keep a read-only token

…oducible

The release builds move to release-build.yml, a reusable workflow. release.yml
calls it for a tag. ci.yml calls it as a dry run when a pull request changes
release.yml, release-build.yml or the Dockerfile, and ci-ok needs it, so a
broken release build fails Build and test. Other pull requests skip it.

The Linux builds run in the Dockerfile's digest-pinned Debian 12 builder
image. The binary needs glibc 2.34, and each build runs it on Debian 12 and
Ubuntu 22.04. Windows and macOS install the image's Rust version. Paths are
remapped and archives are sorted with fixed owners, modes and the commit's
time, with gzip -n, so two builds of a commit give the same Linux archives.
Each archive carries TOOLCHAIN.txt.

Fixes #252
Fixes #241
Fixes #242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant