Skip to content

build: drop 32-bit Linux; v0.17.1 was the last release built for it - #631

Merged
scttfrdmn merged 2 commits into
mainfrom
remove/32-bit-linux
Oct 19, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
remove/32-bit-linux

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

32-bit Linux is unsupported, per your decision. It was promised in five places, and this removes it from all five together. A half-removal (built but not compiled, or offered by install.sh with no asset behind it) is the state #198 was in.

What changes for users

  • No more objectfs-linux-armv7.tar.gz, *_armhf.deb or *.armv7hl.rpm from v0.18.0 on. v0.17.1 was the last 32-bit release.
  • install.sh refuses 32-bit machines by name (armv7l, armv6l, armhf, i386…i686), and points at v0.17.1's own installer, which still supports armv7. Run with a fake uname on armv7l, it prints:
    objectfs-install: error: 32-bit machines (armv7l) are not supported as of objectfs v0.18.0. v0.17.1 was the last release built for 32-bit ARM; to install it, run that release's installer: curl -fsSL https://raw.githubusercontent.com/scttfrdmn/objectfs/v0.17.1/scripts/install.sh | bash -s -- --version 0.17.1
    
  • CHANGELOG ### Removed entry. Unreleased's sections are also back in Keep a Changelog order; I'd put Security before Fixed in fix(deps): build with go1.26.9 and golang.org/x/net v0.60.0 for eight govulncheck findings #597.

Where it was removed

File Change
.goreleaser.yml archives, packages and mount-helper builds are amd64 + arm64 only
release.yml artifact loops check 64-bit names only, and the publish floor is 11 → 8. Left alone, both would have failed the first release that didn't build armv7
ci.yml cross-build (linux, arm, 7) and (linux, 386) removed, plus the now-dead GOARM env
install.sh named refusal, above
requiredChecks drops the two cross-build contexts

The guard, inverted

TestThirtyTwoBitIsStillInTheCrossBuildMatrix required a 32-bit CI cell, as #198's word-width canary for overflow bugs that only compile-fail on a 32-bit int. That made sense while a 32-bit binary shipped. It's replaced by TestNoThirtyTwoBitLinuxIsBuiltOrShipped, which fails if any goreleaser build, the cross-build matrix, or install.sh brings 32-bit back. Floor: 6 expanded targets.

Mutation Result
arm + goarm: 7 back in the archives build ❌ names linux/arm
a linux/386 cell back in cross-build ❌ names it
armv7l) arch="armv7" back in install.sh ❌ names linux-armv7

What's given up, deliberately: the word-width canary. That's a fair trade only because no shipped binary has a 32-bit int any more.

Unblocks #606

go-fuse v2.12.0's only failure was a 32-bit compile error inside the module (splice/pair_linux.go).

⚠️ Branch protection

cross-build (linux, 386) and cross-build (linux, arm, 7) are required checks, and they can no longer report. This PR is blocked until they're removed from branch protection, which needs your go-ahead, like #572's three did.

🤖 Generated with Claude Code

