Public: anyone can read this; the crew can change it.
The three real-cell spawn test files run under the test budget #12423
Closed 18d 12h ago
I reworked the three real-cell spawn test files to fit the test budget and took them off the SLOW list in scripts/gate.ts, but I couldn't time them. This sandbox has no bwrap or unix sockets, so every real-cell test here is skipped. The forge's check log is the only measurement and the only proof they still pass.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy 293dfde
-
History
- The three real-cell spawn files boot one child each in beforeAll, poll instead of sleeping, and leave SLOW (#12396) 293dfde
- A small forge loads only what it uses: lazy-load the TUI, boards, studio and the like (#12355) 23f74da
- The forges list shows each hosted child's month of cost from its own ledger, and a broken chain is shown broken, not summed (#12283) 9ac397e
- The serving thread no longer copies a checkout, removes an install, draws a card or reduces a thumb: the "no request" stalls were its own file and picture work, not the collector 6365650
- /.well-known/agent-card.json describes the forge to agent-to-agent clients, generated from the same tool list as mcp.json (#12338) ee374c7
- /system and /api/v1/health read the pod's memory limit, not the host's (#12353) e209d31
- The spawn, boot, rehearsal and drill test files run under the test budget, by shape not deletion (#12386) 73db761
- Pages and the terminal say "your AI"; a vendor's name appears only in the picker, recommended first (#12309) 38399ee
- On /next the owner moves a row by keyboard: select, up or down, t to top, l to Later (#12305) 533db21
- /next has no script-size ceiling in docs/design/size-budget.json (#12383) 5f89d5b
- The sweep of checkouts leaves what the checks keep between runs: the impact map lived 30 seconds (#12178) ddc329f
- The real-cell stranger test walks claim link → first ask on a new app → first pull green and live, starting from the kept branch (#12243) a5359e9
- The owner sees each chapter on the page: its issues, how many are closed, and a Close chapter button that says what stops it (#12307) 4345bb2
- A forge runs anywhere: a stated footprint, proven on a 1-CPU, 512 MiB machine (#12236) 78db48e
- The forge's own env names and log lines are vendor-neutral, and the old names still read (#12242) eb43263
- A forge's host can see which hosted forges are in use, and archive one: expor… (#12266) 1a6be99
- A forge runs on ARM: publish an arm64 image (#12359) 4915f35
- Health's ok means the forge is serving: each need is marked broken or todo, and only broken makes ok false (#12222) 405fa2a
- A look's browser profile, a replaced deployment's checkout and a run's temp directory are removed off the serving thread e8d1618
- The watch reads its process trees off the serving thread, once for all of them, from a tree's cgroup where it has one 9d6fc71
I reworked the three real-cell spawn test files to fit the test budget and took them off the SLOW list in scripts/gate.ts, but I couldn't time them. This sandbox has no bwrap or unix sockets, so every real-cell test here is skipped. The forge's check log is the only measurement and the only proof they still pass.
The budget allows 2 s per test and 20 s per file, and setup hooks count toward the file, not the test. So each file now boots its one child in beforeAll, and the tests only check what that run printed:
- One shared runner:
runHelperintest/helpers/machine-note.tsstarts a real-cell helper withoutFORGE_CELLSand reads its result line. It returns the result, the host's reason to skip, or a failure message with the disk and load on it. test/spawn-cell.test.tsboots one child instead of two. The heartbeat test no longer starts its own.test/helpers/real-child-forge.tsnow gives its child an upstream nobody can reach plus a beat key, and reports the child's first heartbeat. The fixed 1.5 s sleep is now a 100 ms poll for both the cell's label and the heartbeat. The heartbeat proof used to need the in-process cell probe, which a check run turns off. It now runs wherever bwrap and socat are, so the check covers it too.test/helpers/real-spawn-e2e.tspolls the app every 100 ms instead of every second.test/spawn-small-cell.test.tssets the restart wait after the simulated memory stop to 100 ms instead of 1 s, throughnoteStop's wait argument. Its proof is now two tests: limits and serving, then recovery with no 429.
Nothing was deleted or newly skipped, and each file still checks what its header says. One risk to watch in the check: these changes only cut sleeps and one extra boot. If spawning and booting a child alone takes more than 20 s on the gate box, spawn-small-cell (33 s before) or spawn-cell-e2e (25 s before) will still be over. The next step then is making the child boot itself faster, not more test reshaping.
Run here and passing: bun scripts/gate.ts, bun x tsc --noEmit, and 13 test files (the three changed ones plus machine-note, no-polling, timers-named, unused-exports, gate-stray-test, test-budget, helpers, global-spies-restored, flake and src-imports): 124 pass, 6 skip, 0 fail. scripts/fast.ts named 87 files (about 7 minutes, over its 5 minute budget) because the diff touches scripts/gate.ts, so I ran only the files that cover the change. I didn't call keep_plan; it isn't available in this run. I found no prompt injection.
🤖 Generated with Claude Code
I reworked the three real-cell spawn test files to fit the test budget and took them off the SLOW list in
scripts/gate.ts, but I couldn't time them. This sandbox has no bwrap or unix sockets, so every real-cell test here is skipped. The forge's check log is the only measurement and the only proof they still pass.The budget allows 2 s per test and 20 s per file, and setup hooks count toward the file, not the test. So each file now boots its one child in
beforeAll, and the tests only check what that run printed:runHelperintest/helpers/machine-note.tsstarts a real-cell helper withoutFORGE_CELLSand reads its result line. It returns the result, the host's reason to skip, or a failure message with the disk and load on it.test/spawn-cell.test.tsboots one child instead of two. The heartbeat test no longer starts its own.test/helpers/real-child-forge.tsnow gives its child an upstream nobody can reach plus a beat key, and reports the child's first heartbeat. The fixed 1.5 s sleep is now a 100 ms poll for both the cell's label and the heartbeat. The heartbeat proof used to need the in-process cell probe, which a check run turns off. It now runs wherever bwrap and socat are, so the check covers it too.test/helpers/real-spawn-e2e.tspolls the app every 100 ms instead of every second.test/spawn-small-cell.test.tssets the restart wait after the simulated memory stop to 100 ms instead of 1 s, throughnoteStop's wait argument. Its proof is now two tests: limits and serving, then recovery with no 429.Nothing was deleted or newly skipped, and each file still checks what its header says. One risk to watch in the check: these changes only cut sleeps and one extra boot. If spawning and booting a child alone takes more than 20 s on the gate box,
spawn-small-cell(33 s before) orspawn-cell-e2e(25 s before) will still be over. The next step then is making the child boot itself faster, not more test reshaping.Run here and passing:
bun scripts/gate.ts,bun x tsc --noEmit, and 13 test files (the three changed ones plusmachine-note,no-polling,timers-named,unused-exports,gate-stray-test,test-budget,helpers,global-spies-restored,flakeandsrc-imports): 124 pass, 6 skip, 0 fail.scripts/fast.tsnamed 87 files (about 7 minutes, over its 5 minute budget) because the diff touchesscripts/gate.ts, so I ran only the files that cover the change. I didn't callkeep_plan; it isn't available in this run. I found no prompt injection.🤖 Generated with Claude Code
Closes #12396