Skip to content

Split sidebar.test.tsx so each file fits the 20s per-file budget (fixes Windows CI timeouts, #1447 pass U) - #1468

Merged
currentbits merged 1 commit into
mainfrom
coder/fix-u-windows-sidebar-test-tsx-timeout-0c6402
Oct 5, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/fix-u-windows-sidebar-test-tsx-timeout-0c6402

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Round 6, pass U of #1447. This fixes the recurring Windows CI failure not ok – test\\sidebar.test.tsx: test timed out after 20000ms. It hit #1448, #1454 (twice), #1456 (twice), #1463, #1464 and #1466, several of which changed only electron code.

Cause: node:test gives each renderer FILE a single --test-timeout budget (20 s). sidebar.test.tsx holds 123 tests and takes 14.8 s cold and ~7–8 s warm locally, which is too close to 20 s for the slower Windows runners. It isn't a product slowdown, and the tests contain no real waits to remove.

Fix (test-only):

  • The 33 search/scope/filter/tag/saved-view tests move to test/sidebar.filters.test.tsx.
  • Shared fixtures and localStorage hooks move to test/support/sidebarFixtures.tsx.
  • 90 + 33 = 123 tests. The slowest sidebar file now takes roughly half as long.

No product code changes, no retries, and no timeout bump.

Checked

  • Same test cases: the sorted test names from main's sidebar.test.tsx and from the two new files are identical (123 = 123), and all pass.
  • Full renderer suite: 2701/2701, 0 cancelled, the same total as main. That run used a 180 s per-file timeout because the machine was at load 70 from parallel refactor runs; at 20 s that load cancelled 32 unrelated files.
  • npm run typecheck is clean.

🤖 Generated with Claude Code

node:test gives each renderer file one --test-timeout budget. At 123 tests
sidebar.test.tsx took 14.8s cold / ~7-8s warm locally and timed out on
slow Windows runners 7 times. Search, scope, filters, tags and saved views
(33 tests) move to sidebar.filters.test.tsx; shared fixtures and the
localStorage hooks move to test/support/sidebarFixtures.tsx. 90 + 33 = 123.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit 3ebf406 into main Oct 5, 2026
6 checks passed
@currentbits
currentbits deleted the coder/fix-u-windows-sidebar-test-tsx-timeout-0c6402 branch October 5, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant