Skip to content

test: remove 140 low-value cases and 49 suites - #34062

Merged
OrcaWin merged 6 commits into
mainfrom
audit/test-value-493
Oct 26, 2026
Merged

OrcaWin merged 6 commits into
mainfrom
audit/test-value-493

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 69 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2212 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2205
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​16 $\color{#cf222e}{\Huge{\mathbf{−}}}$​404 $\color{#cf222e}{\Huge{\mathbf{−}}}$​388

Removes 140 low-value test cases across 100 reviewed sources, including 49 entire suites and two orphan fixtures. Keeps 80 cases that exercise meaningful behavior, including lifecycle races, refusal boundaries, and state transitions.

The removals cover schema and constant inventories, mock forwarding checks, trivial classifiers, and a standalone Chromium experiment that bypasses Orca's route admission. Updates test discovery and reliability metadata to remove retired references and narrow current coverage claims while preserving historical run evidence.

Also removes one unused chat-menu import left by the upstream merge, which otherwise blocks lint and typecheck.

Validation: isolated static review of every authored declaration and callback, byte comparison of all 80 retained cases, and composition checks that preserve upstream changes. Fresh PR CI verifies the refreshed head.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

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: a2b405a8-ba57-42b4-aaf1-d99911158ce0
Commits

Reviewing files that changed from the base of the PR and between 8bba555 and 35dcd19.

Files selected for processing: 1
  • tests/e2e/helpers/host-split-and-sleep-journeys.ts

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

Walkthrough

The change removes the browser-route H3 egress probe and its CI references. It also removes or narrows tests across browser, daemon, IPC, runtime, and other application areas, with corresponding updates to selected reliability-gate records. The E2E worktree helper now sets branchNameOverride to parity-setup.

Priority: Low

Merge Risk: Low · up to 35dcd

Mergeable with follow-up to preserve or replace the removed coverage for these behaviors.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the main test removals and validation, but it omits the required template sections and checklist details, including the linked issue, visual proof or N/A justification, testin… Rewrite the description using the repository template. Add an actual linked issue, complete ELI5, What Changed, Why, Visual Proof, Testing, Review, Agent skill upstream boundary, Notes, and Checklist sections. Mark UI proof as N/A with a re…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 8 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the primary change: removing 140 low-value test cases and 49 suites.
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 explains the main test removals and validation, but it omits the required template sections and checklist details, including the linked issue, visual proof or N/A justification, testing checkboxes, AI disclosure, review notes, boundary declaration, and risk checklist.

Resolution

Rewrite the description using the repository template. Add an actual linked issue, complete ELI5, What Changed, Why, Visual Proof, Testing, Review, Agent skill upstream boundary, Notes, and Checklist sections. Mark UI proof as N/A with a reason if applicable, and record the required test and platform validation status.

Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • 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

Comment @coderabbitai help to get the list of available commands.

@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: 3
src/main/runtime/rpc/methods/orchestration/worker/worker-start-budgets.test.ts: 1

3-3: Trivial · Functional Correctness · Quick win

Retain coverage for non-positive timeout normalization.

resolveFederatedWorkerStartBudgets normalizes 0 and negative timeoutMs values to ORCHESTRATION_READINESS_TIMEOUT_MS, then derives outerDeadlineMs from the normalized readiness timeout. The remaining tests do not cover this behavior. Restore a test for both inputs and the resulting deadline.

Suggested fix
+import {
+  ORCHESTRATION_READINESS_TIMEOUT_MS,
+  ORCHESTRATION_WORKER_START_CLIENT_GRACE_MS
+} from '../../../../../../shared/orchestration-timing-budgets'
...
+  it('normalizes non-positive requests to the ordinary readiness default', () => {
+    const expectedOuterDeadline =
+      1_000 + ORCHESTRATION_READINESS_TIMEOUT_MS + ORCHESTRATION_WORKER_START_CLIENT_GRACE_MS
+
+    for (const timeoutMs of [0, -1]) {
+      const budgets = resolveFederatedWorkerStartBudgets(timeoutMs, 1_000)
+      expect(budgets.readinessTimeoutMs).toBe(ORCHESTRATION_READINESS_TIMEOUT_MS)
+      expect(budgets.outerDeadlineMs).toBe(expectedOuterDeadline)
+    }
+  })
src/main/orcad/orcad-host-account-launch-env-store.test.ts: 1

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

Keep one write-then-read round-trip test for launch-environment persistence.

No other test exercises writeOrcadHostAccountLaunchEnv and then reads the result with readOrcadHostAccountLaunchEnv. Retain one representative round-trip case to cover the writer's temporary-file and renameSync path.

src/main/orcad/orcad-profile-state-telemetry.test.ts: 1

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

Retain one formatter contract test.

No other test asserts the formatted event name and all five selection fields. Keep one focused formatter assertion. The sink-forwarding test can remain removed.

Suggested fix
 describe('orcad profile-state telemetry', () => {
+  it('formats the bounded authority-selection event', () => {
+    expect(formatOrcadProfileStateAuthoritySelected(selection)).toBe(
+      '[orcad-telemetry] {"event":"profile_state_authority_selected","backend":"sqlite","classification":"json-only","authority_mode":"sqlite-established","runtime":"orcad","migrated":true}'
+    )
+  })
+
   it('strips unexpected runtime fields before writing the record', () => {

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: eaee7d68-f4bd-46a1-b4e9-c14076ef6508
Commits

Reviewing files that changed from the base of the PR and between 2dd8207 and 3274385.

Files selected for processing: 75
  • .github/workflows/pr.yml
  • config/flaky-test-pattern-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci-unit-files.mjs
  • config/scripts/pr-package-test-paths.mjs
  • src/main/browser/browser-route-h3-egress-electron-main.ts
  • src/main/browser/browser-route-h3-egress-fixture.ts
  • src/main/browser/browser-route-h3-egress.electron.test.ts
  • src/main/browser/cookies/browser-cookie-partition-summary.test.ts
  • src/main/codex/app-server/codex-app-server-exit-error.test.ts
  • src/main/codex/codex-hook-legacy-profile-block.test.ts
  • src/main/codex/codex-runtime-home-launch-preparation.test.ts
  • src/main/computer/computer-sidecar-diagnostics.test.ts
  • src/main/computer/desktop-script-provider-bridge.test.ts
  • src/main/computer/desktop-script-provider-paste-validation.test.ts
  • src/main/crash-reporting/gpu-fallback-restart-prompt.test.ts
  • src/main/crash-reporting/suppressed-process-gone-breadcrumb.test.ts
  • src/main/daemon/daemon-async-io-spawn-health.test.ts
  • src/main/daemon/daemon-foreground-confirmation-protocol.test.ts
  • src/main/daemon/daemon-native-pty-exception.test.ts
  • src/main/daemon/pty-subprocess/foreground-fallback-process.test.ts
  • src/main/daemon/serialize-grid-cell-descriptors.test.ts
  • src/main/daemon/terminal-attach-cancellation.test.ts
  • src/main/daemon/wsl-cold-restore-cwd.test.ts
  • src/main/emulator/android/android-input-commands.test.ts
  • src/main/emulator/android/scrcpy-server-deploy.test.ts
  • src/main/git/git-username.test.ts
  • src/main/github/pr-review-comment-lines.test.ts
  • src/main/hermes/hermes-windows-home.test.ts
  • src/main/host/electron-repo-icon-png.test.ts
  • src/main/integration-credential-file-windows-acl.test.ts
  • src/main/ipc/ai-vault-search-merged-cursor.test.ts
  • src/main/ipc/bounded-warning-dedupe.test.ts
  • src/main/ipc/filesystem/local-file-range-read.test.ts
  • src/main/ipc/pty/pane/terminal-spawn-restore.test.ts
  • src/main/ipc/pty/provider/local-provider-rebound.test.ts
  • src/main/ipc/skill-ipc-main-window.test.ts
  • src/main/ipc/workspace-cleanup-local-git-routing.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-final-tail-reservation.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-reservation-directory.test.ts
  • src/main/network/transient-download-error.test.ts
  • src/main/node-runtime/appimage-bundled-node-runtime.test.ts
  • src/main/orcad/orcad-host-account-launch-env-store.test.ts
  • src/main/orcad/orcad-host-unavailable.test.ts
  • src/main/orcad/orcad-profile-state-telemetry.test.ts
  • src/main/orcad/orcad-wsl-guest-shell-path.test.ts
  • src/main/pty/managed-ssh-host-login-shell.test.ts
  • src/main/runtime/mobile-session-tab-close-refusal-message.test.ts
  • src/main/runtime/orca-runtime-resume-outcome-layout-owner.test.ts
  • src/main/runtime/orca-runtime-terminal-pane-reveal.test.ts
  • src/main/runtime/orca-runtime-tests/terminal-workspace-id-env.spec.ts
  • src/main/runtime/orchestration/coordinator-stale-base-flag.test.ts
  • src/main/runtime/orchestration/db/legacy-question-identity.test.ts
  • src/main/runtime/orchestration/orchestration-all-start-versions-migration.test.ts
  • src/main/runtime/pty-exit-record-wait.test.ts
  • src/main/runtime/push/push-cleanup-auth-expiry.test.ts
  • src/main/runtime/remote-viewer-launch-env.test.ts
  • src/main/runtime/rpc/methods/browser-tab-create-schema.test.ts
  • src/main/runtime/rpc/methods/jira-board-filter-rpc.test.ts
  • src/main/runtime/rpc/methods/orchestration/messaging/send-invalid-type.test.ts
  • src/main/runtime/rpc/methods/orchestration/worker/worker-start-budgets.test.ts
  • src/main/runtime/rpc/methods/orchestration/worker/worker-start-outcome-classification.test.ts
  • src/main/runtime/rpc/methods/ssh-target-management-unserved.test.ts
  • src/main/runtime/rpc/methods/terminal-read-screen-cursor.test.ts
  • src/main/runtime/runtime-terminal-client-use.spec.ts
  • src/main/runtime/terminal/layout/hook-status-title-subscription.test.ts
  • src/main/runtime/terminal/recovery/layout-command-pane-starts.test.ts
  • src/main/runtime/tui-idle-evidence-source.test.ts
  • src/main/source-control/hosted-review-dirty-preflight-wsl-paths.test.ts
  • src/main/speech/stt-worker-model-config.test.ts
  • src/main/ssh/relay-bundle-paths.test.ts
  • src/main/telemetry/classify-error.test.ts
  • src/main/usage/usage-worktree-refs.test.ts
  • src/main/window/resource-view-admission.test.ts
  • src/main/workspace-space-scan-control.test.ts
Files with no reviewable changes: 68
  • src/main/daemon/daemon-native-pty-exception.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-reservation-directory.test.ts
  • src/main/daemon/daemon-async-io-spawn-health.test.ts
  • src/main/git/git-username.test.ts
  • src/main/runtime/push/push-cleanup-auth-expiry.test.ts
  • src/main/orcad/orcad-wsl-guest-shell-path.test.ts
  • src/main/speech/stt-worker-model-config.test.ts
  • src/main/node-runtime/appimage-bundled-node-runtime.test.ts
  • src/main/host/electron-repo-icon-png.test.ts
  • src/main/runtime/orchestration/orchestration-all-start-versions-migration.test.ts
  • config/flaky-test-pattern-baseline.txt
  • src/main/computer/desktop-script-provider-bridge.test.ts
  • src/main/daemon/wsl-cold-restore-cwd.test.ts
  • .github/workflows/pr.yml
  • src/main/ipc/pty/pane/terminal-spawn-restore.test.ts
  • src/main/usage/usage-worktree-refs.test.ts
  • src/main/ssh/relay-bundle-paths.test.ts
  • src/main/runtime/rpc/methods/ssh-target-management-unserved.test.ts
  • src/main/runtime/orca-runtime-terminal-pane-reveal.test.ts
  • src/main/ipc/pty/provider/local-provider-rebound.test.ts
  • src/main/ipc/filesystem/local-file-range-read.test.ts
  • src/main/runtime/terminal/layout/hook-status-title-subscription.test.ts
  • src/main/runtime/pty-exit-record-wait.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-final-tail-reservation.test.ts
  • src/main/runtime/tui-idle-evidence-source.test.ts
  • src/main/runtime/rpc/methods/jira-board-filter-rpc.test.ts
  • src/main/runtime/mobile-session-tab-close-refusal-message.test.ts
  • src/main/runtime/rpc/methods/browser-tab-create-schema.test.ts
  • src/main/browser/browser-route-h3-egress.electron.test.ts
  • src/main/emulator/android/scrcpy-server-deploy.test.ts
  • src/main/browser/browser-route-h3-egress-fixture.ts
  • src/main/emulator/android/android-input-commands.test.ts
  • src/main/runtime/orca-runtime-resume-outcome-layout-owner.test.ts
  • src/main/daemon/daemon-foreground-confirmation-protocol.test.ts
  • src/main/codex/codex-hook-legacy-profile-block.test.ts
  • src/main/integration-credential-file-windows-acl.test.ts
  • src/main/pty/managed-ssh-host-login-shell.test.ts
  • src/main/computer/desktop-script-provider-paste-validation.test.ts
  • src/main/runtime/terminal/recovery/layout-command-pane-starts.test.ts
  • src/main/browser/browser-route-h3-egress-electron-main.ts
  • src/main/codex/app-server/codex-app-server-exit-error.test.ts
  • src/main/runtime/orchestration/coordinator-stale-base-flag.test.ts
  • src/main/crash-reporting/gpu-fallback-restart-prompt.test.ts
  • src/main/window/resource-view-admission.test.ts
  • src/main/network/transient-download-error.test.ts
  • src/main/crash-reporting/suppressed-process-gone-breadcrumb.test.ts
  • src/main/runtime/remote-viewer-launch-env.test.ts
  • src/main/runtime/orchestration/db/legacy-question-identity.test.ts
  • src/main/runtime/orca-runtime-tests/terminal-workspace-id-env.spec.ts
  • src/main/hermes/hermes-windows-home.test.ts
  • src/main/orcad/orcad-host-unavailable.test.ts
  • src/main/daemon/pty-subprocess/foreground-fallback-process.test.ts
  • src/main/ipc/skill-ipc-main-window.test.ts
  • src/main/telemetry/classify-error.test.ts
  • src/main/github/pr-review-comment-lines.test.ts
  • src/main/runtime/rpc/methods/orchestration/messaging/send-invalid-type.test.ts
  • src/main/daemon/serialize-grid-cell-descriptors.test.ts
  • src/main/codex/codex-runtime-home-launch-preparation.test.ts
  • config/scripts/pr-package-test-paths.mjs
  • src/main/workspace-space-scan-control.test.ts
  • src/main/computer/computer-sidecar-diagnostics.test.ts
  • src/main/runtime/runtime-terminal-client-use.spec.ts
  • src/main/ipc/workspace-cleanup-local-git-routing.test.ts
  • src/main/source-control/hosted-review-dirty-preflight-wsl-paths.test.ts
  • config/scripts/ci-unit-files.mjs
  • src/main/runtime/rpc/methods/terminal-read-screen-cursor.test.ts
  • src/main/runtime/rpc/methods/orchestration/worker/worker-start-outcome-classification.test.ts
  • src/main/browser/cookies/browser-cookie-partition-summary.test.ts

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

@blacksmith-sh

This comment has been minimized.

@OrcaWin
OrcaWin merged commit ad2156c into main Oct 26, 2026
73 of 75 checks passed
audichuang pushed a commit to audichuang/orca that referenced this pull request Oct 27, 2026
* test: remove 140 low-value cases and redundant browser probes

* fix: remove unused upstream chat menu import

* test: pin the host-split layout fixture branch

---------

Co-authored-by: Orca Test Audit <test-audit@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
(cherry picked from commit ad2156c)
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