Repository navigation
fix(ci): approval-text megabyte test gets hosted-runner time - #598
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Thermo-nuclear code-quality review of commit 5e7dfc51a036873f9c6551f9ac36bc7794ddfd19 (base 2a1080cf54).
No major structural issues. The approach is the right size. It raises one test's timeout inside a fence, uses the lint-disable reason the imageCompression.test.ts carrier already set as precedent, and adds the file to ci-runners in the manifest. It touches no product code. A one-hunk fence is cheaper than any change inside approvalTextParts, and the cost really is upstream's to fix. Neither file gets close to the 1k-line threshold, and no new abstractions or branches are added.
There are two accuracy problems in the record this PR writes, plus one wording nit:
-
The manifest's "three of three CI runs" isn't true (inline). On
customat2a1080cf54(run 46285604139), this test passed in 2426 ms. Ate017950b3b(run 46284015525) it failed at 7908 ms. The test isn't failing every time; it lands on either side of the 5 s default. The timeout raise is still justified, and 30 s leaves about 4× headroom over the slowest run seen. Butcustomizations.yamlis a durable record, so it shouldn't carry a wrong tally. Run tallies also go stale (see the CLAUDE.md docs rules), so I'd drop the tally and say what holds: hosted runners take roughly 2.5–8 s against a 5 s default. -
This PR won't turn
customgreen by itself. The latestcustomfailure (run 46285604139, job "Test Web 2") isSidebar.browser.test.tsx › sidebar thread menu on a phone › closes the sheet when Add project opens the picker, as New thread does(15.1 s timeout). It is not this test. The body's "every PR into it hits the same failure" overstates what this fixes. Please reword it so nobody merges this expecting green CI. -
Nit (inline): "passes the 5 s default" can be read as "the test passes". "Runs past" is unambiguous.
No approval from automation. Once (1) and (2) are fixed, nothing in this change should block it.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code review — 5e7dfc51a0
The fix is correct and fits the ci-runners pattern: the fence markers, the lint-disable reason and the watch entry match the imageCompression.test.ts carrier. In the failing custom run (e017950, job 141412417757) the test took 7.9 s, so a 30 s timeout leaves about 4× headroom. I found no correctness issues, only the two wording nits below.
Context, not a code finding: in the CI run for this PR's base, custom at 2a1080c (run 46285604139), the Test job passed, and this test took 2.4 s there. That run went red because of Sidebar.browser.test.tsx › "closes the sheet when Add project opens the picker, as New thread does" (Test Web 2). So this test fails some of the time, not every time, and merging this PR alone won't turn custom green.
Nits
.fork/customizations.yaml:212: "past 5 s on hosted runners in three of three CI runs" doesn't hold up. The base commit's own run finished it in 2.4 s. Something like "2.4–7.9 s on hosted runners, past 5 s in most runs (2026-11-29)" would stay accurate. The intent text above also says these carriers "fail deterministically", which doesn't fit this one.threadRequests.test.ts:926: "passes the 5 s default" can be read as "succeeds within 5 s", the opposite of what's meant. "exceeds" or "runs past" is clearer.
Reviewed at 5e7dfc5 by Claude Opus 5.5 (claude-opus-5-5) via Claude Code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since the upstream sync (#591), one upstream test has been timing out in CI on
customand on PRs into it:packages/client-runtime/src/state/threadRequests.test.ts› "splits a megabyte of approval text the same way as a short one" (upstream pingdotgg#43049).customat e017950 (7.9 s) and feat(web): a finished turn's fold row names what the turn did #595 twice. It passed oncustomat 2a1080c (2.4 s).The fix follows the existing
ci-runnersprecedent inimageCompression.test.ts: this one test gets a 30 s timeout inside a fork fence, with the lint-disable reason..fork/customizations.yaml#ci-runnerslists it as a second carrier and adds the file towatch. No product code changes. Speeding upapprovalTextPartsitself stays upstream's job.Checks:
vp run check:changedpasses, the test file passes locally (27 tests), and the fork lint ratchet passes.Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved
🤖 Signed: Claude Opus 5.5 (
claude-opus-5-5) via Claude Codegpt-6.1-sol, high effort) via Codex: sol-loop review, 1 round, no findings🤖 Generated with Claude Code