Repository navigation
Description
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.shexists 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
pjdfstestor./bin/objectfsis missing. - It traps EXIT/INT/TERM and unmounts, preferring
fusermountand falling back toumount. - It propagates pjdfstest's exit code via
${PIPESTATUS[0]}rather thantee's. shellcheckreports two notes, both false positives: SC2329 sayscleanupis never invoked (it is, viatrap) and SC2034 saysiis 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
- 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). - 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 treatmentinternal/fuse/kernel_options_live_test.goalready 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
docs: say that pjdfstest runs on demand only, and why (#352)