32-bit Linux is unsupported (the maintainer's decision, 2026-10-19). It
was promised in five places, so it is removed from all five together:

- .goreleaser.yml: the archives, packages and mount-helper builds are
  amd64 and arm64 only. No more linux-armv7 tarball, armhf .deb or
  armv7hl .rpm.
- release.yml: its artifact checks loop over the 64-bit names only, and
  the publish floor goes from 11 assets to 8. Left alone, both would
  have failed the first release that didn't build armv7.
- ci.yml: the linux/arm and linux/386 cross-build cells, and the dead
  GOARM env, are gone.
- install.sh refuses 32-bit machines (armv7l, armv6l, armhf, i386..i686)
  by name, pointing at v0.17.1's own installer, which can still install
  the last 32-bit release. Verified with a fake uname on armv7l.
- requiredChecks drops the two cross-build contexts. Branch protection
  must drop them too before this merges.

TestThirtyTwoBitIsStillInTheCrossBuildMatrix required a 32-bit CI cell as
#198's word-width canary. It is replaced by
TestNoThirtyTwoBitLinuxIsBuiltOrShipped, which fails if any goreleaser
build, the cross-build matrix, or install.sh brings 32-bit back. Each of
those mutations fails it by name; the floor is 6 expanded targets.

This unblocks go-fuse v2.12.0 (#606), whose only failure was a 32-bit
compile error inside the module. CHANGELOG has a Removed entry, and its
Unreleased sections are back in Keep a Changelog order.
The packaging job failed on #631: it required exactly 5 tarballs from the
snapshot build, and there are now 4. The first pass searched for armv7,
armhf, 386 and 32-bit, and a bare count names none of them. Searching by
number found the rest:

- ci.yml packaging: expects 4 tarballs.
- Makefile: package-linux's help says 4 tarballs, 2 debs, 2 rpms, and the
  'eleven artifacts' comment says eight.
- DEVELOPMENT.md: four published platforms, the armv7 build recipe
  removed, and the 32-bit policy stated with the test that holds it.
- OBJECTFS.md: ARMv7 is marked unsupported, last built by v0.17.1.
- Two test comments that used armv7 as an example of a current asset.

Verified with a real goreleaser snapshot (make package-linux): 4 tarballs,
2 debs and 2 rpms, all amd64/arm64. That matches the packaging job's 4,
the Makefile, and release.yml's floor of 8.
@scttfrdmn
scttfrdmn merged commit d70be5e into main Oct 19, 2026
107 of 108 checks passed
@scttfrdmn
scttfrdmn deleted the remove/32-bit-linux branch October 19, 2026 17:57
scttfrdmn added a commit that referenced this pull request Oct 21, 2026
…ls (#633) (#635)

Go does not retry a module fetch. A single HTTP/2 stream error from
proxy.golang.org or sum.golang.org failed five correct PRs in October
(#582, #631, #622, #614, #632) before anything compiled. Each module that
failed had just been bumped on main, and the Security Scan failures came
from uncached @latest tool installs.

.github/scripts/go-retry.sh runs a go command and splits failures three
ways. A transient answer (stream INTERNAL_ERROR, 5xx, timeout, reset) is
retried with backoff, and each retry is printed. A missing module, or any
other error, fails on the first attempt. A checksum mismatch / SECURITY
ERROR is checked first and never retried, even beside a transient-looking
line, so a corrupted download can't be retried until a lucky attempt hides
it. Still transient after three attempts is a failure: a build can't
proceed without its modules.

Every job that sets up Go (18 across ci.yml, security.yml, release.yml and
live-aws.yml) fetches modules through it as the step after setup-go.
security.yml's existing bare 'go mod download' is replaced. gosec,
govulncheck and go-licenses are pinned (v2.29.0, v1.9.0, v1.6.0) rather
than @latest and installed through it; govulncheck had already moved from
v1.8.0 under @latest with no commit. The MinIO and substrate installs go
through it too.

Tests:
- TestGoRetryScriptRetriesOnlyTransientModuleServerErrors runs the real
  script against a stub go, asserting the number of attempts as well as
  the exit status. Removing the checksum guard, retrying everything, and
  never retrying each fail the cases they should.
- TestEveryGoJobFetchesModulesThroughTheRetry walks every workflow: a
  retry download after setup-go with no go before it, no bare go install,
  no @latest. Floor of 15 Go jobs. Deleting a job's download step, adding
  @latest back, a bare go install, and a go build before the download each
  fail naming the job and step.

Against real go, with a local proxy that 502s the first two requests into
an empty GOMODCACHE: two visible retries, then success. A nonexistent
version 404s and fails in 2s with no retry. Pinned govulncheck v1.9.0
reports no vulnerabilities, and go-licenses v1.6.0 passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant