Skip to content

The fuse_mount suite is skipped for a device that ubuntu-latest has #543

Closed

Description

@scttfrdmn

internal/fuse/kernel_options_live_test.go is behind the fuse_mount build tag, and both the test file
and ci.yml give the same reason: ubuntu-latest has no /dev/fuse. That reason is false, measured
in #541's packaging job on 2026-09-20 (run 35488688077):

crw-rw-rw- 1 root root 10, 229 Sep 20 04:15 /dev/fuse
fusermount3 version: 3.14.0

The device is a world-writable character device, fusermount3 is on PATH, and /etc/fuse.conf
exists — none of them installed by that job, which reports 0 upgraded, 1 newly installed for the
.deb alone. ubuntu-latest ships all three.

The claim was never probed; it was written down. It then justified a coverage gap in the file's own
doc comment:

Behind the fuse_mount build tag, and therefore run by nothing by default, because it needs
/dev/fuse — absent on GitHub's ubuntu-latest runners […] That is a real coverage gap and it is
stated rather than papered over.

The gap is real. Its stated cause is not.

Why this suite in particular

It is the only test in the repository that observes the kernel's half of the direct-I/O contract.
kernel_options_test.go asserts FOPEN_DIRECT_IO reaches the kernel; that flag's entire purpose is to
change what the kernel does with a second read(2) of bytes it already holds, which no inspection of
OpenOut can show. This file reads one offset twice through a real mount and counts arriving READ
requests. #180 was filed about nine MountOptions fields that named real capabilities and reached
nothing — this is the test that would have caught the rest of that class.

It also needs nothing else: liveMount calls testaws.Start(t), the in-process substrate endpoint, so
there is no bucket, no credential and no network on this path. The device was the whole barrier.

What is not yet known

Whether the suite passes there. Unmeasured, and this issue should not assume it:

  • The mount is created under t.TempDir() by a non-root go test, so it goes through fusermount3's
    setuid path rather than the root path The rpm is never installed, and no CI mount ever completes #149 exercised.
  • The assertions count kernel READ requests, and page-cache behaviour is a property of the kernel
    version. A runner kernel that answers differently from a developer's would be a finding, not a
    failure — but it has to be seen before a required gate depends on it.
  • ubuntu-latest migrates to Ubuntu 26 starting 2026-10-19, which changes that kernel.

So the work is: run it, read the result, and only then decide whether it becomes a gate.

Work

  1. Run go test -tags=fuse_mount -race ./internal/fuse/ on ubuntu-latest — once, in a
    continue-on-error step or a scratch branch, to see what it actually does.
  2. If it passes: give it a real cell. It cannot join the build-tags matrix, which vets rather than
    tests, deliberately — several of those tags need credentials that this one does not. A separate job,
    or a fuse_mount entry in the existing test matrix.
  3. If it does not pass: record what the kernel actually did in the file's doc comment, which is the
    artifact either way.
  4. Correct the two comments regardless — done in test(ci): install the rpm, and complete a read-only mount (#149) #541, referencing this issue.
  5. make test-fuse-mount is the existing entry point; keep it working as the local path.

The transferable defect

A comment is not an observation, and an unprobed claim that justifies skipping a test is the most
expensive kind: it removes the thing that would have contradicted it. CLAUDE.md already says to
establish a capability by probing rather than asking, for backends. The same rule applies to the
runner — ls -l /dev/fuse is three characters of evidence and it sat unwritten for as long as the
comment did.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ci-cdarea: fusearea: testseffort: mediumpriority: mediumtype: testing

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions