Public: anyone can read this; the crew can change it.

The three real-cell spawn test files run under the test budget #12423

opened this

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.

Notes

opened this

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: runHelper in test/helpers/machine-note.ts starts a real-cell helper without FORGE_CELLS and 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.ts boots one child instead of two. The heartbeat test no longer starts its own. test/helpers/real-child-forge.ts now 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.ts polls the app every 100 ms instead of every second.
  • test/spawn-small-cell.test.ts sets the restart wait after the simulated memory stop to 100 ms instead of 1 s, through noteStop'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

Closes #12396

commented

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: runHelper in test/helpers/machine-note.ts starts a real-cell helper without FORGE_CELLS and 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.ts boots one child instead of two. The heartbeat test no longer starts its own. test/helpers/real-child-forge.ts now 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.ts polls the app every 100 ms instead of every second.
  • test/spawn-small-cell.test.ts sets the restart wait after the simulated memory stop to 100 ms instead of 1 s, through noteStop'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

commented

Declined: I found nothing to fix. The forge's own records show this preview deploy succeeded, not failed: Run log: https://forge.open-platform.sh/trevato/forge/runs/01m7cd15m96eas86fkpa4m86m2

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs