Repository navigation
Conversation
…anager monitor tests Twenty-nine monitor tests waited with a loop of a fixed number of 25 to 50 ms tries, so the wait ended after 1.5 to 6 s whatever the host did. They wait on the condition with a 20 s deadline. The tests that expect a failure retirement used scripts that exit after 5 to 10 s and now live 60 s, since a process that exits retires the monitor as completed. Two tests whose script exited on a timer (a filtered read, two retained batches) wait for a gate file instead. Limits sit above the sum of each test's waits.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🟢 e2e stories (Haiku): 14 passed22 agent steps · 7 replayed from cache · 15 model calls · 47.1k tokens (27% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 25s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 7.9k tokens (33% cached) All 3 tests in 3 files
e2e 0.20.0 · 25.5s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 7.9s · 2 targets (web, phone) · run artifacts |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Summary
30 tests in
backgroundProcessManager.test.tsstill waited with a loop of a fixed number of short tries (34 loops, 25 to 50 ms each), so each wait ended after 1.5 to 6 s whatever the host did. They now wait on the condition with a 20 s deadline (waitForCondition, as #8081 did for other tests). A verifier of #8081 named these tests as the leftover.Changes
Test file only:
src/node/services/backgroundProcessManager.test.ts.waitForCondition(..., MONITOR_WAIT)sleep 0.5) and "acknowledging one flush preserves only later retained batches" (BATCH_B was printed aftersleep 0.5)I did not change these:
readAllPages,readEverything,drainAndRebuild) and two loops that call a function four times. They are not waits.Validation
Slow host, simulated. I added
await Bun.sleep(1_500)right after the spawn in the two gate tests and ran each version once:maintoEqual)The old script exits 0.5 s after it starts, so a delay before the first read lets the exit flush the match first. The gate file removes that race.
Limits.
check-limits.py(below) checks 70 tests that callreadExitCodeWhenWritten,waitForConditionorwaitForMonitorMatch. It reports 0 tests with a limit below their waits plus 10 s.backgroundProcessManager.test.tspasses 171 of 171 tests on this branch.make typecheck,make static-check,make lint-eslint,make dry-checkandmake crap-checkpass.I ran no stress copies (the host's memory cap bans them), so I have no pass-rate numbers under load for these tests.
check-limits.py
Run it from the repo root (
python3 check-limits.py). It exits 1 and lists the tests below their waits.Risks
Test-only. A higher deadline can turn a slow pass into a pass, and a hang still fails at the test's limit with its own assertion. The 12 longer-lived processes rely on
afterEachto stop them, as the sibling tests withsleep 30already do.Generated with
xum• Model:anthropic:claude-sonnet-5-5• Thinking:xhigh• Cost:$56.89