Skip to content

chore: delete the apt and yum repository machinery, which never published a byte - #520

Merged
scttfrdmn merged 1 commit into
mainfrom
chore/delete-unpublished-package-repository-machinery
Sep 17, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
chore/delete-unpublished-package-repository-machinery

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

First of two PRs converging objectfs's release machinery with cargoship's. This one is pure subtraction; the second adopts goreleaser.

The measurement that decided it

address status
https://objectfs.io/apt/dists/stable/Release 404
https://objectfs.io/yum/objectfs.repo 404
https://objectfs.io/install.sh 200
https://objectfs.io/ 200

Both repository paths answered 404 for the whole life of the feature, from the same workflow, in the same step, that was successfully serving install.sh the entire time. So nothing can be depending on them, and this is a deletion with nothing to migrate.

Meanwhile v0.14.0 already shipped exactly the assets the repositories were meant to make reachable: objectfs-0.14.0-1.{aarch64,x86_64}.rpm and objectfs_0.14.0-1_{amd64,arm64}.deb, each with a .sha256, alongside five tarballs.

What goes

deleted lines
scripts/setup-repo-debian.sh 264
scripts/setup-repo-rhel.sh 273
ci.yml's repo-install job 408
pages.yml's repository step + the Pages size guard 318
internal/config/served_repositories_test.go 867

The size guard went because its stated purpose was the ~33 MB per release the repositories accumulated against Pages' 1 GB limit. What is left of the site is a landing page, a MkDocs tree and one shell script; a 900 MB tripwire over that can never fire.

What users get

Unchanged. No page ever documented the repositories — a gate in internal/config forbade it, on the reasoning that a documented curl … | sudo bash one-liner that fetches a signing key which 404s is worse than no instructions at all. So there is no user to migrate and no address to redirect. Packages still come from the release page:

apt install ./objectfs_*.deb      # Debian, Ubuntu
dnf install ./objectfs-*.rpm      # RHEL, Fedora, Rocky
zypper install ./objectfs-*.rpm   # openSUSE

Three gates were kept, not deleted

I deleted served_repositories_test.go wholesale first and then found that three of its gates had nothing to do with repositories. They moved rather than going with it.

  • TestWorkflowExpressionsAreValid → internal/config/workflow_expressions_test.go. An unparseable ${{ }} — including one inside a YAML comment, since Actions interpolates before any shell exists — fails the entire workflow file before any job starts: no job list, no log, and gh run view shows only "This run likely failed because of a workflow file issue". check-yaml passes it happily. Losing this would have been the worst outcome in the PR.
  • TestTheRPMSigningPathStaysIntact → internal/config/rpm_signing_test.go. gpgcheck=1 is dnf's default for a downloaded file too, and each rpm stands alone with no equivalent of apt's InRelease→Packages→.deb checksum chain, so rpm signing matters with no repository in sight. Two assertions that named repo-install are gone. The $GITHUB_ENV-does-not-reach-its-own-step gate stayed: that mistake belongs to $GITHUB_ENV, not to the job that first made it.
  • the docs-absence walk → same file. Now stronger than a policy: those addresses have no machinery left that could serve them.

served_install_script_test.go's loop-parsing branch went too — ~60 lines that existed to tolerate a for loop over three served scripts. One script is left and the step is a literal cp again, which is the shape it had before the loop.

Deliberate deviation from the approved plan

The plan said delete ci.yml's install-script job (147 lines) and by implication scripts/install.sh's gates. I kept all of it. install.sh returns 200, reads tarballs straight from GitHub releases, has no dependency on the repositories, and is the path that works on a machine with no root, no package-manager entry, and no network route to a third-party repo — which describes a large share of the HPC login nodes this project targets. Deleting a live install path's tests would reduce safety, not machinery.

Required checks

repo-install and install-script are not required on main (read from the API, not assumed), so removing a job cannot block future PRs. packaging, modulefiles (lmod) and modulefiles (tcl-modules) are required and all still report — verified by parsing all five workflows and diffing the job ids.

Verification

  • all five workflows parse; every required job id survives
  • go test -race ./internal/config/ passes
  • golangci-lint run ./internal/config/... → 0 issues
  • shellcheck -S warning scripts/install.sh clean
  • the docs-absence gate caught this PR's own first draft of docs/index.md, which spelled the 404 addresses out as evidence. Reworded rather than exempted.

