Repository navigation
Description
What is actually missing
ci.yml's packaging job builds all eleven artifacts and, since #533, opens the tarballs. What it
does not do:
- Install the rpm. Its own comment (
ci.yml:841) says why, and the reasoning is sound: there is
no rpm onubuntu-latest, and installing one gives a database with no distribution behind it, so
rpm -iwould fail on unrelated dependency resolution rather than on anything about this package.
All three rpms are built — nfpm's rpm writer is where a malformed spec surfaces — but nothing
installs one, soscripts/postinstall.shandscripts/preremove.shhave only ever been run by
dpkgand by the Go tests against a scratch root. The same comment already names the fix:
"rpm -qpunder a container is the follow-on worth having." - Complete a mount.
mount(8)is proven to resolve-t objectfsto the installed helper, and
cmd/mount.objectfs's option translation is unit-tested, but no CI job has ever had a filesystem
mounted and read a byte through it. Thepackagingcomment states the blocker as it stood:
"creating a busy FUSE mount on a runner needs /dev/fuse and a bucket."
Both blockers are now gone. #532 shipped a read-only mount, which makes the cheapest honest
end-to-end a read-only one — no writes to reconcile, no flush path, and a failure that cannot corrupt
anything. And the bucket is solved below.
Two things the original body prescribed that this project must not do
This issue was filed early and both of these would be actively harmful now. They are recorded rather
than silently dropped, because both are the obvious thing to reach for.
Not LocalStack. This project uses real AWS S3 for integration tests and
substrate — an in-process AWS endpoint over real HTTP — for
everything else; internal/testaws is built on it. substrate also ships as a standalone server
(substrate server, :4566, /ready for readiness, ghcr.io/scttfrdmn/substrate:latest), which is
exactly what a containerized mount needs. It is also this project's own tool, so a missing capability
is a fixable issue rather than a dead end.
No pull_request: paths: filter. The original body pinned the workflow to PRs touching cmd/,
configs/ and scripts/. A paths-filtered workflow whose checks are required never reports on a
PR that misses the filter, and GitHub does not treat "never reported" as "not applicable" — it blocks
the PR forever, with no failing check to point at. ci.yml is deliberately unfiltered for this
reason. See the six-point comment at the top of that file.
Shape
Extend the existing packaging job; do not add a workflow or a job. A new job is a new required
status-check context that has to be added to main's branch protection by hand, and a context that is
required but never reports blocks every PR. packaging is already required, already builds the
artifacts these steps need, and has timeout-minutes: 20 against a current runtime of about three
and a half minutes. (The ceiling in internal/config/job_timeouts_test.go is 60 if it needs raising.)
Use docker run from within the job rather than a job-level container:. The checkout and the
goreleaser build have to happen on the runner — that is the same reason the install-script job gives
at ci.yml:1477.
The rpm half
Run rockylinux:9 over the built dist/, which is where a real rpm database and a real distribution
behind it both exist:
rpm -ithe amd64 rpm and letpostinstall.shrun for the first time ever under rpm rather than dpkg- assert the same filesystem facts the deb path asserts —
/usr/bin/mount.objectfs,
/sbin/mount.objectfsas a symlink to it that resolves to something runnable, the 0600 config, the
systemd unit,objectfs version rpm -eand assertpreremove.shleft nothing enabled or mounted
rpm and dpkg run the scriptlets with different arguments and in different orders, which is the
whole point: postinstall.sh reads configure from dpkg and 1/2 from rpm, and
internal/config's tests drive both spellings against a scratch root. This is the check that the two
real package managers agree with those tests.
The mount half
substrate serveron the runner, one bucket created with a couple of objects in itobjectfsin a container with--device /dev/fuse --cap-add SYS_ADMIN, mounted read-only
(A read-only mount: --read-only for objectfs mount, and ro for the fstab helper #532) against that endpoint- read a file through the mount and compare its bytes to what was put in the bucket
umount, then assert the mountpoint is clean
Read-only deliberately. A writable end-to-end is worth having eventually, but it needs the flush path
and a reconciliation story, and it is not what unblocks the two gaps above.
Acceptance criteria
- the amd64 rpm is installed and removed under a real
rpm, withpostinstall.shand
preremove.shrun by rpm rather than by dpkg - the rpm path asserts the same filesystem facts the deb path does, so the two cannot drift
- a read-only mount completes against a substrate endpoint and a file's bytes are read back
through it and compared - the mountpoint is clean after
umount - every new step is inside the existing
packagingjob — no new workflow file, no new required
status-check context - no
paths:filter anywhere - each step is named so a failure says which one broke without opening the log
Not blocked any more
- A read-only mount: --read-only for objectfs mount, and ro for the fstab helper #532 (read-only mount) — merged, and it is what makes the mount half cheap
- The release tarball and install.sh do not carry the mount helper #533 (tarball parity) — the tarball assertions landed in this same job
Activity
scttfrdmn commentedon Aug 9, 2026
Scoping note: this issue specifies LocalStack, which this project rules out.
CLAUDE.md:130("Integration tests hit real AWS S3 (no LocalStack)") andCONTRIBUTING.md:189("Do not use LocalStack, and prefer not to write a mock") are both explicit, and #240 deleted an entiretests/integration/suite for targeting it. The issue text predates that decision.The replacement is
internal/testaws— the real S3 backend against an in-process substrate endpoint over real HTTP: no network, no credentials, no AWS account. For anything an emulator cannot answer, real AWS behind-tags=integrationwithAWS_PROFILE=aws AWS_REGION=us-west-2. A hand-written mock is the last resort, because a mock sits on the far side of a seam and agrees with its caller by construction — which is how 32,680 lines of tests missed roughly 45 defects.Whoever picks this up should substitute accordingly rather than following the issue body literally.
scttfrdmn commentedon Aug 9, 2026
Still blocked on #136 — this workflow's fstab entry needs
/sbin/mount.objectfs, which does not exist yet. Noting three things in the spec that are wrong now, so they are not rediscovered at implementation time:make rpmis not a target. The Makefile haspackageandpackage-linux;make package-linuxbuilds both formats for amd64 and arm64.dist/objectfs_*.rpmmatches nothing. nfpm names the rpm with hyphens and an arch suffix —objectfs-0.13.0-1.x86_64.rpm, notobjectfs_0.13.0_x86_64.rpm. The underscore form is the deb convention (objectfs_0.13.0-1_amd64.deb). A glob written for the wrong one fails after a successful build, which reads as a packaging failure.internal/testaws, an in-process substrate endpoint over real HTTP — no network, no credentials, no account. Adding LocalStack to one workflow would make it the only place S3 is mocked differently.The container also needs
--privilegedfor FUSE, which the spec has right, but a mount inside a GitHub-hosted runner's container is worth proving early — if/dev/fuseis unavailable there, the whole workflow's premise changes and the alternative is a VM-based runner or afuse_mount-tagged test on the host runner instead.Same pattern as #138's parts (a) and (b): the spec's commands were written before the things they invoke existed, so implementing this means checking each one against the tree rather than transcribing it.
fix(install): retry transient HTTP errors on the wget path, and cut 0…
scttfrdmn commentedon Sep 19, 2026
Milestoned for v0.17.0. Two of the acceptance criteria above predate current project convention and
should not be implemented as written:
1. LocalStack. This project does not use it. Integration tests hit real AWS S3
(
AWS_PROFILE=aws AWS_REGION=us-west-2), and everything else runs againstinternal/testaws— the realS3 backend over real HTTP against an in-process substrate
endpoint, no network and no credentials. Use substrate.
2. A
pull_request: paths:filter. A paths-filtered workflow whose checks are required neverreports on a PR that misses the filter, and the PR waits forever.
ci.ymlis deliberately unfilteredfor exactly this reason. No filter.
What is actually left. #136 shipped more of this than the issue text assumes.
ci.yml'spackagingjob (
ci.yml:851) already builds every artifact, installs the real.debunderdpkg, lets thepostinstall scriptlet run, asserts
/usr/bin/mount.objectfsis executable and/sbin/mount.objectfslinks to it, and then has
mount(8)itself resolve-t objectfs— distinguishing "no helper" (rc=32,unknown filesystem type) from "helper found" (rc=1,unrecognized option) against real util-linux2.38.1. So the remaining gap is narrower and more specific:
dpkg-only.rpm -iruns the same scriptlet through a differentmechanism, and Rocky/RHEL is the deployment target this issue was filed for.
criterion worth keeping verbatim from the original text, and it needs a privileged container.
Sequenced after #532 in this milestone, because the cheapest honest end-to-end mount is a read-only one
over a substrate endpoint — no credentials, no writes to reason about, and it exercises the fstab path
(
_netdev,ro) that institutional deployments actually write.Extend the existing
packagingjob rather than adding a workflow: a new job means a new required statuscontext to pin (and a stale one blocks every PR forever), and
internal/config/job_timeouts_test.gocaps any job at 60 minutes —
packagingis currently at 20.[-]B2-5: CI job: full install-to-fstab path on Rocky Linux 9[/-][+]The rpm is never installed, and no CI mount ever completes[/+]docs(ci): ubuntu-latest has /dev/fuse, and four comments said otherwise
test(ci): install the rpm, and complete a read-only mount (#149) (#541)