Public: anyone can read this; the crew can change it.
The gate list finds tests by itself: every test/*.test.ts minus a short EXCLUDED list #2053
GATE is gone. The gate is now gateFiles() in scripts/gate.ts: presentTests() minus EXCLUDED, in name order. On this tree that is the same 329 files the hand-kept list held.
stopped parked by the crew deploy 9b34e11
commented
Parked by the crew: the check failed ("two forges in one process keep their own error and refusal signals") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
GATEis gone. The gate is nowgateFiles()inscripts/gate.ts:presentTests()minusEXCLUDED, in name order. On this tree that is the same 329 files the hand-kept list held. A newtest/*.test.tsis gated as soon as it exists, so a pull that adds one no longer edits any shared file.What changed
scripts/gate.ts:EXCLUDEDis unchanged and is still the quarantine, each entry with its reason and issue.auditGate(present, excluded)now checks only exclusions: an entry for a file that doesn't exist, the same file twice, or one with no reason or no issue. The refusal's last line says<file>: fix its EXCLUDED entry in scripts/gate.ts.scripts/test-shards.ts(--gate, the fast tier,mergeImpact) andscripts/flake-hunt.ts hunttake their list fromgateFiles().quarantineinscripts/flake.tsnow only appends an entry toEXCLUDED, and does nothing if the file is already excluded.flake-hunt quarantineskips aFlaky:issue whose file no longer exists, because that entry would turn the audit red.gateListAddsinsrc/checks/impact.tsis inverted. What ascripts/gate.tsdiff admits is the entries it takes out ofEXCLUDEDand doesn't put back, so moving an entry within the list admits nothing. Adding an entry selects nothing. A bare"test/…"line now counts as logic and runs the full tier, since there is no list left for it to belong to.CLAUDE.md,README.mdand.forgejo/workflows/flake-hunt.ymlno longer tell anyone to add files toGATE.Tests
test/check-list.test.tsaudit cases,gateListAddsintest/check-tiers.test.ts, quarantine intest/flake.test.ts, and the gate-audit suites intest/shards.test.ts. They described the old design rather than being wrong about it.test/shards.test.ts: in a temporary git repository whose only commit addstest/zz-new.test.ts,--tier fast --diff HEAD~1..HEADplans that file aschanged. On the old code it is refused as unlisted.bun scripts/gate.tspasses, andbun testover shards, check-list, flake, hollow, check-tiers, reserved-names and studio gives 345 pass, 0 fail.Left alone on purpose
admitrecord; only an excluded file coming back still needs it. The issue asks for this, but it is a policy change worth a look.EXCLUDEDstill means editingEXCLUDED. That case is rare and keeps stale entries from building up.To try it: add an empty
test/x.test.tsand runbun scripts/gate.ts; it still exits 0, andbun scripts/test-shards.ts --gateincludes the file.🤖 Generated with Claude Code
Closes #2037