Repository navigation
Description
The gap
ci.yml's build-tags job runs go vet -tags=<tag> ./... for seven tags:
tag: [aws_s3, benchmark, distributed, e2e, integration, fuse_mount, s3compat]
go vet type-checks. No CI job executes any of them. So seven suites are compile-gated only, and
CLAUDE.md's standing requirement for "a comprehensive live integration test suite" is currently
satisfied by a suite that compiles.
Compiling them is deliberate and worth keeping — docs/design/conditional-write-compatibility.md says
so explicitly, and it is the reason those tags have not rotted the way four others in this repo did.
The gap is that compiling is where it stops.
Evidence that this is costing something, and that it is close to free to fix
I ran the integration tag against real AWS today — AWS_PROFILE=aws AWS_REGION=us-west-2 go test -race -tags=integration ./internal/storage/s3/, the exact command conditional_live_test.go's own
header documents. First time it has ever been executed. All eight tests pass, no data races, 9.3
seconds wall, and the test created and removed its own bucket, leaving nothing behind:
--- PASS: TestLiveConditionalWriteCapabilityIsDetectedOnRealS3 (1.27s)
--- PASS: TestLiveIfMatchOnAnAbsentKeyIsNotFoundNotPreconditionFailed (1.29s)
--- PASS: TestLiveIfNoneMatchDeclinesAnExistingKeyAndStoresNothing (1.49s)
--- PASS: TestLiveConcurrentAbsentWritersElectExactlyOne (1.61s)
--- PASS: TestLiveIfMatchSucceedsOnTheCurrentETagAndFailsOnAStaleOne (1.63s)
--- PASS: TestLiveConditionalMultipartWriteIsStillConditional (3.78s)
--- PASS: TestLiveMultipartCopyPreservesEverything (5.05s)
--- PASS: TestLiveMultipartCopyLeavesNoOrphanedUploadWhenCompleteFails (7.77s)
ok github.com/scttfrdmn/objectfs/internal/storage/s3 9.315s
That is nine seconds and a handful of PUTs standing between this project and continuous verification of
its only correctness-critical AWS-specific capability. Per CLAUDE.md, a correctness capability fails
closed — conditional writes return ErrNotSupported when the probe fails — and everything in the CAS
series rests on four behaviours of the real service that an emulator can only imitate: that
If-None-Match: * on an existing key is 412 and writes nothing, that If-Match on an absent key is
404 rather than 412, that a precondition on CompleteMultipartUpload is evaluated at all, and that S3
itself arbitrates a genuine race. The hermetic suite asserts all four against substrate. Substrate
agreeing is necessary and not sufficient — which is the reason that file exists, and the reason it
should run.
It passing on first execution is good news and is also the point: nobody knew.
Proposed split, by what each tag needs
| Tag | Needs | Proposal |
|---|---|---|
integration |
AWS credentials | Scheduled + workflow_dispatch, OIDC role. Highest value — this is the conditional-write verification |
aws_s3 |
AWS_PROFILE + OBJECTFS_TEST_BUCKET, skips without |
Same job. Note it skips rather than fails without the bucket, so it must be asserted to have actually run |
e2e |
nothing evident — no Getenv, no credential check |
Should run on every PR. Investigate first; if it is hermetic there is no reason it is not already a required check |
distributed |
substrate, in-process | Should run on every PR. Hermetic |
fuse_mount |
/dev/fuse — which ubuntu-latest has |
Already #543 |
s3compat |
a MinIO/RGW/Wasabi endpoint | Scheduled, MinIO in a service container for the row that can be automated |
benchmark |
nothing | Already #568 |
e2e and distributed are the ones to be embarrassed about: if they are hermetic, they are free, and
they have been compiled-not-run for as long as the job has existed.
The gate that keeps it fixed
A per-tag list is an enumerated gate, so the same reasoning as #565 applies: a test should assert that
every tag appearing in a //go:build line in a _test.go file is executed by some workflow, not
merely vetted, with a non-vacuity floor on the number of tags discovered. Otherwise the eighth tag
someone adds joins the compile-only list silently.
Acceptance criteria
- Whether
e2eanddistributedare hermetic is established by running them; if so they become required checks - A scheduled job executes
integrationagainst real AWS via OIDC, and fails if zero tests ran -
aws_s3's skip-without-bucket path cannot be mistaken for a pass - A test asserts every build-tagged test suite is executed somewhere, not just vetted
- That test has a non-vacuity floor on the number of tags found
Activity
scttfrdmn commentedon Sep 30, 2026
Measured:
e2eanddistributedare hermetic, so two of the seven are freeThe first acceptance criterion is answered. Both tags pass with credentials denied outright, not
merely absent —
AWS_CONFIG_FILE=/dev/null,AWS_SHARED_CREDENTIALS_FILE=/dev/null,AWS_EC2_METADATA_DISABLED=true, andAWS_PROFILE/AWS_REGION/ the key variables unset withenv -u:Denying rather than unsetting matters here: an unset
AWS_PROFILEstill lets the SDK fall through to~/.aws/credentialsand then to instance metadata, so a suite that quietly used ambient credentialswould still have passed. Pointing both credential files at
/dev/nulland disabling the metadataendpoint removes every fallback, and the suites are green anyway. They genuinely need nothing but
substrate.
So these two should become required checks on every PR, and that is a small change — a job that
runs
go test -race -tags=<tag> ./..., nothing else. No secrets, no OIDC role, no scheduling question,no cost. They have been compiled-not-run for as long as
build-tagshas existed, and the reason isthat nobody checked whether they needed anything; per [[ubuntu-latest-has-dev-fuse]], an unprobed
assumption about what a test requires is the kind that removes its own contradiction.
Worth splitting this pair out of this issue and landing it first — it is the cheapest genuine increase
in what CI verifies that is currently available, and it does not depend on the credential and
scheduling design the
integration/aws_s3/s3compatrows need.Caveat on the numbers
This was measured on darwin. Per the per-package coverage lesson,
internal/fusecompiles differentfiles on linux, so "hermetic" is established here but "passes on
ubuntu-latest" is a separate claim —exactly the distinction #543 is careful about for
fuse_mount. Expect the CI job to be the thing thatconfirms it, and read its first run rather than assuming.
ci: run the hermetic e2e and distributed suites on every PR, and gate…
ci: run the s3compat suite against MinIO built from pinned source, on…
test(config): requiredChecks transcribes the three tagged-suite cells…
ci: run the integration and aws_s3 suites against real AWS, daily, vi…
test(aws_s3): round-trip files from the repository, not the developer…
scttfrdmn commentedon Oct 18, 2026
Verified complete. This was auto-closed by #616's merge (19:15 UTC) before its own acceptance criterion was met. The PR body said "Refs", but also said this issue "closes once" a run passed, and GitHub took that as a closing keyword. The first live run after that merge then failed
aws_s3on a skip, fixed in #617. This is the verification that should have closed it.All seven build tags now run somewhere;
benchmarkremains, deliberately, as #568.e2etagged-suite (e2e), every PRdistributedtagged-suite (distributed), every PRs3compattagged-suite (s3compat), every PR, MinIO built from pinned sourcefuse_mountfuse-mount, every PR, real mount (#543)integrationlive-aws.yml, daily + dispatch, real AWS via OIDCaws_s3live-aws.yml, samebenchmarkVerified on
main: dispatched run 39165959607 on108fbf60passed both cells.integrationpassed 11/11 under the narrow role, conditional-write checks included.aws_s3passed 12/12 subtests. Zero skips, and noobjectfs-live-*bucket left.Every suite was red on its first execution. None was a production bug; all were rot from never running:
e2easserted wording the code had improved past.distributedwaited on a consensus engine feat(cluster): make cluster.enabled actually start cluster coordination (#139) #401 made opt-in.aws_s3forced a profile that doesn't exist under OIDC, and skipped without a pre-made bucket.TestZSTDCompressionasserted the wrong direction. A compression-off reader must decode, and it now guards that.TestRealLocalDatauploaded files from the developer's~/Downloadsand~/srcto S3 (test(aws_s3): round-trip files from the repository, not the developer's home directory #617).Acceptance criteria:
e2eanddistributedshown hermetic by running them, and required (ci: run the hermetic e2e and distributed suites on every PR, and gate that every test tag is executed #596, test(config): requiredChecks transcribes the three tagged-suite cells, now required #615)integrationagainst real AWS via OIDC, and fails if zero tests ran (ci: run the integration and aws_s3 suites against real AWS, daily, via OIDC #616)aws_s3's skip path can't pass: it creates its own bucket, and any skip fails the job (ci: run the integration and aws_s3 suites against real AWS, daily, via OIDC #616, test(aws_s3): round-trip files from the repository, not the developer's home directory #617)TestEveryTestTagIsExecutedasserts every test-file tag is executed, not just vetted (ci: run the hermetic e2e and distributed suites on every PR, and gate that every test tag is executed #596)Access: role
objectfs-ci-live-s3, defined indeploy/aws/ci-live-s3/. Trust accepts onlyrepo:scttfrdmn/objectfs:ref:refs/heads/main; permissions are S3 onobjectfs-live-*only. The ARN is in secretAWS_LIVE_ROLE_ARN.docs(CLAUDE.md): AWS is the row that matters, and CI now keeps it ver…