Refs #502.

…shed a byte

The repositories were built, signed against a throwaway key on every pull request,
installed from in three containers, and gated by 867 lines of tests, for three
releases. They published nothing. Every address they would have served answered
404 for the whole life of the feature, while install.sh — served from the same
workflow, in the same step — answered 200 the entire time. That is how the
difference was established rather than assumed.

Deleted: scripts/setup-repo-debian.sh (264), scripts/setup-repo-rhel.sh (273),
ci.yml's repo-install job (408), pages.yml's repository-building step and the
Pages size guard whose stated purpose was the 33 MB per release the repositories
accumulated (318 total), and internal/config/served_repositories_test.go (867).

Nothing a user could reach changes. No page ever documented the repositories — a
gate in internal/config forbade it, on the reasoning that a documented
`curl | sudo bash` one-liner fetching a signing key that 404s is worse than no
instructions at all — so there is no user to migrate and no address to redirect.
What users had is what they keep: .deb and .rpm for amd64 and arm64 attached to
every release, plus five tarballs and install.sh.

Three gates outlived the deletion because none was about repositories:

  - TestWorkflowExpressionsAreValid moved to workflow_expressions_test.go. An
    unparseable ${{ }}, including one inside a YAML comment, fails the whole
    workflow file before any job starts, with no job list and no log.
  - TestTheRPMSigningPathStaysIntact and the docs-absence walk moved to
    rpm_signing_test.go. gpgcheck=1 is dnf's default for a downloaded file too,
    and each rpm stands alone with no equivalent of apt's InRelease chain, so rpm
    signing matters with no repository in sight. The two assertions that named
    repo-install are gone; the $GITHUB_ENV-does-not-reach-its-own-step gate
    stayed, because that mistake belongs to $GITHUB_ENV and not to the job that
    first made it.

served_install_script_test.go's loop-parsing branch went too: it existed to
tolerate the copy loop over three served scripts, one script is left, and the
step is a literal `cp` again — which was its shape before the loop.

scripts/install.sh and both of its CI jobs are deliberately kept. It is
repo-independent, it is the path that works on a machine with no root and no
package-manager entry, and it is the one address here that was serving traffic.

repo-install and install-script are not required status checks; packaging,
modulefiles (lmod) and modulefiles (tcl-modules) are, and all three still report.

Verified: all five workflows parse, every required job id survives, go test -race
./internal/config/ passes, golangci-lint 0 issues, shellcheck clean. The
docs-absence gate caught this commit's own first draft of docs/index.md, which
spelled the 404 addresses as evidence — reworded rather than exempted.
@scttfrdmn
scttfrdmn merged commit 6e45580 into main Sep 17, 2026
42 checks passed
scttfrdmn added a commit that referenced this pull request Sep 17, 2026
…ver existed (#523)

The next release is 0.15.0, not the 0.16.0 the milestone was titled. Four lines in the
Unreleased section described the CargoShip upload-path removal as having happened "in
v0.15.0" — it shipped in 0.12.0 (#362, 2026-08-08) — and CLAUDE.md repeated the claim.
A fifth said a tier defect was "the v0.15.0 defect"; that one was v0.10.1. No v0.15.0
tag, changelog section, or module-proxy entry has ever existed, so the number is free
and skipping it would have preserved five wrong references to justify a milestone title.

Promotes Unreleased to [0.15.0] - 2026-09-17: seekable compression framing end to end
(#185, via #509/#513/#516) and the GoReleaser convergence (#502) with what it let us
delete. Bumps the version constant, which is the authority the changelog link test and
the packaging tests read.

Also corrects the signing claims across four documents (#505). README.md, docs/index.md
and docs-platform/guide/getting-started.md all said the project "does not sign releases
yet"; #501 signs checksums.txt keylessly with cosign. Each now states the two positions
separately, because neither covers the other: the release is signed, the .deb and .rpm
files are not. The verify command is the one release.yml both runs and prints into the
notes — a bundle, not the --certificate/--signature pair a first draft of this invented.
README's claim that the apt/yum repository is "built and tested on every pull request"
also went with #520, which deleted that machinery.
@scttfrdmn
scttfrdmn deleted the chore/delete-unpublished-package-repository-machinery branch September 20, 2026 05:24
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