Skip to content

test: remove low-value fixtures and duplicate cases - #40667

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3247-low-value-tests
Nov 10, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3247-low-value-tests

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove low-value tests so the suite carries fewer fixtures, duplicated examples and implementation-count checks.

Files Added Deleted Net
Test 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​44 $\color{#cf222e}{\Huge{\mathbf{−}}}$​668 $\color{#cf222e}{\Huge{\mathbf{−}}}$​624
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20 $\color{#cf222e}{\Huge{\mathbf{−}}}$​15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5

What Changed

Remove 18 authored tests / 28 expanded cases across five audited batches, including four whole suites: NewRowsMarker, tab-map seam ratchet fixtures, Claude roster work-count checks and the mobile folder panel prop-forwarding test. Trim duplicate IME/repository rows, shallow fallback examples, static key/title policy checks and Brotli RPC counts. The source changes remove 624 net lines.

Retained tests still exercise distinct ownership, async lifecycle, delivery, hydration, routing and data-retention behavior. Reliability gate descriptions record the specific alarms retired; historical receipts and all timing entries remain.

Why

These tests have low value under the repository's test policy: internal work counts, static inventories, duplicated branches or large mocked harnesses for narrow forwarding decisions. Some removed tests protected real behavior; their loss is explicit and no equivalent replacement is claimed.

Linked Issue

Maintainer-requested continuation of the test audit.

Visual Proof

N/A — test and audit-metadata changes only.

Testing

ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=f4e285bd9c6ec2a7fb2044901b24d4acdaa58eb3 --maxWorkers=2: all 38 checks pass, including typechecks and selected unit tests. Separate retained-suite runs pass: 27 root suites / 73 cases and 8 mobile suites / 16 cases. Linux headless validation; no native UI or phone run.

  • Local changed-file checks and retained suites
  • No replacement tests added; this change deliberately removes low-value coverage

Risk

Level: Low for shipped behavior. The risk is reduced regression detection for the removed marker/reveal, malformed-profile fallback, unanswered host rows, static key/title policy, subscription forwarding and internal work-budget alarms. Mobile and older-host examples lose the specific checks described above. A plain revert restores them.

Review

Five source batches passed independent value review. Separate technical review confirmed exact source composition, retained callbacks, metadata history and timing preservation. Full CI must pass before merge.

Agent skill upstream boundary

  • This change copies no upstream skill-installer source or assets.

Checklist

  • Focused on removing low-value tests
  • Changes and accepted coverage losses explained
  • Cross-platform, remote, mobile and folder-workspace impact considered
  • N/A visual proof explained
  • Local checks pass; full CI will cover required workflows

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The diff changes test coverage only. It deletes test files and individual test cases across mobile, main-process, renderer, static-analysis, and terminal code. It also narrows parameterized tests for repository selection and IME keyboard events. No production-code changes are described.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly summarizes the main change: removing low-value tests and duplicate cases.
Description check Passed The description covers the required sections, explains the scope and rationale, reports testing, states coverage risks and rollback, and marks visual proof as not applicable. The maintainer-requested …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Description check

Explanation

The description covers the required sections, explains the scope and rationale, reports testing, states coverage risks and rollback, and marks visual proof as not applicable. The maintainer-requested continuation explains why no issue link is provided.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 6 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 1

src/renderer/src/components/skills/catalog/skill-agent-filter.test.ts: 1

55-55: Trivial · Maintainability & Code Quality · Quick win

Keep a focused test for skillAgentOptions.

The removed case was the only direct test found for per-skill count deduplication. SkillsPage.tsx still displays the resulting options. Retain a small aggregation assertion, or identify an equivalent component test, so a count regression does not leave the Skills page with incorrect filter counts.

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: b9b1d575-82e0-46e0-a215-b7a78dd7d768
Commits

Reviewing files that changed from the base of the PR and between f4e285b and 779cac6.

Files selected for processing: 17

  • config/reliability-gates.jsonc
  • config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.test.mjs
  • mobile/src/components/use-new-workspace-repositories.test.ts
  • mobile/src/source-control/folder/MobileFolderSourceControlPanel.test.tsx
  • mobile/src/source-control/folder/folder-source-repos-query.test.ts
  • mobile/src/transport/web-bundle/mobile-web-bundle-brotli-fetch.test.ts
  • src/main/claude/claude-child-work-roster-performance.test.ts
  • src/main/claude/structured/claude-conversation-title-owner.test.ts
  • src/main/native-chat/structured-chat-naming-title.test.ts
  • src/main/persistence/terminal-topology/persistence-floating-workspace-trust-load.test.ts
  • src/renderer/src/components/automations/hosts/automation-host-cache.test.ts
  • src/renderer/src/components/automations/hosts/automation-host-list-rows.test.ts
  • src/renderer/src/components/native-chat/viewport/new-rows/NativeChatNewRowsMarker.test.tsx
  • src/renderer/src/components/skills/catalog/skill-agent-filter.test.ts
  • src/renderer/src/lib/text-input/ime/ime-composition-keyboard-event.test.ts
  • src/renderer/src/lib/text-input/ime/ime-text-field.test.tsx
  • src/shared/terminal/input/agent-smart-keys.test.ts
Files with no reviewable changes: 10

  • src/main/persistence/terminal-topology/persistence-floating-workspace-trust-load.test.ts
  • mobile/src/source-control/folder/MobileFolderSourceControlPanel.test.tsx
  • src/main/claude/claude-child-work-roster-performance.test.ts
  • src/renderer/src/components/native-chat/viewport/new-rows/NativeChatNewRowsMarker.test.tsx
  • src/main/native-chat/structured-chat-naming-title.test.ts
  • config/scripts/static-analysis/ratchets/renderer-state/check-tab-map-seam-ratchet.test.mjs
  • src/shared/terminal/input/agent-smart-keys.test.ts
  • src/renderer/src/components/automations/hosts/automation-host-list-rows.test.ts
  • src/main/claude/structured/claude-conversation-title-owner.test.ts
  • src/renderer/src/components/automations/hosts/automation-host-cache.test.ts
Files not fully reviewed because their changes were unavailable: 1

  • config/reliability-gates.jsonc

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

@OrcaWin
OrcaWin merged commit 6231ca5 into main Nov 10, 2026
44 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