Repository navigation
fix(ci): unblock main: split over-long files and pin scanner test file times - #34072
Conversation
Moves the structured chat pane menu items out of use-native-chat-context-menu.tsx into NativeChatStructuredPaneMenuItems.tsx, moves the label-only first-work create tests into worktrees-create-first-work-rename.test.ts, and moves the runtime create setup into a shared harness so the PR conflict probe tests can live in runtime-local-worktree-create-pr-conflict.test.ts. No behaviour change.
|
No actionable comments were generated in the recent review.
|
main fails the max-lines lint in the "static analysis and typecheck" job, which blocks every PR. Three files went over their line budget:
use-native-chat-context-menu.tsx(403 of 400)worktrees-create-metadata-persistence.test.ts(829 of 800)runtime-local-worktree-create.test.ts(844 of 800)This splits each along an existing seam instead of adding them to the max-lines baseline (that list only shrinks).
NativeChatStructuredPaneMenuItems.tsx, next to the existingNativeChatPaneMenuItems.tsx.worktrees-create-first-work-rename.test.ts, using the same shared mock modules the otherworktrees-create-*tests use.createWorktreesetup move intoruntime-local-worktree-create-test-harness.ts(loaded throughvi.hoisted, like the native chat session test harness). The PR-conflict-probe tests then move intoruntime-local-worktree-create-pr-conflict.test.ts.No behaviour change. The moved tests run the same count as before: 77 tests (27 IPC, 50 runtime) on main and on this branch.
Checks run locally: the CI lint step (0 errors),
pnpm tc, formatting, the changed-code gate, ratchets, and the other static steps in pr.yml. The four context-menu test files and the four create test files pass.