Skip to content

fix(ci): colocate Git buffer option types to restore lint - #42110

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/git-buffer-options-lint-a36d
Nov 13, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/git-buffer-options-lint-a36d

Conversation

@nwparker

@nwparker nwparker commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Restore the Git command runner’s lint gate after the latest fetch-race change pushed it past the file-size limit.

Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1

What Changed

Move the existing buffer-command options type, unchanged, into git-exec-options.ts, where the command option contracts already live. Import that concrete type in the runner. Runtime JavaScript is identical for both files.

Why

Main’s runner currently has 301 counted lines and fails the 300-line lint limit. This blocks the shared-sidebar cleanup PR #42107. Colocating the options contract restores the gate while preserving Git execution and public signatures.

Linked Issue

CI prerequisite for maintainer-requested cleanup #42107.

Visual Proof

N/A — type-only extraction; no UI or runtime changes.

Testing

  • Full native root Oxlint: passed (34,767 files, zero errors; eight existing warnings).
  • Node typecheck: passed.
  • Existing Git fetch/rebase tests: 2 files, 24 tests passed.
  • Both files produce byte-identical ESNext JavaScript before and after extraction.
  • Normal commit hooks: passed.
  • Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 --timeout=2 after the final commit, immediately before push: 23 static/typecheck gates passed; the broad unit phase reached the 120-second cap. This is not a full local unit-suite pass. Required hosted checks must pass before merge.
  • Hosted required checks and aggregate: pending.

No tests added; the contract and emitted runtime were compared directly.

Risk

Level: Low. A type mismatch could reject existing Git callers at build time. The extracted members and optionality are unchanged, and Node typecheck passes. Local, WSL and SSH execution bodies are untouched. Revert this PR to restore the inline type; no data migration.

AI Disclosure

Review

Two independent source reviews verify the exact type contract and unchanged runtime.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material copied or translated.

Notes

No planning or evidence files are included. No forwarding exports added.

Checklist

  • Small CI prerequisite, with problem and scope explained
  • Risk and revert path stated
  • Visual proof N/A
  • Platform, remote, mobile and folder workspace impact considered
  • Required hosted checks and aggregate passed

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds the exported GitBufferExecOptions type with fields for buffer execution. gitExecFileAsyncBufferInSpan now uses this type instead of its inline options shape. The function implementation is unchanged.

Merge Risk: Minimal · up to 0ae6e

This is a type-only refactor that restores the lint line-limit check and has no runtime behavior change. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: moving the Git buffer option types so the command runner passes the lint line-limit gate. It uses the conventional fix(ci) prefix and is specific enough for a teammate…
Description check Passed The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing, Risk with a level, Review, Agent skill upstream boundary, Notes, a…
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 names the main change: moving the Git buffer option types so the command runner passes the lint line-limit gate. It uses the conventional fix(ci) prefix and is specific enough for a teammate scanning history. The summary files confirm the type move into git-exec-options.ts and its import in git-exec-file.ts.

Full details: Description check

Explanation

The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing, Risk with a level, Review, Agent skill upstream boundary, Notes, and Checklist. It explains the before and after, the mechanism, the reason for the change, and the revert path. Gaps: the template's AI Disclosure section is left empty, which is acceptable for a maintainer. The Linked Issue cites a CI prerequisite (#42107) rather than an issue that the template's 'Fixes #' line expects, and the Testing section does not tick the template's manual test or automated test boxes. The Testing section also reports a partial check:changed run that hit a timeout. These points are minor and do not block the check.

  • 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

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: 6a6f95ce-d27e-44d4-8c71-04d67dd6e260
Commits

Reviewing files that changed from the base of the PR and between a36d1dd and 0ae6e52.

Files selected for processing: 2

  • src/main/git/command-runner/git-exec-file.ts
  • src/main/git/command-runner/git-exec-options.ts

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

@nwparker
nwparker merged commit a05f21b into main Nov 13, 2026
43 checks passed
@nwparker
nwparker deleted the module-layout-v2/git-buffer-options-lint-a36d branch November 13, 2026 19:35
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