Skip to content

fix(ci): unblock main: split over-long files and pin scanner test file times - #34072

Merged
Jinwoo-H merged 3 commits into
mainfrom
jinwoo/fix-main-max-lines
Oct 26, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
jinwoo/fix-main-max-lines

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​492 $\color{#cf222e}{\Huge{\mathbf{−}}}$​461 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​31
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​249 $\color{#cf222e}{\Huge{\mathbf{−}}}$​57 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​192

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

  • Context menu hook: the Split Chat Right/Down, Copy Session ID and Close items for structured chat panes move into NativeChatStructuredPaneMenuItems.tsx, next to the existing NativeChatPaneMenuItems.tsx.
  • IPC create test: the "label-only creation through first work" tests move into worktrees-create-first-work-rename.test.ts, using the same shared mock modules the other worktrees-create-* tests use.
  • Runtime create test: the shared mocks, fixtures and createWorktree setup move into runtime-local-worktree-create-test-harness.ts (loaded through vi.hoisted, like the native chat session test harness). The PR-conflict-probe tests then move into runtime-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.

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.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 43a5d96b-a4a8-4a5c-9881-733d1f58fd4d
Commits

Reviewing files that changed from the base of the PR and between a6323e6 and 82d8150.

Files selected for processing: 1
  • src/main/ai-vault/session-scanner-pi-omp-shared-root.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Walkthrough

The changes add desktop worktree creation and first-work renaming tests. They move runtime creation tests to a shared harness and add runtime branch and path conflict tests. They also extract structured-pane context-menu actions into a reusable renderer component and set timestamps on transcript test fixtures.

Priority: Normal

Merge Risk: Minimal · up to 82d81

No merge-blocking defect is established; the change is mergeable with normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 7 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "fix(ci): unblock main: split over-long files and pin scanner test file times" describes the main change: splitting three files that exceed the max-lines lint limit so main's static analysis…
Description check Passed The description fills in the core content. It explains the problem (main fails max-lines lint in the static analysis job and blocks PRs), lists the three over-budget files, and describes how each is s…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(ci): unblock main: split over-long files and pin scanner test file times" describes the main change: splitting three files that exceed the max-lines lint limit so main's static analysis job passes. It also mentions the scanner test timestamp pinning, which matches the session-scanner-pi-omp-shared-root.test.ts change in the summary. The title is specific and conveys the primary intent, though it is slightly long at 12 words and 76 characters.

Full details: Description check

Explanation

The description fills in the core content. It explains the problem (main fails max-lines lint in the static analysis job and blocks PRs), lists the three over-budget files, and describes how each is split along an existing seam. It also reports local verification and the test counts. Several template sections are missing or left blank: the ELI5 section, the Linked Issue section (the 'Fixes #' line is empty), the Visual Proof section (it should say N/A with a reason), the Testing checkboxes are unchecked, the Review and Agent skill upstream boundary sections are absent, and the Checklist is not ticked. The description is mostly complete on substance, but the required template sections need filling in.

Resolution

Consider adding these items before merge: (1) an ELI5 summary in plain language; (2) a linked issue, or an explicit note explaining why none applies, since the template says there should always be one for outside contributors; (3) 'N/A' with a short reason under Visual Proof, because the change has no UI behavior change; (4) tick the Testing checkboxes once the manual or automated checks are confirmed, and state which platforms were tested; (5) complete the Agent skill upstream boundary checkbox; and (6) tick the Checklist items that apply.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H Jinwoo-H changed the title fix(ci): split three over-long files so main passes the max-lines lint fix(ci): unblock main: split over-long files and pin scanner test file times Oct 26, 2026
@Jinwoo-H
Jinwoo-H merged commit b7fb07c into main Oct 26, 2026
61 of 63 checks passed
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