Repository navigation
Description
go vet ./... — what CI runs — builds only the untagged configuration. Every file behind a build tag is therefore unverified, and the tags in this repo are not a small set:
| tag | files | go vet -tags=<tag> ./... |
|---|---|---|
posix |
tests/posix_test.go |
MockBackend redeclared in this block — #197 |
aws_s3 |
tests/aws_s3_test.go |
not enough arguments in call to s.backend.PutObject |
benchmark |
test/benchmarks/cache_test.go |
undefined: fmt.Itoa |
integration |
tests/integration/{localstack_test.go,mocks.go} |
not enough arguments in call to s.backend.PutObject |
distributed |
tests/distributed_test.go |
clean |
e2e |
tests/e2e_test.go |
clean |
The two PutObject failures are the same breakage: the method gained a map[string]string metadata parameter and these call sites were never updated, because nothing builds them. fmt.Itoa has never existed — that file has not compiled since it was written.
The gate is the actual fix. Repairing four files leaves the mechanism that let them rot. Add a matrix step that runs go vet once per tag, so a tagged file that stops compiling fails a PR the way an untagged one does. Vet rather than test: several of these suites need credentials or an endpoint and correctly skip without one, but compiling them needs nothing.
Per-file resolution, which is not uniform:
aws_s3— fix and keep. This is the real-AWS suiteCLAUDE.mdasks for (AWS_PROFILE=aws AWS_REGION=us-west-2), and it skips cleanly withoutOBJECTFS_TEST_BUCKET.benchmark—fmt.Itoa→strconv.Itoa. Mechanical.integration— delete, don't repair. It is a LocalStack suite, andCLAUDE.mdsays integration tests hit real AWS with no LocalStack; nothing sets theAWS_ENDPOINT_URLit requires, so it has never run even when it compiled. Its companionmocks.goasserts only thatpkg/optimization's interfaces are satisfied by mocks written for that assertion — andpkg/optimizationhas zero importers outside these two files, so the whole tag tests that a dead package's interfaces are self-consistent. What it was for is now covered byinternal/testaws(a real S3 endpoint in-process) andinternal/difftest.posix— tests: posix_test.go has never compiled — MockBackend redeclared under -tags=posix #197 already asks the prior question: whether the tag should exist at all, giveninternal/difftestsuperseded it. Resolve there; this issue's gate is what keeps the answer honest either way.
Verification: go vet -tags=<tag> ./... clean for every tag that survives, each in its own CI matrix cell, and a deliberately-broken tagged file fails the PR.
Activity
feat: the FUSE options a config file names reach the kernel (#180) (#261
scttfrdmn commentedon Aug 3, 2026
Concrete evidence from #206, since this issue was filed on inspection rather than on an incident.
Adding gossip authentication required a new required field on
distributed.ClusterConfig, so everyconstruction of that type had to be updated.
internal/distributedand the rest of./...caughttheir own call sites immediately.
tests/distributed_test.godid not, because no CI job compiles-tags=distributed— I only found its eight call sites by grepping for the type by hand, and thefirst attempt at fixing them produced code that did not compile at all (a helper referenced before it
existed, and one call site inside a
*testing.Bpassing atthat does not exist there). None ofthat would have been visible on a pull request.
Compiling it also surfaced a real defect that has been sitting in that file unobserved: the suite
fails, and has been failing, with output that contradicts itself in the same run —
Ten operations failed and the statistics say ten succeeded. Filed as #269. That is a metrics defect
in
internal/distributed, not a test-only problem, and the only reason it went unnoticed is thatnothing runs this tag.
So the "three of them are broken" in the title is now four, and the cost is not hypothetical: a build
tag nothing compiles is a place where both compile errors and genuine defects accumulate silently. A
go vet -tags=...matrix would be cheap and would have caught the compile break; actually running thesuites would have caught #269.
feat: authenticate gossip messages, and refuse to start without a sec…
scttfrdmn commentedon Aug 3, 2026
New evidence for this, and a refinement to the proposed gate.
-tags=distributedis listed above as vetting clean, and it does. It was nonetheless hiding six defects — #269, #272, #275, #277, #278, plus two tests asserting against their own misconfiguration — all now fixed in #279. Three of its tests had been failing for an unknown length of time with nobody watching.So
go vetper tag is necessary but not sufficient. Four of those six were data races on the membership maps: they compile fine, they vet fine, and they are invisible without actually running the suite under-race. Two others were tests that passed their own assertions while asserting the wrong thing —TestMultiNodeClusterset noSeedNodesand so measured three isolated clusters of one, logging "Node i sees 1 nodes in cluster" three times as if that were the expected result.Vet-only would have kept this issue closed and the defects live.
Suggested amendment: for the tags whose suites need nothing external, run them rather than only vetting them.
distributedis the clear case — it binds only to127.0.0.1and needs no credentials, no bucket, and no endpoint, and the full suite completes in ~18s under-racelocally.e2eis worth checking for the same property.So the matrix becomes two kinds of cell:
aws_s3), where compiling is all CI can do for free.go test -count=1 -race— tags that are self-contained (distributed, ande2eif it is), where the compile check is the cheap part of what is available.distributedis green under-raceas of #279 for the first time, so a gate added now starts from a passing baseline rather than needing the suite repaired first — which is the cheapest this will ever be to turn on.fix: a three-node cluster forms, elects one leader, and does it race-…
scttfrdmn commentedon Aug 4, 2026
Fixed in #351.
The gap, measured on that branch. Injecting a type error into
tests/e2e_test.go— one of the two tags this issue lists as clean — gives:go build ./...go vet ./...go test ./tests/okgo vet -tags=e2e ./...That is the whole issue in four lines, and it is worth having the number rather than the argument: a broken tagged file is not merely untested, it is invisible to every command CI ran.
Per-file, following this issue's guidance.
aws_s3fixed and kept — tenPutObjectcall sites, not the one at :139;nilfor the metadata map, whichpkg/types/interfaces.go:14documents as valid and which this suite asserts nothing about.benchmarkfixed —fmt.Itoa→strconv.Itoa.integrationdeleted, and the zero-importer claim aboutpkg/optimizationverified before acting on it (grep -rln pkg/optimizationreturned exactly those two files), so the package went too — 284 lines of interfaces whose sole consumer tested their self-consistency.posixresolved in #197 as superseded.Two more broken things fell out, both in the same family and neither in the table above. The
integration-ready-checkpre-commit hook rango test -tags=integration ./tests/...wheneverAWS_ENDPOINT_URLwas set, inferring LocalStack from an environment variable that means nothing of the kind — so the one place that did build this tag was gated on a condition no developer meets. Andmake test-integrationrango test -tags=integration ./test/integration/...: that directory has never existed, so the target failed withlstat ./test/integration/: no such file or directoryfor as long as git records it. Both removed. Theintegrationtag survives — it marks real-AWS tests ininternal/awsratesandinternal/storage/s3.A seventh tag this issue's table omits:
fuse_mount. It was the one already handled correctly (ci.yml:58-59,Makefile:316), and its bespoke step folds into the new matrix rather than staying special — six cells:aws_s3,benchmark,distributed,e2e,integration,fuse_mount. Vet not test, for the reason this issue gives.The gate needed a gate. A hand-maintained list of tags in a workflow file is exactly the kind of thing that goes stale, which is the defect this issue is about — so the list is checked against the tree.
TestEveryBuildTagIsGatedwalks every//go:buildline, strips the boolean operators ((linux || darwin) && fuse_mountis a real line here), discards the tags the toolchain selects on its own, and fails naming the file.TestGatedTagsStillExistis the converse and is deliberately not symmetric: a cell for a deleted tag does not fail, it passes, becausego vet -tags=gone ./...selects no files and reports success. A green cell named after a suite that no longer exists is worse than a red one, so that is a failure too — and it is what keeps #197's answer honest in the direction this issue predicted.Verification, in the form this issue asks for ("a deliberately-broken tagged file fails the PR") plus four more: dropping
e2efrom the matrix, adding a cell for the now-deletedposix, adding a new//go:build sekritfile, and restoring the originalfmt.Itoadefect each produce the intended failure. All six tags vet clean; fullgo test -racegreen.chore: a docs path that never existed, and four duplicate link defini…
chore: a docs path that never existed, and four duplicate link defini…
chore: a docs path that never existed, and four duplicate link defini…
fix(docs): the Not-implemented table and its refusals cite open issue…