Skip to content

test: remove 157 low-value tests and route-contract suite - #37038

Merged
OrcaWin merged 1 commit into
mainfrom
audit/remove-low-value-tests-891
Nov 1, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
audit/remove-low-value-tests-891

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2440 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2432
Prod 2 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8

Removes 157 low-value test declarations across native, CI tooling, CLI and mobile tests, including the entire PR route-contract suite. The removals include source/config inventory checks and repeated mock wiring. Drops the deleted suite's shard-timing entry.

Scoped external lint/format, retained-test body/wrapper checks, flaky-pattern scans and patch checks passed. Project tests and typechecks were not run locally; full PR Checks passed, including all 12 unit shards and the aggregate gate. Native compiler/runtime validation remains outstanding.

Current-main checks passed for all 193 recorded source/context paths. Tracker history renewal passed. Full CI covered the reviewed PR tree; unrelated main changes since that run were preserved, and the final combined tree was not rerun in CI. No replacement-coverage or complete dependency-closure claim.

@OrcaWin
OrcaWin marked this pull request as ready for review November 1, 2026 13:40
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: 1df82701-cca5-4bcd-a356-4c2d14208309
Commits

Reviewing files that changed from the base of the PR and between cf3d23c and a8cf39e.

Files selected for processing: 1
  • config/scripts/electron-builder-config.test.mjs
Files with no reviewable changes: 1
  • config/scripts/electron-builder-config.test.mjs

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

Walkthrough

The diff primarily removes test coverage across configuration scripts, mobile code, native computer-use code, CLI handlers, agent-hook installers, and startup configuration. It also removes one CI timing entry and changes one test import to type-only. The supplied summaries show no implementation changes. The mobile bundle CRLF rejection test remains.

Merge Risk: Minimal · up to a8cf3

No concrete merge-blocking issue is established. Complete the pending CI and native validation before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the scope, validation results, and outstanding native validation. However, it does not follow the required template. It omits the ELI5, What Changed, Why, Linked Issue, Visual… Complete the required template sections. Add a plain-language ELI5 summary, clear before-and-after behavior and mechanism, the reason for the change, an actual linked issue, and a Visual Proof section with attachments or N/A and a reason.…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title names the main change: removing 157 low-value tests and the route-contract suite. The raw summary confirms that the changes remove test declarations across several test files, and the delete…
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 names the main change: removing 157 low-value tests and the route-contract suite. The raw summary confirms that the changes remove test declarations across several test files, and the deleted pr-e2e-route-contracts test file matches the title. The title is specific and concise, with no vague terms or file lists. It does not describe the production change of 8 deleted lines, but that is minor and expected.

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 5 files.

Full details: Description check

Explanation

The description explains the scope, validation results, and outstanding native validation. However, it does not follow the required template. It omits the ELI5, What Changed, Why, Linked Issue, Visual Proof, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. It also does not provide the required issue link, visual-proof statement, or checklist status.

Resolution

Complete the required template sections. Add a plain-language ELI5 summary, clear before-and-after behavior and mechanism, the reason for the change, an actual linked issue, and a Visual Proof section with attachments or N/A and a reason. Complete the AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Document testing platforms and clearly identify any remaining validation gaps.

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

@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: 5
src/main/startup/configure-process.test.ts: 3

202-202: Trivial · Data Integrity & Integration · Quick win

Restore the development profile isolation assertion.

The remaining configureDevUserDataPath tests cover E2E home isolation, but the deleted test was the check that a normal development launch selects orca-dev instead of the packaged profile. If that default changes, a development launch can write to the packaged user-data path without this test detecting it. Keep a focused assertion for the default development path. (github.com)


355-355: Trivial · Security & Privacy · Quick win

Retain the Direct Sockets startup guard test.

The deleted disableUnsupportedChromiumFeatures suite checked that startup passes every Direct Sockets feature to Electron’s disable-features switch. If that list or its switch wiring changes, this file no longer detects the loss of a guard intended to prevent a hostile page from crashing its renderer. Restore a focused assertion for the emitted switch and feature list. (github.com)


