Skip to content

test: loosen protocol.handle "is fast" bound on branches without native relay - #55346

Merged
MarshallOfSound merged 2 commits into
43-x-yfrom
claude/fix-protocol-is-fast-bound-43
Oct 26, 2026
Merged

MarshallOfSound merged 2 commits into
43-x-yfrom
claude/fix-protocol-is-fast-bound-43

Conversation

@claude

@claude claude Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Samuel Attard · Slack thread

Description of Change

protocol module > handle > is fast asserts that the median ratio of a protocol.handle-intercepted 128 MB fetch to a direct fetch is below 3. On 43-x-y there is no native relay for untouched net.fetch responses (#52953 only landed on 44+), so the intercepted body is pumped through JS and the real ratio sits around 3-4x on Linux x64 CI; the test fails outright or only passes on retry (e.g. https://github.com/electron/electron/actions/runs/40242888705/job/121353182234). This raises the bound to 5, matching the gross-regression bound main uses since #55083, which can't be backported as-is because its relayed-vs-piped assertion depends on native relay. Test-only change.

Validated locally against the released Electron v43.8.3 (no build) on Linux x64 under xvfb, 5 runs of just this test, all passing with the new bound. Median ratios: 3.58, 3.56, 3.32, 3.13, 3.28. Every one of those medians would have failed the old < 3 bound.

Checklist

  • PR description included
  • I have built and tested this PR (ran the spec locally against the released v43.8.3 binary)
  • tests are changed or added

Generated by Claude Code

Release Notes

Notes: none

@claude
claude Bot requested a review from MarshallOfSound October 26, 2026 08:29
@MarshallOfSound MarshallOfSound added the backport-check-skip Skip trop's backport validity checking label Oct 26, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) October 26, 2026 08:31

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LGTM. This is a test-only change that raises the threshold on one flaky performance assertion. I reviewed it from a standalone clone.

What was reviewed:

  • The protocol module > handle > is fast test in spec/api-protocol.spec.ts. Only the medianRatio bound changes, from 3 to 5. The 4-pair balanced-order sampling, the median calculation and the length/handler-call checks are all unchanged.
  • The bound of 5 still sits above the 3.1-3.6x medians reported in the description, so it should still catch a gross regression.
  • The assertion uses a vitest toBeLessThan matcher and runs in the test body, as spec/CLAUDE.md requires.
Extended reasoning...

The change edits a single assertion and its comment in spec/api-protocol.spec.ts. It does not touch production code. It also touches no security-sensitive surface, since it only changes a test timing tolerance. No CODEOWNERS entry covers spec/. The PR timeline shows no other reviewers and no open objections, and the bug hunt ran to dry_streak with no findings.

@claude

claude Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

The linux-x64 / nn-test / Run Node.js Tests check fails only on parallel/test-datetime-change-notify.js, because 43-x-y's ICU tzdata now prints GMT+00:00 for Dublin in winter time instead of "Greenwich Mean Time". It fails the same way on every 43-x-y PR run since the clocks changed (e.g. #55331), so it's unrelated to this test-only change. The fix is the ICU update in #55336; porting that here would pull a full ICU bump into a one-line test PR, so this waits on #55336.


Generated by Claude Code

@MarshallOfSound
MarshallOfSound merged commit 97706eb into 43-x-y Oct 26, 2026
72 checks passed
@MarshallOfSound
MarshallOfSound deleted the claude/fix-protocol-is-fast-bound-43 branch October 26, 2026 15:37
@release-clerk

release-clerk Bot commented Oct 26, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-check-skip Skip trop's backport validity checking no-backport semver/none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants