Skip to content

test: remove 279 low-value tests - #39527

Merged
OrcaWin merged 1 commit into
mainfrom
test/remove-low-value-tests-1853
Nov 7, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
test/remove-low-value-tests-1853

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove tests whose maintenance cost exceeds the problems they catch.

Files Added Deleted Net
Test 110 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4371 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4348
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23 $\color{#cf222e}{\Huge{\mathbf{−}}}$​86 $\color{#cf222e}{\Huge{\mathbf{−}}}$​63

What Changed

Remove 279 test definitions after reviewing 144 source files, including 35 whole test files. Delete display/inventory assertions, mock-supplied outcomes, repetitive examples and an inline timing benchmark. Preserve independent data, cancellation, state ownership, process cleanup and trust-boundary cases.

Remove 35 obsolete timing entries and two obsolete flaky-pattern rows; reduce one wall-clock count from four to one. Remove the deleted benchmark's exclusive Vitest project and use a neutral synthetic sharding fixture. Fix a retained serve-sim fixture to resolve a supported package export; its process-ownership callback and assertions remain unchanged. Update three reliability records, preserving complete historical receipts and surviving selectors. Production code is unchanged.

Why

Keeping weak cases adds maintenance and noise. Whole-suite deletion avoids leaving token assertions behind. The removed alarms are intentionally surrendered; no equivalent replacement coverage is claimed.

Linked Issue

Maintainer-requested cleanup; no existing issue.

Visual Proof

N/A — tests and test configuration only; no visual or interaction change.

Testing

  • Linux: 470 focused cases across 109 files; no skips. The retained serve-sim contract kills only its isolated named helper and preserves the second helper.
  • Six sharding cases and 18 storage-selector cases passed in a separate composite run. No fresh p95, soak, physical-provider or numerical heap measurement claimed.
  • All 33 repository changed-file checks passed, including typechecks, related unit tests, lint, formatting and reliability checks.
  • Exact patch reconstruction, retained registration/callback/wrapper/live-hook checks, metadata semantics and current-main source/owner freshness passed.

Reviewer command: ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=origin/main --maxWorkers=2. Runs use private background environments, PID namespaces where needed, and isolated displays. Full CI and required aggregate must pass before merge. No device, native-focus or deployed remote-provider validation claimed.

Risk

Level: Low. Removed details can regress without their previous alarms. Test configuration no longer creates an exclusive project for a deleted benchmark; ordinary runtime selection is preserved. The fixture loader depends on the pinned package's middleware and CLI remaining siblings. Runtime behavior, persisted data and wire formats are unchanged. Revert this PR to restore tests and configuration.

Review

Self-reviewed removed alarms, surviving test bodies, dependency-loader scope, benchmark configuration, stale references and historical metadata. Cross-platform, remote and mobile boundaries considered; no production behavior changes. Current execution evidence stays separate from historical performance claims.

Agent skill upstream boundary

  • No upstream skill-installer content copied or translated.

Checklist

  • Focused test removal and necessary fixture/configuration cleanup.
  • Explained changes, rationale, coverage loss and rollback.
  • Visual proof marked N/A with reason.
  • Self-reviewed correctness, security, performance and platform/remote scope.
  • Local lint, typecheck and related tests passed; CI covers required builds and platform checks.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request removes or narrows tests across main-process, renderer, and shared modules. It also changes Vitest project selection, updates CI timing and flaky-test records, and revises reliability-gate evidence to describe a reduced test run and remaining coverage gaps.

Merge Risk: Minimal · up to a34ba

The cleanup removes test coverage but has no identified runtime or test-workflow failure. It is mergeable after the required CI checks pass.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the main change: removing tests.
Description check Passed The description is mostly complete. It covers the changes, testing, coverage loss, and rollback. The comparison with alternatives and specific user impacts could be clearer.
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: 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 23 files. (2 skipped: 2 unsupported.)

Finishing Touches

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

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: 8e19598c-7c31-46f3-a0c4-6c94fe75ca45
Commits

Reviewing files that changed from the base of the PR and between 5c487a8 and a34ba5c.

Files selected for processing: 114

  • config/flaky-test-pattern-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci/sharding/ci-shard-timings.json
  • config/scripts/ci/sharding/ci-unit-sequencer.test.mjs
  • config/vitest.config.ts
  • src/main/emulator/android/android-permissions.test.ts
  • src/main/emulator/android/avd-manager.test.ts
  • src/main/emulator/android/scrcpy-video-frame-parser.test.ts
  • src/main/emulator/android/uiautomator-tree.test.ts
  • src/main/emulator/emulator-session-registry.test.ts
  • src/main/emulator/mjpeg-frame-parser.test.ts
  • src/main/emulator/serve-sim-accessibility-tree.test.ts
  • src/main/emulator/serve-sim-kill-contract.test.ts
  • src/main/emulator/serve-sim-runtime-materializer.test.ts
  • src/main/ephemeral-vm/runtime-ssh-cleanup.test.ts
  • src/main/foreign-sqlite-readers/foreign-sqlite-reader-dispatch.test.ts
  • src/main/foreign-sqlite-readers/foreign-sqlite-reader-event-loop.test.ts
  • src/main/foreign-sqlite-readers/foreign-sqlite-reader-spawn.test.ts
  • src/main/foreign-sqlite-readers/readers/cursor-profile.test.ts
  • src/main/foreign-sqlite-readers/readers/opencode-binder-sessions.test.ts
  • src/main/gemini/hook-service.test.ts
  • src/main/ghostty/parser.test.ts
  • src/main/ghostty/theme-resolution.test.ts
  • src/main/git/base-ref-search-selector.test.ts
  • src/main/git/branch-rename.test.ts
  • src/main/git/command-runner/git-admission-output-parity.test.ts
  • src/main/git/command-runner/git-spawn-wsl-admission.test.ts
  • src/main/git/command-runner/hosted-cli-deadline-log.test.ts
  • src/main/git/command-runner/wsl-command-resolution-windows-binary.test.ts
  • src/main/git/command-runner/wsl-host-failure.test.ts
  • src/main/git/exact-ref-probe.test.ts
  • src/main/git/gh-rate-limit-breaker.test.ts
  • src/main/git/repo-detection-async.test.ts
  • src/main/git/source-control/diff-too-large-real-git.test.ts
  • src/main/git/source-control/drive-checkout-suspect-paths.test.ts
  • src/main/git/source-control/staged-rename-diff-real-git.test.ts
  • src/main/git/wsl-windows-checkout-sample-script.test.ts
  • src/main/github/client-file-viewed.test.ts
  • src/renderer/src/components/github/github-mention-option-filter.test.ts
  • src/renderer/src/components/github/github-pr-reviewer-candidate-filter.test.ts
  • src/renderer/src/components/github/github-user-avatar.test.tsx
  • src/renderer/src/components/github/github-work-item-mutation-target.test.ts
  • src/renderer/src/components/github/pr-comment-code-context.test.ts
  • src/renderer/src/components/host-picker/bounded-host-list.test.tsx
  • src/renderer/src/components/jira-connect-scoped-token.test.tsx
  • src/renderer/src/components/jira-issue-transition-control.test.tsx
  • src/renderer/src/components/jira-project-picker-filter.test.ts
  • src/renderer/src/components/jira-project-picker.test.tsx
  • src/renderer/src/components/jira-prompt-templates.test.ts
  • src/renderer/src/components/landing-preflight-runtime-boundary.test.ts
  • src/renderer/src/components/linear-issue-attribute-filter-primary-team.test.ts
  • src/renderer/src/components/linear-issue-attribute-filter-team-ids.test.ts
  • src/renderer/src/components/linear-issue-text-save-plan.test.ts
  • src/renderer/src/components/linear-issue-view-storage.test.ts
  • src/renderer/src/components/linear-workspace-picker.test.tsx
  • src/renderer/src/components/link-actions/LinkActionPopover.test.tsx
  • src/renderer/src/components/mobile/MobilePageToolbar.test.tsx
  • src/renderer/src/components/mobile/NetworkInterfacePicker.test.tsx
  • src/renderer/src/components/mobile/WindowsFirewallNotice.test.tsx
  • src/renderer/src/components/mobile/mobile-page-stage.test.ts
  • src/renderer/src/components/mobile/paired-mobile-devices.test.ts
  • src/renderer/src/components/native-chat-resume-failure-guidance.test.ts
  • src/renderer/src/components/native-chat-resume-result-view.test.tsx
  • src/renderer/src/components/native-chat/NativeChatJumpToLatest.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMarkdown.mermaid.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMarkdown.visual.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageTimestamp.test.tsx
  • src/renderer/src/components/native-chat/NativeChatModelCombobox.test.tsx
  • src/renderer/src/components/native-chat/NativeChatPacedMarkdown.mermaid.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.wsl-host-stopped.test.tsx
  • src/renderer/src/components/native-chat/NativeChatTaskList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatUserMessageFold.test.tsx
  • src/renderer/src/components/native-chat/claude-model-switch-confirmation.test.ts
  • src/renderer/src/components/native-chat/counted-roster-words-text.test.ts
  • src/renderer/src/components/native-chat/native-chat-appearance-write.test.ts
  • src/renderer/src/components/native-chat/native-chat-autoscroll.test.ts
  • src/renderer/src/components/native-chat/native-chat-diff.test.ts
  • src/renderer/src/components/native-chat/native-chat-disclosure-store.test.ts
  • src/renderer/src/components/native-chat/native-chat-font-size.test.ts
  • src/shared/opencode-tui-config-registration.test.ts
  • src/shared/openssh-default-shell.test.ts
  • src/shared/orca-browser-cli-commands.test.ts
  • src/shared/orca-session-address.test.ts
  • src/shared/orca-yaml-alias-bounds.test.ts
  • src/shared/orcad-artifacts.test.ts
  • src/shared/orcad-build-identity.test.ts
  • src/shared/orcad-migration/orcad-migration-source-kind.test.ts
  • src/shared/orcad-profile-preflight.test.ts
  • src/shared/orchestration-ask-timeout.test.ts
  • src/shared/orchestration-compatibility-evidence.test.ts
  • src/shared/orchestration-fleet-attention.test.ts
  • src/shared/orchestration-rpc-contract.test.ts
  • src/shared/orchestration-task-display.test.ts
  • src/shared/orchestration-task-summary.test.ts
  • src/shared/orchestration-timing-budgets.test.ts
  • src/shared/osc-title-scan-tail.test.ts
  • src/shared/osc52-clipboard-settings.test.ts
  • src/shared/own-retained-string.test.ts
  • src/shared/pairing-address-auto-selection.test.ts
  • src/shared/palette-match/palette-match-core.test.ts
  • src/shared/palette-match/palette-phrase-placement.test.ts
  • src/shared/pan-zoom-view.test.ts
  • src/shared/pi-agent-kind.test.ts
  • src/shared/plugins/approval/plugin-consent-fingerprint.test.ts
  • src/shared/plugins/artifacts/plugin-icon-theme-artifact.test.ts
  • src/shared/plugins/artifacts/plugin-syntax-artifact.test.ts
  • src/shared/plugins/artifacts/plugin-theme-artifact.test.ts
  • src/shared/plugins/artifacts/plugin-vm-recipe-artifact.test.ts
  • src/shared/plugins/catalog/plugin-catalog-release.test.ts
  • src/shared/plugins/catalog/plugin-detail-fields.test.ts
  • src/shared/plugins/catalog/plugin-marketplace.test.ts
  • src/shared/plugins/contributions/plugin-content-pack-contributions.test.ts
  • src/shared/plugins/contributions/plugin-file-type.test.ts
  • src/shared/plugins/contributions/plugin-panel-contribution.test.ts
Files with no reviewable changes: 89

  • src/main/git/command-runner/hosted-cli-deadline-log.test.ts
  • src/main/git/command-runner/wsl-command-resolution-windows-binary.test.ts
  • src/renderer/src/components/native-chat/NativeChatJumpToLatest.test.tsx
  • src/renderer/src/components/mobile/WindowsFirewallNotice.test.tsx
  • src/renderer/src/components/github/github-work-item-mutation-target.test.ts
  • src/main/git/base-ref-search-selector.test.ts
  • src/renderer/src/components/mobile/MobilePageToolbar.test.tsx
  • src/main/emulator/serve-sim-accessibility-tree.test.ts
  • src/main/github/client-file-viewed.test.ts
  • src/renderer/src/components/native-chat/native-chat-font-size.test.ts
  • src/main/foreign-sqlite-readers/foreign-sqlite-reader-event-loop.test.ts
  • src/main/ghostty/theme-resolution.test.ts
  • src/renderer/src/components/linear-issue-attribute-filter-primary-team.test.ts
  • src/renderer/src/components/linear-issue-text-save-plan.test.ts
  • src/shared/plugins/contributions/plugin-file-type.test.ts
  • src/renderer/src/components/mobile/NetworkInterfacePicker.test.tsx
  • src/renderer/src/components/linear-workspace-picker.test.tsx
  • src/renderer/src/components/landing-preflight-runtime-boundary.test.ts
  • src/renderer/src/components/github/pr-comment-code-context.test.ts
  • src/renderer/src/components/native-chat/NativeChatMessageTimestamp.test.tsx
  • src/renderer/src/components/native-chat/NativeChatTaskList.test.tsx
  • src/renderer/src/components/native-chat/counted-roster-words-text.test.ts
  • src/main/emulator/android/android-permissions.test.ts
  • src/main/foreign-sqlite-readers/foreign-sqlite-reader-dispatch.test.ts
  • src/main/emulator/emulator-session-registry.test.ts
  • src/renderer/src/components/mobile/mobile-page-stage.test.ts
  • src/shared/orchestration-timing-budgets.test.ts
  • src/shared/osc-title-scan-tail.test.ts
  • src/main/git/source-control/diff-too-large-real-git.test.ts
  • src/renderer/src/components/jira-prompt-templates.test.ts
  • src/shared/orchestration-ask-timeout.test.ts
  • src/main/git/source-control/staged-rename-diff-real-git.test.ts
  • src/renderer/src/components/native-chat/native-chat-diff.test.ts
  • src/main/git/gh-rate-limit-breaker.test.ts
  • src/shared/own-retained-string.test.ts
  • src/renderer/src/components/native-chat/native-chat-disclosure-store.test.ts
  • src/main/git/wsl-windows-checkout-sample-script.test.ts
  • src/renderer/src/components/native-chat/claude-model-switch-confirmation.test.ts
  • src/main/ghostty/parser.test.ts
  • src/shared/plugins/catalog/plugin-catalog-release.test.ts
  • src/renderer/src/components/linear-issue-attribute-filter-team-ids.test.ts
  • src/main/ephemeral-vm/runtime-ssh-cleanup.test.ts
  • src/main/git/repo-detection-async.test.ts
  • src/renderer/src/components/native-chat/NativeChatUserMessageFold.test.tsx
  • src/renderer/src/components/native-chat/native-chat-autoscroll.test.ts
  • src/renderer/src/components/github/github-mention-option-filter.test.ts
  • src/shared/orchestration-task-summary.test.ts
  • src/renderer/src/components/link-actions/LinkActionPopover.test.tsx
  • src/shared/pairing-address-auto-selection.test.ts
  • src/main/emulator/android/avd-manager.test.ts
  • src/renderer/src/components/jira-issue-transition-control.test.tsx
  • src/renderer/src/components/native-chat/native-chat-appearance-write.test.ts
  • src/main/foreign-sqlite-readers/foreign-sqlite-reader-spawn.test.ts
  • src/main/git/command-runner/git-spawn-wsl-admission.test.ts
  • src/renderer/src/components/github/github-user-avatar.test.tsx
  • src/renderer/src/components/mobile/paired-mobile-devices.test.ts
  • src/shared/opencode-tui-config-registration.test.ts
  • src/shared/pan-zoom-view.test.ts
  • src/renderer/src/components/native-chat-resume-result-view.test.tsx
  • src/shared/orchestration-fleet-attention.test.ts
  • src/main/emulator/mjpeg-frame-parser.test.ts
  • src/renderer/src/components/native-chat/NativeChatPacedMarkdown.mermaid.test.tsx
  • src/shared/plugins/contributions/plugin-panel-contribution.test.ts
  • src/shared/palette-match/palette-phrase-placement.test.ts
  • src/shared/orchestration-task-display.test.ts
  • src/shared/palette-match/palette-match-core.test.ts
  • src/shared/orcad-profile-preflight.test.ts
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.wsl-host-stopped.test.tsx
  • src/shared/plugins/artifacts/plugin-icon-theme-artifact.test.ts
  • src/main/emulator/android/uiautomator-tree.test.ts
  • src/main/git/source-control/drive-checkout-suspect-paths.test.ts
  • src/shared/orchestration-compatibility-evidence.test.ts
  • src/renderer/src/components/github/github-pr-reviewer-candidate-filter.test.ts
  • src/shared/orca-browser-cli-commands.test.ts
  • src/renderer/src/components/jira-project-picker.test.tsx
  • src/shared/orcad-build-identity.test.ts
  • src/renderer/src/components/jira-project-picker-filter.test.ts
  • src/shared/orca-yaml-alias-bounds.test.ts
  • src/main/gemini/hook-service.test.ts
  • src/shared/openssh-default-shell.test.ts
  • src/shared/plugins/contributions/plugin-content-pack-contributions.test.ts
  • src/main/emulator/serve-sim-runtime-materializer.test.ts
  • src/renderer/src/components/native-chat-resume-failure-guidance.test.ts
  • src/renderer/src/components/native-chat/NativeChatMarkdown.mermaid.test.tsx
  • src/shared/plugins/approval/plugin-consent-fingerprint.test.ts
  • src/shared/plugins/artifacts/plugin-syntax-artifact.test.ts
  • src/main/git/command-runner/git-admission-output-parity.test.ts
  • src/renderer/src/components/native-chat/NativeChatModelCombobox.test.tsx
  • config/scripts/ci/sharding/ci-shard-timings.json

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

@OrcaWin
OrcaWin merged commit 5f22698 into main Nov 7, 2026
45 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