Skip to content
Like what we’re building? Star on GitHub

Machine-dependent tests — annotate, measure, re-check ​

Record each machine-dependent failure: test, machine, evidence, disposition and re-check date. Keep assertions; a missing prerequisite means unverified, not green. Record rerun timing beside the first failure. Fix the class and prove a reverted fix fails. Fixtures own scratch directories, HOME, config and children; see hermetic gates.

Quarantine ​

A ticketed flake that keeps costing reruns leaves the gate: a row of scripts/ci/test-quarantine.tsv (package, test, open ticket) makes every gating go test skip it, and the nightly test-quarantine workflow runs only those tests, plain and under -race, red on a failure or a closed ticket. The fix removes the row. Keep the list small. On main, main-watch files the ticket and the row itself when a rerun passes every failed job; a skipped one is a regression (merge policy).

Register ​

Test / checkMachine classEvidence (log / SHA)DispositionRe-check
Huge tool values in the delegate run logLoaded ARC race runner#3412: 3.059 s against a 3 s ceilingCount bytes entering the real redactor for tool inputs and success/error results. Whole-value and skipped-redactor mutants fail. Proof boundary.2026-11-19, and on run-log redaction changes
TestFmtRefusesAFileASaveHoldsAndFormatsTheRestLoaded local train#3338: both free and held files refusedReal files and locks in virtual time; keep the 300 ms deadline and 10 s watchdog. Dropping the context or the free-file write fails. Proof boundary.2026-11-19, and on formatter lock changes
WebSocket unsubscribe/closeConcurrent cleanup#3013: 5/100 under raceCancel and join producers before cleanup. Evidence.Stream fixture changes
Native Kubernetes Pi Close witnessSupervisor receives group TERM before the host#2945: stop host, cancel, resume; Bubblewrap killed it before client cleanupSupervisor ignores TERM/INT; Go host handles them. Keep read-only mounts and parent-death cleanup. Scheduled witness passes; Pi SIGKILL mutant leaks the plugin.2026-11-12; fixture or cancellation changes
Real Pi smoke and RPC fixturesOperator agent directory contains extensions#3178: an installed ask_user extension conflicts with the test extension; ambient MCP policy also refuses callsrequirePiBinary owns both agent-directory overrides per scenario. TestPiBinaryFixtureOwnsAgentDirectories checks both precedence paths, cleanup and untouched operator files; the full real-binary family is replayed under two canary operator profiles whose extensions must remain unread, including a direct native session. No suite-wide override: environment-precedence tests require the variables absent.2026-11-11, and on Pi fixture changes
Background wrap-up takeLoaded hostProof and fixRead barrier; no deadline change2026-11-11
TestDetectResolvesNoKubectlUnderAPlantedPATHARC namespace mountT41 6cedc5599; audit/proofPin an owned absent namespace path; unpinning fails in a simulated pod.2026-11-10; detection changes
openapi:check:dryConcurrent worktrees#3037: a passing check restored another tree’s global /tmp backupsGenerate privately and compare with the index; never write or restore checkout files. Pipe-ordered worktrees and original symlink/hardlink witnesses preserve bytes and inode identity during generation and on failure/cancellation. Full gates still run singly.2026-11-11, and on generator changes
Background-session no-wait witnessesLoaded ARC runner; fake CLI startup counted in the session duration#3008: correct result at 1.509 s against 1.5 s; a startup-only delay reproduces it at 1.661 sTwelve no-wait ceilings become explicit-clock close/idle decisions while retaining the real CLI scenarios. Inventory and proof boundary; the fourteen duration-budget assertions remain separate.2026-11-10, and on background lifecycle decisions
TestConnectWaitsForABrokerThatIsNotUpYet, TestWaitForBrokerIsBounded… (pkg/queue/nats)Loaded ARC merge-group runnerrun 41687370688, #3010: calls = 1; 31 attempts, last an i/o timeoutCorrected, verified 2026-11-04: loop, Connect and store twin in synctest; Connect needs natsgo's verdict, timeouts past the attempt, exact budget. Mutants redden them2026-11-11
TestEngineRun_IsolatedSubbotSiblingsOverlapConcurrent isolated children registering worktrees in one repository#2670; an empty commondir in a pending registration reproduces Git's exact refusalRuntime setup, reconstruction and cleanup serialize their Git registry commands in-process, keyed by the physical common directory. A virtual-time witness holds an incomplete registration, checks main/linked/symlink spellings and an independent repository, then releases it; removing the gate or making it global fails it. The three-child overlap witness is unchanged.2026-11-04, and on runtime worktree lifecycle changes
TestRunSpreadCoverageStrictCheck/a_Forbidden_plus_an_expired_deadline_still_names_the_RoleLoaded ARC test-unit runner; shell startup races a 200 ms probe#2571, PR runspreadCoverageFailureCause decides from the explicit cluster and probe errors; the witness stages both, other rows keep real kubectl shims (Forbidden, timeout, node coverage). Reversing the precedence or dropping the probe error at the caller fails it. Budget and Loki cases already repaired by 20e4aeb4c, 5ee792110; ARC tracked in #2564.2026-11-04, and on doctor diagnostic changes
TestShutdown_DrainDoesNotLeakAgainstASerializingTrackerLoaded ARC merge-queue runner under -race#2072, merge-group failure: 1/32 claims leaked despite the deadline-bucket assertionVirtual time drives the serial tracker; the native store's kernel watcher stays outside the bubble. Refresh and release must each enter with their whole budget, every call must have a deadline, and all 32 real cards must return to Ready unclaimed. Moving the revert budget before admission, dropping its bound, or skipping release fails it.2026-11-04, and on drain budget changes
TestBackground_NoWrapUpInsideATurnTheCLIStartedLoaded ARC merge-queue runner; fake CLI and stream reader scheduled independently#2745 merge-group failure, commit b7f7f0ca8; a local 800ms reader delay reproduces itCorrected, verified 2026-10-27: keeping the CLI round trip, the explicit-clock lifecycle fixture tests the expired timer before and after assistant text and at the turn's close; removing either in-turn guard fails it. Ten race repetitions and the delayed-reader scenario pass.2026-11-03, and on lifecycle timer changes
internal/ciguard's script guards — every helper that hands a script path to a child shellAny machine with a warm GOCACHE, including a CI job that restored oneMeasured 2026-10-29 mutating scripts/ci/baked-actions-manifest.sh for #2435: two mutants deleting a generator rule came back ok (cached)go test caches on the files the TEST process opened, not a script a child shell reads: every such helper reads it through scriptUnderTest (refusing an empty one) before exec.Command, and both mutants then redden on their own subtests with a warm cache. -count=1 hides the class for one run only2026-11-05, and whenever a new guard shells out
🧪 Tests workflow, queued jobsSaturated ARC runner poolOperator observation, #2585 mission: runs queued for hours; no run URLInfrastructure delay, no test verdict. On recurrence attach run URL, SHA, queued/start times and runner class; measure queue wait apart from execution (queue runbook). Missing/cancelled jobs never count as passing.2026-10-31, and at the next landing
Mongo conformance deadlineSlow ARC runnerCancelled at 15 minStore harness isolated; job budget 55 min. Evidence.Next cancellation
Lease idle, handover and backoff (pkg/lease, pkg/server)Loaded ARC runner#2854, #3060, #3400Six scenarios use synctest; renewal, voluntary handover, refusal and retry remain asserted. Inventory and evidence.2026-11-19, and on lease timers
Mongo replay/watch boundaryProducer unfinished at deadline#3060: 29 delivered, only 29 persistedReal command replies force gap and overlap; a live marker ends the assertion. Proof boundary.2026-11-11
Broken-list lookup and splices (pkg/dsl/parser)Loaded ARC race shard#2858, #3060Lookup and splices count operations, not time (#3731); rescan mutants, recopies through Lexer.splice's counted branch and splices that bypass Lexer.splice fail; a recopy in its uncounted branches and direct token-slice lookbacks are not covered. Scope and history.2026-11-11
Ingress pre-proof bucketsLoaded race shard#3413Two exhaustion witnesses freeze the limiter clock; +1 ms/request makes both red. Limits and isolation stay asserted.2026-11-20; limiter changes
signOutMachineTransitions (studio)Any machine#3160Timer-ordered parker; retry removal fails. Full evidence.2026-11-19, and on the ladder’s cadence
Fan-out deadlineLoaded host#3013: 2.2 s setup reproduces the flakeVirtual time preserves the 2 s deadline and 25 ms grace. Evidence.Fan-out lifecycle changes
TestRound2HeldIntentDoesNotRerunConsumedGuard (pkg/cloudsched)Any machine in the minute before a daily cron slotCI run 42191154907: launches=1 guard executions=2; a time.Now() base lets the second tick's +1m step cross the 09:00 instant and correctly fire the NEW slotTest-harness artifact, ticker correct per-slot: the base is pinned a day off the next slot, guard executions are counted per slot (the invariant under test) and a second materialized slot fails loudly. Mutating the consumption write or the prepared-retry guard blanking reddens it on its own assertion2026-11-13, and on cron ticker changes

Loaded-runner bounds re-priced by ratio or an explicit margin: load-margins.

Process capture, scan, socket-reservation, checkout-root and installed-binary witnesses: process fixtures.