534-534: Trivial · Functional Correctness · Quick win

Keep the hidden-page throttling assertion independent of GPU setup.

The deleted safe-graphics tests checked the IntensiveWakeUpThrottling opt-out separately from GPU feature setup. Startup applies that opt-out even when GPU fallback skips enableMainProcessGpuFeatures. Keep a focused test of the independent switch so a future change does not delay hidden-page agent notifications on fallback launches. (github.com)

native/computer-use-macos/Tests/OrcaComputerUseMacOSTests/BackgroundInputTransportTests.swift: 1

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

Keep regression coverage for chordEvents.

This deletion removes the assertions for chord key codes and Command-flag state. The remaining tests do not exercise chord events. Restore this focused test or add an equivalent higher-level check.

mobile/src/session/use-mobile-structured-agent-session-queued.test.tsx: 1

506-507: Trivial · Functional Correctness · Quick win

Restore coverage for the dispatched Edit outcome.

After Edit copies the card text, a dispatched delete shows Already sent — your text is still in the composer. (use-mobile-structured-queued-message-controls.ts:146-160). No retained test asserts that message, the copied argument that selects it, or the copied composer text on that path. A change to either one would not fail the mobile suite.

Restore the removed test Edit racing the drain still copies; the user hears it already went out from base 70256eab in use-mobile-structured-agent-session-queued.test.tsx. It asserts the false return, the single copied text, and the Already sent — your text is still in the composer. message.


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: 514485b0-486f-4a35-aa92-04ccfa834a76
Commits

Reviewing files that changed from the base of the PR and between 70256ea and cf3d23c.

Files selected for processing: 17
  • config/scripts/build-mobile-web-app-bundle.test.mjs
  • config/scripts/check-changed-code-quality.test.mjs
  • config/scripts/ci-shard-timings.json
  • config/scripts/electron-builder-config.test.mjs
  • config/scripts/pr-auxiliary-preflight-admission.test.mjs
  • config/scripts/pr-e2e-route-contracts.test.mjs
  • mobile/src/mobile-web-shell/use-mobile-web-shell-bridge.test.ts
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-image-attachments.test.ts
  • mobile/src/session/use-mobile-native-chat-controller.test.ts
  • mobile/src/session/use-mobile-structured-agent-session-queued.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session.test.tsx
  • native/computer-use-linux/runtime_keyboard_test.py
  • native/computer-use-macos/Tests/OrcaComputerUseMacOSTests/BackgroundInputTransportTests.swift
  • native/computer-use-macos/Tests/OrcaComputerUseMacOSTests/StableElementIndexesTests.swift
  • src/cli/handlers/account.test.ts
  • src/main/agent-hooks/remote-hook-service-installers.test.ts
  • src/main/startup/configure-process.test.ts
Files with no reviewable changes: 12
  • mobile/src/session/use-mobile-structured-agent-session.test.tsx
  • config/scripts/pr-e2e-route-contracts.test.mjs
  • mobile/src/session/native-chat/composer/use-mobile-native-chat-image-attachments.test.ts
  • config/scripts/ci-shard-timings.json
  • native/computer-use-linux/runtime_keyboard_test.py
  • src/cli/handlers/account.test.ts
  • src/main/agent-hooks/remote-hook-service-installers.test.ts
  • config/scripts/electron-builder-config.test.mjs
  • config/scripts/check-changed-code-quality.test.mjs
  • config/scripts/pr-auxiliary-preflight-admission.test.mjs
  • mobile/src/mobile-web-shell/use-mobile-web-shell-bridge.test.ts
  • mobile/src/session/use-mobile-structured-agent-session-queued.test.tsx

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 force-pushed the audit/remove-low-value-tests-891 branch from cf3d23c to a8cf39e Compare November 1, 2026 13:56
@OrcaWin
OrcaWin merged commit 0646d26 into main Nov 1, 2026
64 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