Skip to content

fix(ci): approval-text megabyte test gets hosted-runner time - #598

Merged
NoahHendrickson merged 2 commits into
customfrom
t3/fork-ci-approval-text-timeout
Nov 29, 2026
Merged

NoahHendrickson merged 2 commits into
customfrom
t3/fork-ci-approval-text-timeout

Conversation

@NoahHendrickson

@NoahHendrickson NoahHendrickson commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Since the upstream sync (#591), one upstream test has been timing out in CI on custom and 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).

The fix follows the existing ci-runners precedent in imageCompression.test.ts: this one test gets a 30 s timeout inside a fork fence, with the lint-disable reason. .fork/customizations.yaml#ci-runners lists it as a second carrier and adds the file to watch. No product code changes. Speeding up approvalTextParts itself stays upstream's job.

Checks: vp run check:changed passes, 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 Code

  • GPT-6.1 Sol (gpt-6.1-sol, high effort) via Codex: sol-loop review, 1 round, no findings

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S labels Nov 29, 2026

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. The manifest's "three of three CI runs" isn't true (inline). On custom at 2a1080cf54 (run 46285604139), this test passed in 2426 ms. At e017950b3b (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. But customizations.yaml is 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.

  2. This PR won't turn custom green by itself. The latest custom failure (run 46285604139, job "Test Web 2") is Sidebar.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.

  3. 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.

Comment thread .fork/customizations.yaml Resolved

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. .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.
  2. 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.

Comment thread .fork/customizations.yaml Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NoahHendrickson
NoahHendrickson merged commit 7a6bbc1 into custom Nov 29, 2026
33 checks passed
@NoahHendrickson
NoahHendrickson deleted the t3/fork-ci-approval-text-timeout branch November 29, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants