Skip to content

The rpm is never installed, and no CI mount ever completes #149

Closed

Description

@scttfrdmn

What is actually missing

ci.yml's packaging job builds all eleven artifacts and, since #533, opens the tarballs. What it
does not do:

  1. Install the rpm. Its own comment (ci.yml:841) says why, and the reasoning is sound: there is
    no rpm on ubuntu-latest, and installing one gives a database with no distribution behind it, so
    rpm -i would 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, so scripts/postinstall.sh and scripts/preremove.sh have only ever been run by
    dpkg and by the Go tests against a scratch root. The same comment already names the fix:
    "rpm -qp under a container is the follow-on worth having."
  2. Complete a mount. mount(8) is proven to resolve -t objectfs to 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. The packaging comment 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 -i the amd64 rpm and let postinstall.sh run 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.objectfs as a symlink to it that resolves to something runnable, the 0600 config, the
    systemd unit, objectfs version
  • rpm -e and assert preremove.sh left 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

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, with postinstall.sh and
    preremove.sh run 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 packaging job — 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

Activity

  1. added
    type: testing
    priority: medium
    area: ci-cd
    on Apr 7, 2026
  2. added
    effort: small
    on Aug 3, 2026
  3. scttfrdmn commented on Aug 9, 2026

    @scttfrdmn
    OwnerAuthor

    Scoping note: this issue specifies LocalStack, which this project rules out.

    CLAUDE.md:130 ("Integration tests hit real AWS S3 (no LocalStack)") and CONTRIBUTING.md:189 ("Do not use LocalStack, and prefer not to write a mock") are both explicit, and #240 deleted an entire tests/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=integration with AWS_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.

  4. scttfrdmn commented on Aug 9, 2026

    @scttfrdmn
    OwnerAuthor

    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:

    1. make rpm is not a target. The Makefile has package and package-linux; make package-linux builds both formats for amd64 and arm64.
    2. dist/objectfs_*.rpm matches nothing. nfpm names the rpm with hyphens and an arch suffix — objectfs-0.13.0-1.x86_64.rpm, not objectfs_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.
    3. LocalStack should not be used. This project's test infrastructure is 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 --privileged for FUSE, which the spec has right, but a mount inside a GitHub-hosted runner's container is worth proving early — if /dev/fuse is unavailable there, the whole workflow's premise changes and the alternative is a VM-based runner or a fuse_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.

  5. scttfrdmn commented on Sep 19, 2026

    @scttfrdmn
    OwnerAuthor

    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 against internal/testaws — the real
    S3 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 never
    reports
    on a PR that misses the filter, and the PR waits forever. ci.yml is deliberately unfiltered
    for exactly this reason. No filter.

    What is actually left. #136 shipped more of this than the issue text assumes. ci.yml's packaging
    job (ci.yml:851) already builds every artifact, installs the real .deb under dpkg, lets the
    postinstall scriptlet run, asserts /usr/bin/mount.objectfs is executable and /sbin/mount.objectfs
    links 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-linux
    2.38.1. So the remaining gap is narrower and more specific:

    • The rpm half. Everything above is dpkg-only. rpm -i runs the same scriptlet through a different
      mechanism, and Rocky/RHEL is the deployment target this issue was filed for.
    • A mount that completes, with file I/O. Nothing today gets past helper resolution. This is the
      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 packaging job rather than adding a workflow: a new job means a new required status
    context to pin (and a stale one blocks every PR forever), and internal/config/job_timeouts_test.go
    caps any job at 60 minutes — packaging is currently at 20.

  6. changed the title [-]B2-5: CI job: full install-to-fstab path on Rocky Linux 9[/-] [+]The rpm is never installed, and no CI mount ever completes[/+] on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ci-cdeffort: smallpriority: mediumtype: testing

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions