Skip to content

Remove 382 low-value test cases and 46 whole suites - #38238

Merged
OrcaWin merged 2 commits into
mainfrom
codex/remove-low-value-tests-1409
Nov 4, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
codex/remove-low-value-tests-1409

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove 382 low-value test cases, including 46 whole suites, to reduce maintenance and CI work.

Files Added Deleted Net
Test 105 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​61 $\color{#cf222e}{\Huge{\mathbf{−}}}$​13050 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12989
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​46 $\color{#cf222e}{\Huge{\mathbf{−}}}$​139 $\color{#cf222e}{\Huge{\mathbf{−}}}$​93

What Changed

Review 126 renderer/mobile test sources containing 693 authored cases. Delete 46 suites, trim 59, and retain 311 cases. Removals cover synthetic component/hook assembly, mock-supplied results, internal invocation counts, private state, production-derived expectations, and copy projections. Useful alarms inside mixed low-value registrations are deliberately retired too.

Remove 40 obsolete shard timing rows and reconcile seven reliability records. Preserve all earlier test-removal changes, complete historical receipts and coverage gaps. Remove four stale TypeScript exclusions for deleted suites and use a fixed timestamp in a retained cache fixture. Production code is unchanged.

Why

Maintainer-requested comprehensive audit following the repository test anti-pattern policy. Entire suites are removed when keeping them offers little useful protection.

Linked Issue

Maintainer-requested maintenance; no separate issue.

Visual Proof

N/A — tests and coverage metadata only.

Testing

  • All 80 retained execution roots on Linux: 78 renderer/importer roots and two mobile Vitest roots; 442 tests passed.
  • Isolated Xvfb and background launch; no physical macOS/Windows/WSL, native Android/iOS or real remote-host execution claim.
  • Independent value review, exact retained registration/callback checks, complete literal import graph, metadata and prior merged-change preservation passed. Explicit dynamic/opaque-loader limitations remain recorded.
  • Final changed-file checks passed, including applicable typechecks and related tests. Full PR CI required before merge.

Risk

Level: Medium

These deletions retire their regression alarms, including useful output assertions mixed with low-value internals or synthetic setup. The remaining tests may miss failures previously caught by removed cases. Reliability records document those losses without reusing old execution receipts as current proof. Revert the PR to restore tests and metadata. Desktop, mobile, folder-workspace and remote boundaries were considered.

Review

Independent source review and static acceptance completed; CI must pass before merge.

Agent skill upstream boundary

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

Checklist

  • Combined focused removal batch to reduce repeated CI
  • Explained changes, risks, purpose and rollback
  • N/A visual proof with reason
  • Cross-platform/remote/mobile scope reviewed
  • Full PR CI passes

@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The diff removes or narrows tests across mobile and renderer components, terminal behavior, runtime synchronization, agent launches, and store state. It also removes CI timing entries for deleted test files. Two web TypeScript project configurations no longer exclude the provider-account and Claude switcher observation tests. The changes described are to tests and configuration; no production implementation changes are summarized.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "Remove 382 low-value test cases and 46 whole suites" matches the main change. The PR deletes 46 suites and retires 382 test registrations, and the raw summary lists many deleted test files.…
Description check Passed The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. It states…
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: Title check

Explanation

The title "Remove 382 low-value test cases and 46 whole suites" matches the main change. The PR deletes 46 suites and retires 382 test registrations, and the raw summary lists many deleted test files. The title is specific and concise. It does not mention that production code is unchanged, but it does not need to cover every detail.

Full details: Description check

Explanation

The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. It states the scope, the reason, a visual-proof N/A with reason, the test evidence, and a Medium risk level with a rollback path. Gaps: the Linked Issue section says there is no separate issue, which is acceptable for a maintainer-requested change. The Testing section does not check the first template checkbox (manual testing), and the Notes section lists no specific checks for Security, Cross-platform, Remote SSH, Mobile, backward compatibility, or performance. The AI Disclosure section is empty, and the template does not say whether it applies to this author. The explanation of the Why section is thin. The description is mostly complete.

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 37 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
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: 0a0184f6-9ef1-491f-bd29-2833c91495ae
Commits

Reviewing files that changed from the base of the PR and between 0b73edc and d3b9493.

Files selected for processing: 109
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • config/tsconfig.tc.web.json
  • config/tsconfig.web.json
  • mobile/src/home/MobileHomeJumpBackIn.test.tsx
  • mobile/src/home/MobileHomeTasksSection.test.tsx
  • src/renderer/src/components/GitLabItemDialog.test.tsx
  • src/renderer/src/components/activity/useActivityUnreadCount.test.ts
  • src/renderer/src/components/automations/AutomationAgentLaunchPicker.catalog.test.tsx
  • src/renderer/src/components/contextual-tours/ContextualTourOverlay.split-lifecycle.test.tsx
  • src/renderer/src/components/dashboard/reveal-dashboard-agent.test.ts
  • src/renderer/src/components/editor/absolute-tab-placement.test.ts
  • src/renderer/src/components/editor/check-details/actions/check-run-details-fix-with-ai.test.ts
  • src/renderer/src/components/editor/combined-diff/scroll-viewport/combined-diff-cursor-reveal.test.tsx
  • src/renderer/src/components/editor/image-viewer-zoom-ownership.test.tsx
  • src/renderer/src/components/editor/pdf-view-position.test.ts
  • src/renderer/src/components/editor/save/bytes/editor-bytes-documents.test.ts
  • src/renderer/src/components/feature-tips/ChatUiHereCornerCard.test.tsx
  • src/renderer/src/components/github-checks-tab-state.test.ts
  • src/renderer/src/components/host-picker/host-list-surfaces.large-config.test.tsx
  • src/renderer/src/components/link-actions/LinkActionPopover.subscriptions.test.tsx
  • src/renderer/src/components/mobile/use-mobile-page-paired-devices.test.ts
  • src/renderer/src/components/native-chat-resume-skipped-progress.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageComposer.raw-task.test.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.reveal-latest.test.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.mid-turn.test.tsx
  • src/renderer/src/components/native-chat/NativeChatUsageLimitAutoContinue.render-count.test.tsx
  • src/renderer/src/components/native-chat/native-chat-leaf-routing.test.ts
  • src/renderer/src/components/native-chat/native-chat-prompt-document.test.ts
  • src/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.ts
  • src/renderer/src/components/native-chat/structured-agent-session-delivery-notices.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-link-actions.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault/session-actions/ai-vault-session-log-open.test.ts
  • src/renderer/src/components/right-sidebar/checks-panel/review-actions/checks-panel-review-creation.test.ts
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerHandlers.test.ts
  • src/renderer/src/components/right-sidebar/file-explorer/panel/file-explorer-row-context-menu.test.tsx
  • src/renderer/src/components/settings/artifacts/ArtifactsSettingsPane.test.tsx
  • src/renderer/src/components/settings/orchestration/OrchestrationPane.test.tsx
  • src/renderer/src/components/settings/source-control/source-control-action-recipe-draft-sync.test.tsx
  • src/renderer/src/components/settings/ssh/server-actions/SshHostRecoverServerAction.test.tsx
  • src/renderer/src/components/sidebar/Sidebar.test.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • src/renderer/src/components/sidebar/host-admission/ssh/add-remote-host-ssh-actions.test.ts
  • src/renderer/src/components/sidebar/project-admission/host-selection/use-add-repo-wsl-host-offer.test.tsx
  • src/renderer/src/components/sidebar/workspace-actions/deletion/preserved-branch-batch-toast.test.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-activity-summary-subscription.test.tsx
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-remote-attribution.test.ts
  • src/renderer/src/components/sidebar/workspace-card/review/workspace-attachment-source-result.test.ts
  • src/renderer/src/components/sidebar/worktree-list/controls/sidebar-filter-state.test.ts
  • src/renderer/src/components/sidebar/worktree-list/grouping/cross-project-lineage.test.ts
  • src/renderer/src/components/sidebar/worktree-list/grouping/worktree-list-groups-mobile-parity.test.ts
  • src/renderer/src/components/sidebar/worktree-list/navigation/folder-reveal.test.ts
  • src/renderer/src/components/status-bar/ClaudeSwitcherMenu.observation.test.tsx
  • src/renderer/src/components/status-bar/SkillUpdateStatusSegment.test.tsx
  • src/renderer/src/components/status-bar/use-resource-usage-actions.test.tsx
  • src/renderer/src/components/tab-bar/QuickLaunchButton.test.ts
  • src/renderer/src/components/tab-bar/TabBar.windows-shell-ssh-host.test.ts
  • src/renderer/src/components/task-page/jira/IssueUserField.test.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-favourite-catalogue.test.tsx
  • src/renderer/src/components/task-page/linear/task-page-linear-in-orca-issues.test.ts
  • src/renderer/src/components/terminal-pane/agent-completion-local-exit-confirmation.test.ts
  • src/renderer/src/components/terminal-pane/mobile-overlay-bind.test.tsx
  • src/renderer/src/components/terminal-pane/pty-connection-park-reveal-model-snapshot.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/main-pane-resume-banner.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-resubscribe-after-deadline.test.ts
  • src/renderer/src/components/terminal-pane/repro-8832-url-next-line.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ime-hangul-syllable-flush.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ime-substituted-text-commit.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ime-user-input-provenance.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ime-won-composition-order.test.ts
  • src/renderer/src/components/terminal-pane/terminal-link-wsl-path-mapping.test.ts
  • src/renderer/src/components/terminal-pane/terminal-parked-watcher-sleep-preserved-exit.test.ts
  • src/renderer/src/components/terminal-pane/terminal-restore-sgr-latch.test.ts
  • src/renderer/src/components/terminal-pane/xterm-bypass-policy-interrupt.test.ts
  • src/renderer/src/components/terminal-scrollback-decoration-eviction.test.ts
  • src/renderer/src/components/terminal/terminal-provider-snapshot-bound-pty-ids.test.ts
  • src/renderer/src/components/terminal/window-close-running-work.test.ts
  • src/renderer/src/components/wsl-move/wsl-move-scope-rows.test.ts
  • src/renderer/src/hooks/composer-state/composer-name-source-selection.test.ts
  • src/renderer/src/hooks/ipc-events/agent-status-pane-routing-index.test.ts
  • src/renderer/src/lib/agent-launch-through-host.test.ts
  • src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-prompt-stop.test.ts
  • src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-resume-identity.test.ts
  • src/renderer/src/lib/keyboard-layout/option-as-alt-probe.test.ts
  • src/renderer/src/lib/new-agent-prompt-outcome.test.ts
  • src/renderer/src/lib/pane-manager/pane-cursor-blink-suspension.test.ts
  • src/renderer/src/runtime/observed-provider-accounts.test.tsx
  • src/renderer/src/runtime/runtime-host-contact-regained.test.ts
  • src/renderer/src/runtime/runtime-provider-accounts-client.test.ts
  • src/renderer/src/runtime/session-tab-rows-main-window-parity.test.ts
  • src/renderer/src/runtime/structured-launch-cancel-layout-owner.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync-editor-tabs.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync-mirror-identity.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync-reconnect-resubscribe.test.tsx
  • src/renderer/src/runtime/web-session-tabs-sync-snapshot-batch.test.ts
  • src/renderer/src/runtime/workspace-layout-frame-records.test.ts
  • src/renderer/src/store/github/check-details-ingestion.test.ts
  • src/renderer/src/store/runtime-status-subscriptions.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-runtime-orchestration.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-worktree-purge-leak.test.ts
  • src/renderer/src/store/slices/browser-cleanup-close.test.ts
  • src/renderer/src/store/slices/detected-worktree-refresh-leases.test.ts
  • src/renderer/src/store/slices/editor-recently-closed-tabs.test.ts
  • src/renderer/src/store/slices/github-work-items-error-envelope.test.ts
  • src/renderer/src/store/slices/hosted-review.test.ts
  • src/renderer/src/store/slices/repos.test.ts
  • src/renderer/src/store/slices/server-editor-file-restart-identity.test.ts
  • src/renderer/src/store/slices/worktrees-terminal-reference-admission.test.ts
  • src/shared/automation-launch-source-edits.test.ts
Files with no reviewable changes: 71
  • src/renderer/src/components/terminal-pane/terminal-parked-watcher-sleep-preserved-exit.test.ts
  • src/renderer/src/components/settings/orchestration/OrchestrationPane.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/controls/sidebar-filter-state.test.ts
  • src/renderer/src/lib/keyboard-layout/option-as-alt-probe.test.ts
  • src/renderer/src/components/task-page/jira/IssueUserField.test.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerHandlers.test.ts
  • src/renderer/src/hooks/ipc-events/agent-status-pane-routing-index.test.ts
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • mobile/src/home/MobileHomeTasksSection.test.tsx
  • src/renderer/src/store/slices/worktrees-terminal-reference-admission.test.ts
  • src/renderer/src/store/slices/detected-worktree-refresh-leases.test.ts
  • src/renderer/src/components/settings/artifacts/ArtifactsSettingsPane.test.tsx
  • src/renderer/src/store/slices/repos.test.ts
  • src/renderer/src/runtime/web-session-tabs-sync-reconnect-resubscribe.test.tsx
  • src/renderer/src/components/terminal-scrollback-decoration-eviction.test.ts
  • src/renderer/src/components/native-chat/NativeChatResolvedView.reveal-latest.test.tsx
  • mobile/src/home/MobileHomeJumpBackIn.test.tsx
  • src/renderer/src/hooks/composer-state/composer-name-source-selection.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault/session-actions/ai-vault-session-log-open.test.ts
  • src/shared/automation-launch-source-edits.test.ts
  • src/renderer/src/components/right-sidebar/file-explorer/panel/file-explorer-row-context-menu.test.tsx
  • src/renderer/src/components/editor/check-details/actions/check-run-details-fix-with-ai.test.ts
  • src/renderer/src/components/tab-bar/QuickLaunchButton.test.ts
  • src/renderer/src/store/slices/agent-status/agent-status-worktree-purge-leak.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ime-substituted-text-commit.test.ts
  • src/renderer/src/runtime/session-tab-rows-main-window-parity.test.ts
  • src/renderer/src/components/status-bar/ClaudeSwitcherMenu.observation.test.tsx
  • src/renderer/src/components/terminal-pane/mobile-overlay-bind.test.tsx
  • src/renderer/src/components/tab-bar/TabBar.windows-shell-ssh-host.test.ts
  • src/renderer/src/lib/new-agent-prompt-outcome.test.ts
  • src/renderer/src/components/github-checks-tab-state.test.ts
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.mid-turn.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/grouping/worktree-list-groups-mobile-parity.test.ts
  • src/renderer/src/runtime/runtime-provider-accounts-client.test.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-activity-summary-subscription.test.tsx
  • src/renderer/src/components/task-page/jira/task-page-jira-favourite-catalogue.test.tsx
  • src/renderer/src/components/contextual-tours/ContextualTourOverlay.split-lifecycle.test.tsx
  • src/renderer/src/components/link-actions/LinkActionPopover.subscriptions.test.tsx
  • src/renderer/src/components/native-chat/native-chat-runtime-send-launch-draft.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/main-pane-resume-banner.test.ts
  • src/renderer/src/store/github/check-details-ingestion.test.ts
  • src/renderer/src/lib/agent-session/launch/structured-agent-session-launch-prompt-stop.test.ts
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageComposer.raw-task.test.tsx
  • src/renderer/src/components/terminal-pane/terminal-ime-won-composition-order.test.ts
  • src/renderer/src/components/terminal/terminal-provider-snapshot-bound-pty-ids.test.ts
  • config/tsconfig.web.json
  • src/renderer/src/components/native-chat/NativeChatUsageLimitAutoContinue.render-count.test.tsx
  • src/renderer/src/components/mobile/use-mobile-page-paired-devices.test.ts
  • config/tsconfig.tc.web.json
  • src/renderer/src/components/terminal-pane/remote-runtime-resubscribe-after-deadline.test.ts
  • src/renderer/src/components/sidebar/project-admission/host-selection/use-add-repo-wsl-host-offer.test.tsx
  • src/renderer/src/components/feature-tips/ChatUiHereCornerCard.test.tsx
  • src/renderer/src/lib/agent-launch-through-host.test.ts
  • src/renderer/src/runtime/observed-provider-accounts.test.tsx
  • src/renderer/src/runtime/web-session-tabs-sync-snapshot-batch.test.ts
  • src/renderer/src/lib/pane-manager/pane-cursor-blink-suspension.test.ts
  • src/renderer/src/runtime/workspace-layout-frame-records.test.ts
  • src/renderer/src/store/slices/server-editor-file-restart-identity.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ime-hangul-syllable-flush.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection-park-reveal-model-snapshot.spec.ts
  • src/renderer/src/components/automations/AutomationAgentLaunchPicker.catalog.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/review-actions/checks-panel-review-creation.test.ts
  • src/renderer/src/components/status-bar/use-resource-usage-actions.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-link-actions.test.tsx
  • src/renderer/src/runtime/runtime-host-contact-regained.test.ts
  • src/renderer/src/components/activity/useActivityUnreadCount.test.ts
  • src/renderer/src/components/editor/save/bytes/editor-bytes-documents.test.ts
  • src/renderer/src/components/terminal-pane/agent-completion-local-exit-confirmation.test.ts
  • src/renderer/src/components/wsl-move/wsl-move-scope-rows.test.ts
  • src/renderer/src/components/sidebar/workspace-card/activity/worktree-agent-remote-attribution.test.ts
  • config/scripts/ci-shard-timings.json
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; 9 remain after this review.

@OrcaWin
OrcaWin merged commit 129999a into main Nov 4, 2026
52 checks passed
hiphapis added a commit to hiphapis/orca that referenced this pull request Nov 6, 2026
…worker-model-settings

Upstream moved the ground this PR stands on again:

- `GlobalSettingsBase` dropped `OrchestrationHeartbeatSettings` because the
  heartbeat feature is gone; the worker group stays.
- `startWorker` is now a flat flow with `bindRun`/`followUp` placement, so the
  defaults resolution moved below the follow-up block — placement overrides the
  flags with the previous worker's agent, and only what is still unset falls
  back to Settings > Orchestration.
- `startFederatedWorker` takes a `FederatedWorkerStartRequest`, so
  `defaultsApplied` moved onto that type.
- stablyai#37817 grouped the orchestration settings components, so the worker model
  setting, its test and the discovery module move into `settings/orchestration/`.
- stablyai#38812 and stablyai#38238 deleted both test files this PR had edited. The pane's
  search-keyword assertion goes with its suite; the Codex effort ceilings move
  to `agent-session/options/agent-session-option-catalog-claude-codex.test.ts`,
  matching the per-catalog layout upstream now uses.
- `src/shared` regrouped into `agent-launch/`, `agent-session/` and
  `terminal/appearance/`; every branch-owned import follows.

GPT-5.6 Sol keeps its own `low` default, so upstream's new reopen test gets the
same `medium` -> `low` correction its predecessor had.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016bQwYpaLivvvMAvmeUKDbH
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.

2 participants