oficina / equipo Public

CI: wait for the signed-out home; go test timeout above budgets

A5 failed twice on the loaded runner: the instance shows a connection
signed out from the runner's hello once the binding is dropped, a
moment before the home is deleted, and the test looked at once. It now
waits for the home, as the cancel case beside it does. make test passes
-timeout 15m, above internal/headless's 720s budget, so a slow loaded
run is judged by the budget rather than go test's 10-minute panic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 1114eead58a5ba4f2c0e6c0c34d46b465b7533e8 parent 05c5e14
3 files changed, +18 −1
  • Makefile +4 −1
  • docs/superpowers/plans/DARWIN-PROGRESS.md +6 −0
  • internal/headless/connections_test.go +8 −0

CI failed — run details

diff --git a/Makefile b/Makefile
index 652828b1..1ebee7d2 100644
--- a/Makefile
+++ b/Makefile
@@ -73,8 +73,11 @@ budget:
# TestMain, cached runs included. Timing fails only on CI (AMADAN_CI or
# CI set); here it reports.
# TestCIGateSteps executes CI scripts, so cached test results are insufficient.
+# go test's own 10-minute limit is set above the longest package budget
+# (internal/headless, 720s), so on a loaded runner the budget, not a
+# panic, says which package is slow.
test:
- $(RASTRILLO) budget test -tags testbuild -count=1 ./...
+ $(RASTRILLO) budget test -tags testbuild -count=1 -timeout 15m ./...
# The perf lane: every GET screen at 150ms to first byte, cold boot at
# 500ms. Serial (-p 1 -parallel 1) and uncached (-count=1), because a
diff --git a/docs/superpowers/plans/DARWIN-PROGRESS.md b/docs/superpowers/plans/DARWIN-PROGRESS.md
index f5587ce1..2e30b861 100644
--- a/docs/superpowers/plans/DARWIN-PROGRESS.md
+++ b/docs/superpowers/plans/DARWIN-PROGRESS.md
@@ -166,6 +166,12 @@ ripgrep on macOS, the self-update swap under launchd.
(`TestContractChecksPlacedOnTheWorker`).
- Sandbox violations are not tailed from `log stream` (§4.5); P2 does
not read the unified log for the Mach services xcodebuild was denied.
+- CI under load: A5 (headless connections) saw "signed out" while the
+ Codex home was still being deleted (the instance infers signed out
+ from the hello the runner sends once the binding is dropped); the test
+ now waits for the home. `make test` passes `-timeout 15m` so the
+ headless package's 720s budget, not go test's 10-minute panic, judges
+ it on a loaded runner.
- Tool discovery skips `npm root -g` and a login shell's PATH.
- An srt pin change needs the installer run again; self-update swaps
only the runner.
diff --git a/internal/headless/connections_test.go b/internal/headless/connections_test.go
index ca38d769..20916d9c 100644
--- a/internal/headless/connections_test.go
+++ b/internal/headless/connections_test.go
@@ -770,6 +770,14 @@ func connCancelAndSignOut(t *testing.T, env *Env, inst *thintest.Instance, r *lo
t.Fatal(err)
}
s.wait(t, "signed out", time.Minute, func(cv *thintest.Conversation) bool { return cv.Connections[c2.ID].State == wire.ConnSignedOut })
+ // The instance shows signed out as soon as a hello no longer holds the
+ // connection, which the runner sends once the binding is dropped and
+ // a moment before the home is deleted; on a loaded machine that
+ // moment is visible, so wait for the home as for the cancel above.
+ deadline = time.Now().Add(30 * time.Second)
+ for (r.hasBinding(t, "codex") || len(r.codexHomes()) > 0) && time.Now().Before(deadline) {
+ time.Sleep(200 * time.Millisecond)
+ }
if r.hasBinding(t, "codex") || len(r.codexHomes()) > 0 {
t.Fatal("signed out, but the binding or home stayed")
}