Skip to content

docs: say that pjdfstest runs on demand only, and why (#352) - #397

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/352-pjdfstest-on-demand
Aug 9, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/352-pjdfstest-on-demand

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Closes #352 by taking option 2, because option 1 is blocked on infrastructure that does not exist.

The script is not broken

Checked before deciding what to do with it:

  • real mount subcommand invocation, not a placeholder
  • prerequisite checks for both pjdfstest in $PATH and the objectfs binary, each with an actionable error
  • trap cleanup EXIT INT TERM, with fusermount -u → umount fallback and rmdir of the temp mount dir
  • ${PIPESTATUS[0]} captured past the tee, so a failing suite is a failing exit code rather than tee's success

Why option 1 is blocked

It needs /dev/fuse, real AWS credentials, and a real bucket. A GitHub-hosted runner cannot supply those, and this repository has no scheduled real-AWS job at all — the only cron: in the tree belongs to the security scan. So "wire it into CI" is really "add the first scheduled real-AWS job, with a bucket and a role, and own its cost." That is a decision with a price tag, not something a script comment can make on the project's behalf.

What this PR does instead

States it plainly in both places a reader arrives from:

  • scripts/pjdfstest.sh header — an ON DEMAND ONLY note saying what it needs, why CI cannot supply it, and what would have to change.
  • beside make test-posix — same, matching the wording style make test-fuse-mount already uses two targets above (Needs /dev/fuse, so it is not part of make test).

The reason for saying it at all: the failure mode of an unrun conformance suite is that it reads as a passing one. A suite in the tree with a Makefile target looks like coverage. internal/fuse/kernel_options_live_test.go is the precedent — it documents its own unrunnability rather than skipping into a false pass.

Both notes also name what does run, and why it is the weaker claim: internal/difftest is a differential oracle over an operation sequence this repository chose, where pjdfstest is a suite nobody here wrote and therefore cannot have tuned to what already works.

Not deleted

It is the only third-party POSIX conformance suite this project has. Both notes point at README.md's supported-operations table for reading the output, because ObjectFS is explicitly not a POSIX-compliant filesystem: a clean run is not the goal, and the useful question is whether the set of failing cases grew.

Verification

No code path changes.

  • make -n test-posix — resolves
  • bash -n scripts/pjdfstest.sh — clean
  • shellcheck scripts/pjdfstest.sh — only the two known false positives: SC2329 on cleanup (invoked via trap) and SC2034 on the deliberate retry counter i
  • npx [email protected] CHANGELOG.md — no new findings
  • Grepped for a stale claim that the suite runs automatically: the only other mention anywhere is the v0.6.0-era CHANGELOG line recording that the script was added, which is a historical record and correctly left alone.

The script works. Verified rather than assumed: a real `mount` subcommand,
prerequisite checks for both pjdfstest and the binary, an EXIT/INT/TERM trap that
unmounts and removes the temp dir, and ${PIPESTATUS[0]} carried past the `tee` so
a failing suite is a failing exit code. What it does not have is anything that
runs it.

That is a statement about infrastructure, not about the script. It needs
/dev/fuse, real AWS credentials and a real bucket, so a GitHub-hosted runner
cannot execute it — and this repository has no scheduled real-AWS job at all; the
only cron: in the tree belongs to the security scan. Wiring it in means adding
one, with a bucket and a role, which is a decision with a cost attached and not
one a script comment can make. So #352's option 1 is blocked on infrastructure
that does not exist, and this is option 2.

Written into the script header and beside `make test-posix`, because the failure
mode of an unrun conformance suite is that it reads as a passing one — the same
reason internal/fuse/kernel_options_live_test.go documents its own unrunnability
instead of skipping into a false pass, and `make test-fuse-mount` already says so
beside its target. Both notes name what does run, internal/difftest, and why it
is the weaker claim: a differential oracle over an operation sequence this
repository chose, versus a suite nobody here wrote and cannot have tuned to what
already works.

Not deleted. It is the only third-party POSIX conformance suite this project has,
and both notes point at README.md's supported-operations table for reading the
results: ObjectFS is not a POSIX-compliant filesystem, so a clean run is not the
goal — knowing which cases fail, and that the set has not grown, is.

No code path changes. `make -n test-posix` still resolves and `bash -n` is clean;
shellcheck reports only the two known false positives, SC2329 on `cleanup`
(invoked via trap) and SC2034 on the deliberate retry counter `i`.

Closes #352
@scttfrdmn
scttfrdmn force-pushed the docs/352-pjdfstest-on-demand branch from ac11a5d to f0dfdf5 Compare August 9, 2026 01:19
@scttfrdmn
scttfrdmn merged commit 038932f into main Aug 9, 2026
35 checks passed
@scttfrdmn
scttfrdmn deleted the docs/352-pjdfstest-on-demand branch August 9, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant