Skip to content

tests: scripts/pjdfstest.sh runs nowhere — the second half of #197's question #352

Closed

Description

@scttfrdmn

Split out of #197, which asked two things and got one answered. #197's tests/posix_test.go was deleted as superseded by internal/difftest and internal/fuse's test files. But #197 also observed:

scripts/pjdfstest.sh exists alongside it and is also not wired to CI. Either the posix suite runs somewhere or it should not be carried as if it does.

That half is still open, and the answer is different from posix_test.go's, because this script is not broken.

What's actually true

Unlike the deleted Go file, scripts/pjdfstest.sh (67 lines) is functional as written:

  • It invokes objectfs mount s3://$BUCKET $MOUNT_DIR, which is a real subcommand (cmd/objectfs/main.go:89).
  • It checks its prerequisites and exits 1 with an actionable message when pjdfstest or ./bin/objectfs is missing.
  • It traps EXIT/INT/TERM and unmounts, preferring fusermount and falling back to umount.
  • It propagates pjdfstest's exit code via ${PIPESTATUS[0]} rather than tee's.
  • shellcheck reports two notes, both false positives: SC2329 says cleanup is never invoked (it is, via trap) and SC2034 says i is unused (it is a deliberate retry counter).

It is wired to make test-posix (Makefile:323-325) and nothing else.

Why it isn't in CI, and what would change that

It needs three things a ubuntu-latest PR runner does not have: /dev/fuse, real AWS credentials, and a writable bucket. So it is blocked on the same thing as the real-AWS nightly job — repository secrets or OIDC — and cannot be gated by adding a step.

That makes it a genuinely different case from posix_test.go, which was deleted because it did not compile and its coverage existed elsewhere. pjdfstest is the only POSIX conformance suite this project has: internal/difftest compares ObjectFS against the local filesystem on a sequence this repository chose, which is a different and weaker claim than a third-party suite this repository did not write.

What to decide

  1. Add it to the real-AWS nightly job once that job exists, as a non-blocking reporting step. Its output is a conformance baseline — a number that should be tracked and allowed to move deliberately, not a pass/fail gate, since ObjectFS is explicitly not POSIX-compliant (see the supported-operations table in README.md).
  2. If (1) is not going to happen, say so in the script header and in Makefile:320-322, so it is carried as "a tool an operator can run" rather than as an implied gate. That is the honest-surface treatment internal/fuse/kernel_options_live_test.go already applies to itself.

Do not delete it. It works, and a conformance suite behind a documented manual entry point is a legitimate thing to have; the defect #197 identified was code pretending to run, and this script does not pretend.

Verification: either a nightly job whose log contains pjdfstest output and a recorded baseline, or a script header and Makefile comment stating plainly that it runs only on demand and why.

Activity

  1. added this to the Future Work milestone on Aug 4, 2026
  2. added
    type: testing
    priority: low
    area: tests
    effort: medium
    area: ci-cd
    on Aug 4, 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-cdarea: testseffort: mediumpriority: lowtype: testing

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions