Repository navigation
test: remove 140 low-value cases and 49 suites - #34062
Conversation
|
Note Reviews pausedIt 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
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
🧹 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.
resolveFederatedWorkerStartBudgetsnormalizes0and negativetimeoutMsvalues toORCHESTRATION_READINESS_TIMEOUT_MS, then derivesouterDeadlineMsfrom 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
writeOrcadHostAccountLaunchEnvand then reads the result withreadOrcadHostAccountLaunchEnv. Retain one representative round-trip case to cover the writer's temporary-file andrenameSyncpath.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
Files selected for processing: 75-
.github/workflows/pr.ymlconfig/flaky-test-pattern-baseline.txtconfig/reliability-gates.jsoncconfig/scripts/ci-unit-files.mjsconfig/scripts/pr-package-test-paths.mjssrc/main/browser/browser-route-h3-egress-electron-main.tssrc/main/browser/browser-route-h3-egress-fixture.tssrc/main/browser/browser-route-h3-egress.electron.test.tssrc/main/browser/cookies/browser-cookie-partition-summary.test.tssrc/main/codex/app-server/codex-app-server-exit-error.test.tssrc/main/codex/codex-hook-legacy-profile-block.test.tssrc/main/codex/codex-runtime-home-launch-preparation.test.tssrc/main/computer/computer-sidecar-diagnostics.test.tssrc/main/computer/desktop-script-provider-bridge.test.tssrc/main/computer/desktop-script-provider-paste-validation.test.tssrc/main/crash-reporting/gpu-fallback-restart-prompt.test.tssrc/main/crash-reporting/suppressed-process-gone-breadcrumb.test.tssrc/main/daemon/daemon-async-io-spawn-health.test.tssrc/main/daemon/daemon-foreground-confirmation-protocol.test.tssrc/main/daemon/daemon-native-pty-exception.test.tssrc/main/daemon/pty-subprocess/foreground-fallback-process.test.tssrc/main/daemon/serialize-grid-cell-descriptors.test.tssrc/main/daemon/terminal-attach-cancellation.test.tssrc/main/daemon/wsl-cold-restore-cwd.test.tssrc/main/emulator/android/android-input-commands.test.tssrc/main/emulator/android/scrcpy-server-deploy.test.tssrc/main/git/git-username.test.tssrc/main/github/pr-review-comment-lines.test.tssrc/main/hermes/hermes-windows-home.test.tssrc/main/host/electron-repo-icon-png.test.tssrc/main/integration-credential-file-windows-acl.test.tssrc/main/ipc/ai-vault-search-merged-cursor.test.tssrc/main/ipc/bounded-warning-dedupe.test.tssrc/main/ipc/filesystem/local-file-range-read.test.tssrc/main/ipc/pty/pane/terminal-spawn-restore.test.tssrc/main/ipc/pty/provider/local-provider-rebound.test.tssrc/main/ipc/skill-ipc-main-window.test.tssrc/main/ipc/workspace-cleanup-local-git-routing.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-final-tail-reservation.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-reservation-directory.test.tssrc/main/network/transient-download-error.test.tssrc/main/node-runtime/appimage-bundled-node-runtime.test.tssrc/main/orcad/orcad-host-account-launch-env-store.test.tssrc/main/orcad/orcad-host-unavailable.test.tssrc/main/orcad/orcad-profile-state-telemetry.test.tssrc/main/orcad/orcad-wsl-guest-shell-path.test.tssrc/main/pty/managed-ssh-host-login-shell.test.tssrc/main/runtime/mobile-session-tab-close-refusal-message.test.tssrc/main/runtime/orca-runtime-resume-outcome-layout-owner.test.tssrc/main/runtime/orca-runtime-terminal-pane-reveal.test.tssrc/main/runtime/orca-runtime-tests/terminal-workspace-id-env.spec.tssrc/main/runtime/orchestration/coordinator-stale-base-flag.test.tssrc/main/runtime/orchestration/db/legacy-question-identity.test.tssrc/main/runtime/orchestration/orchestration-all-start-versions-migration.test.tssrc/main/runtime/pty-exit-record-wait.test.tssrc/main/runtime/push/push-cleanup-auth-expiry.test.tssrc/main/runtime/remote-viewer-launch-env.test.tssrc/main/runtime/rpc/methods/browser-tab-create-schema.test.tssrc/main/runtime/rpc/methods/jira-board-filter-rpc.test.tssrc/main/runtime/rpc/methods/orchestration/messaging/send-invalid-type.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-budgets.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-outcome-classification.test.tssrc/main/runtime/rpc/methods/ssh-target-management-unserved.test.tssrc/main/runtime/rpc/methods/terminal-read-screen-cursor.test.tssrc/main/runtime/runtime-terminal-client-use.spec.tssrc/main/runtime/terminal/layout/hook-status-title-subscription.test.tssrc/main/runtime/terminal/recovery/layout-command-pane-starts.test.tssrc/main/runtime/tui-idle-evidence-source.test.tssrc/main/source-control/hosted-review-dirty-preflight-wsl-paths.test.tssrc/main/speech/stt-worker-model-config.test.tssrc/main/ssh/relay-bundle-paths.test.tssrc/main/telemetry/classify-error.test.tssrc/main/usage/usage-worktree-refs.test.tssrc/main/window/resource-view-admission.test.tssrc/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.
-
This comment has been minimized.
This comment has been minimized.
* 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)
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.