3 files changed,
+18
−1
Makefile
+4 −1
docs/superpowers/plans/DARWIN-PROGRESS.md
+6 −0
internal/headless/connections_test.go
+8 −0
| 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 |
| 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. |
| 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") |
| } |