Skip to content

test: remove 12 low-value cases and four suites - #35667

Merged
OrcaWin merged 1 commit into
mainfrom
test-audit-734-low-value-suites
Oct 29, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
test-audit-734-low-value-suites

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 7 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​125 $\color{#cf222e}{\Huge{\mathbf{−}}}$​125
Prod 0 0 0 0

Removes 12 low-value authored test cases across seven files, including four entire suites. No production changes.

  • Delete suites that only compare supplied hash inputs, repeat WSL environment projections, look up a freshly registered fixture pane, or assert copied toast text and IDs through a mock.
  • Trim redundant cache ordering, default work-run grouping, and mocked/default ignore cases.
  • Keep cache eviction, scope/lead grouping boundaries, Unicode and bounded-work activity selection, socket suspension recovery, real filesystem writes and injection rejection. The higher-level WSL gate suite still covers policy resolution and inherited-state replacement.

Validation: static AST enumeration, retained callback/support identity, test routing/reference checks, formatting and lint passed. Full PR CI must pass before merge; retained coverage requires fresh results for 33 expanded cases across six suites. Local runtime tests were not run, per the audit constraints.

@OrcaWin
OrcaWin requested a review from Jinwoo-H as a code owner October 29, 2026 04:30
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: e00f998d-1e50-4787-938b-b4b8d1a53abc
Commits

Reviewing files that changed from the base of the PR and between d334119 and 2e63249.

Files selected for processing: 7
  • cloud/apps/connector/src/owner-controls.test.ts
  • src/main/git/huge-folder-ignore.test.ts
  • src/main/runtime/wsl-move-pane-key-for-pty.test.ts
  • src/renderer/src/components/terminal-pane/terminal-input-not-sent-notice.test.ts
  • src/shared/native-chat/native-chat-scope-cache.test.ts
  • src/shared/native-chat/native-chat-work-run.test.ts
  • src/shared/wsl-host-internal-gate.test.ts
  • 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.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The changes affect test coverage, not application behavior.

The PR appears safe to merge, with non-blocking suggestions to preserve three distinct test checks.

Summary

Removes 12 test cases across seven files, including four complete suites. Production code is unchanged.

  • Four focused suites drop standalone checks for connector, terminal, and WSL workflows.
  • Git-ignore tests drop checks for ignored folders, empty results, and duplicate patterns.
  • Native-chat tests drop a cache re-set example and a mixed thought-and-call pattern.

Reviews (1) · Last reviewed commit: "test: remove 12 low-value cases and four..." · Reviewed by Greptile

@greptile-apps

greptile-apps Bot commented Oct 29, 2026

Copy link
Copy Markdown

Comments Outside Diff

These findings could not be posted inline.

  • P2 Inherited WSL state goes untested src/shared/wsl-host-internal-gate.test.ts:19 ▶

    Deleting this case removes the check that a child process honors its parent's published WSL state. The retained higher-level tests call ignoreInheritedWslHostsGateState() or configure the gate first, so they skip the inherited-state branch. Keep this case or move it into the retained suite before resolving the gate there.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

  • P2 Ignored folders go untested src/main/git/huge-folder-ignore.test.ts:47 ▶

    The removed case checks behavior the remaining test does not cover. Its mock always returns no ignored paths, so removing the filter in findKnownHugeFolderPathsToIgnore would now pass. Keep a case with an already-ignored folder, ideally alongside an unignored folder, to check that only the latter is offered.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

  • P2 Repeated writes go untested src/main/git/huge-folder-ignore.test.ts:85 ▶

    Removing the already-listed case leaves appendFolderToGitignore's repeat-write guard untested. The retained cases only create a file, append a new rule, or reject unsafe input. Keep the repeated-call check and assert that the file stays unchanged, so duplicate rules cannot accumulate unnoticed.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@OrcaWin
OrcaWin merged commit a7ec7d1 into main Oct 29, 2026
45 checks passed
nwparker added a commit that referenced this pull request Oct 29, 2026
#35667 pruned src/shared/wsl-host-internal-gate.test.ts as a lone suite,
dropping #35543's child-side cases. Two non-redundant ones return inside
wsl-host-gate.test.ts: a child of a blocked run trusts the published
closed over ORCA_INTERNAL_WSL_HOSTS=1 (and serve-only with no env), and
falls back to the env when nothing valid was published. The main-side
cases were already there.

Co-Authored-By: Claude <[email protected]>
nwparker added a commit that referenced this pull request Oct 29, 2026
#35765)

#35667 pruned src/shared/wsl-host-internal-gate.test.ts as a lone suite,
dropping #35543's child-side cases. Two non-redundant ones return inside
wsl-host-gate.test.ts: a child of a blocked run trusts the published
closed over ORCA_INTERNAL_WSL_HOSTS=1 (and serve-only with no env), and
falls back to the env when nothing valid was published. The main-side
cases were already there.

Co-authored-by: Claude <[email protected]>
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