Repository navigation
test(opencode-first-message): wait for the Enter by reading the stand-in's log - #3840
Conversation
…-in's log, not by fs.watch
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
One reviewer: test-only. No findings left open. |
Summary
server/opencode-first-message.contract.test.tsfailed at line 157 on #3835's run 43574013739 with:no Enter after the message: "\u001b[200~@effect apply it\u001b[201~\r"The log it printed at the timeout already ends in the Enter. The test waited for it with
fs.watchon the test's folder, which can miss the stand-in's last append; the check made right after the watch started does not help with a write that comes later. It is the same miss #3837 fixes inpending-input.contract.test.ts.The test now reads the stand-in's log until it ends in
\r, with the same 5 s limit and the same message when it does not. The unusedwatchimport goes.Validation
HERDR_TEST_MODE=integration bun test ./server/opencode-first-message.contract.test.tspasses 6 of 6 in 3 of 3 runs, at load averages of 84, 77 and 56.bun run check fastpasses, on main 6c64181.