Skip to content

test: remove 244 low-value tests - #39781

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove 244 low-value test definitions (283 expanded cases), including three whole suites and an unused fixture.

What Changed

Delete mock-result assertions, configuration inventories, duplicate scenarios, and visual repro assertions that do not establish the claimed defect. Retain 285 selected definitions. Clean up command selectors, shard timings, flaky allowances, and reliability metadata; preserve historical receipts while retiring affected coverage claims. Production implementation is unchanged.

Why

Reduce maintenance and CI work for tests whose regression value does not justify their cost. Retained tests do not replace every deleted assertion.

Linked Issue

Maintenance requested directly by the repository owner; no separate issue.

Visual Proof

N/A — test and runner cleanup without product UI changes. Nine retained Electron cases passed on an isolated Linux display.

Testing

  • Local automated validation: 1,412 main-process tests passed, five skipped; 36 unit cases and nine Electron cases passed.
  • Normal commit hooks and all 43 changed-file checks passed, including typechecks and reliability gates.
  • Full PR workflow, required checks, mobile web build, WSL, packaging, and aggregate gate passed.
  • Test removals reviewed against the repository anti-patterns; no new tests added.

Another 53 selected E2E definitions were not run locally, including Windows/WSL cases. Two selected macOS-only definitions were skipped on Linux.

Risk

Level: Medium. Removed scenarios lose their standalone checks, including runtime-host predicate refusal, private hash-helper rejection, and catalog metadata checks. No equivalent replacement coverage is claimed. Production refusal and integrity checks remain unchanged. A plain revert restores the removed tests.

Review

Independent source and metadata review completed. Automated review's request to retain the runtime-host predicate test is declined as an intentional removal. The retired hash test exercises a private helper with an expected digest calculated by the same crypto API; it does not prove that the full installer refuses a corrupt download. Its standalone check is intentionally retired without claiming replacement coverage. Bare imports deliberately preserve module evaluation from the original suites; removing them is outside this batch's approved support cleanup.

Agent skill upstream boundary

  • No upstream skill-installer material copied or translated.

Notes

Cross-platform, SSH/remote, mobile, mixed-version, and folder-workspace impact considered. Linux local execution and platform CI evidence are stated above; no native-device or deployed SSH execution is claimed.

Checklist

  • Focused test-removal batch with associated runner metadata cleanup.
  • Change, rationale, validation limits, coverage loss, and rollback explained.
  • Self-reviewed for correctness, security, performance, and compatibility.
  • Full CI and final local checks passed.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The pull request removes or narrows test coverage across runtime, source-control, startup, updater, application-service, and end-to-end areas. It adds window-authority recovery and WSL runtime-retention test cases. It also updates flaky-test baselines, CI timing records, WSL participation reporting, and the terminal rendering evidence command.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description follows the template's main sections (ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, Checklist). It is… Add a linked issue, or state the authority for the change and confirm whether the author is a stablyai maintainer. The template requires an issue link for outside contributors. Complete the AI Disclosure section, or state that it does not a…
Passed Passed checks: 4 passed

Check name Status Explanation
Title check Passed The title "test: remove 244 low-value tests" matches the main change. The changeset deletes about 244 test definitions across many spec files and removes related flaky-test baseline, shard timing, and…
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 "test: remove 244 low-value tests" matches the main change. The changeset deletes about 244 test definitions across many spec files and removes related flaky-test baseline, shard timing, and script entries. The title does not name the specific areas affected, but it describes the primary change accurately.

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 19 files. (2 skipped: 2 unsupported.)

Full details: Description check

Explanation

The description follows the template's main sections (ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, Checklist). It is detailed about the scope, validation limits, coverage loss, and rollback. The Linked Issue section does not link an issue and says only 'Maintenance requested directly by the repository owner; no separate issue.' The template requires an issue link (Fixes #) and states that outside contributors' PRs will be ignored without one. The AI Disclosure section is empty. The Risk section gives a level and a rollback path. The Review section includes a note on declined automated-review feedback. The description does not give a concrete before/after for the test-suite change, and it does not explain how the test anti-pattern checkbox was verified beyond saying the removals were reviewed.

Resolution

Add a linked issue, or state the authority for the change and confirm whether the author is a stablyai maintainer. The template requires an issue link for outside contributors. Complete the AI Disclosure section, or state that it does not apply because the author is a stablyai team member. Confirm that the 'Every added test fails without this change' checkbox applies to this change. The change adds no tests, so explain that or leave the box unchecked. Replace the 'Fixes #' placeholder with a real issue reference, or remove it when no issue applies.

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

@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: 1

src/main/source-control/hosted-review-execution-host-routing.test.ts: 1

162-163: Trivial · Maintainability & Code Quality · Low value

Retain a test for runtime-host refusal.

readHostedReviewForBranch accepts a runtime host ID and must reject it for a nonempty branch. The remaining test uses an SSH host and does not cover this refusal. Retain one hardcoded runtime-host rejection test at the owning layer.

Source: Learnings

Additional comments: 5

src/main/ssh/connection/ssh-connection-sftp-namespace.test.ts: 1

52-53: Trivial · Maintainability & Code Quality · Low value

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Side-effect imports remain, but they are probably dead code.

The test file no longer names isSshSessionLimitError or the system-SSH transfer functions. The context shows that the suite still mocks system-ssh-file-transfer through importOriginal. That mock does not need a separate import in the test file. Remove these two imports if no other remaining test depends on their load-time effects.

src/main/skills/bundled-skill-install/layouts.test.ts: 1

18-19: Trivial · Maintainability & Code Quality · Low value

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Replace the side-effect imports with removal, or confirm they are needed.

Lines 18-19 now import ../skill-install-provenance and ../skill-install-recovery only for side effects. The removed tests used their path helpers. If the remaining tests do not need these modules to load, delete both imports. Unused side-effect imports hide what the test depends on, and they can run module initialization that the test does not use.

src/main/speech/model-manager.test.ts: 1

1-1: Trivial · Maintainability & Code Quality · Low value

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Remove the leftover node:crypto side-effect import.

Line 1 imports node:crypto for side effects. The removed hash tests were the only consumers, and node:crypto has no initialization side effects that a test needs. Delete the line.

The PR also removes the only direct tests for the hash check, the HTTPS-only download rule, and the catalog pins. src/main/speech/model-manager.ts line 329 still calls verifyFileSha256. The PR states that removed scenarios lose their standalone checks. Confirm that another layer covers hash-mismatch rejection before merge. A bad hash check is a supply-chain integrity risk for downloaded model files.

tests/e2e/terminal-hidden-view-parking.spec.ts: 1

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

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Remove the bare side-effect import of the park-verdict telemetry module, or document why it is needed.

The spec no longer uses any export from terminal-park-verdict-flip-telemetry. The verdict-window constant import and its settle delay were removed in this change. The bare import now loads renderer code (crash-breadcrumb-recorder, react-update-depth-attribution) into the Playwright Node worker. The spec gets no benefit from this.

If the import exists to satisfy a gate or ratchet, add a comment that says so. Otherwise, delete it.

♻️ Proposed fix

-import '../../src/renderer/src/components/terminal-pane/parking/verdict/terminal-park-verdict-flip-telemetry'
tests/e2e/github-project-provider-columns.unit.test.ts: 1

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

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Remove the redundant side-effect import.

fetchAllItems on Line 11 already loads project-view-item-page through project-view-items. That module calls fetchItemsPageWithRaw inside fetchPage. The bare import on Line 10 is a leftover from the removed fetchItemsPageWithRaw named import. It has no remaining purpose and implies a dependency that does not exist.

Delete the import. If a vi.mock or module-order dependency requires it, add a comment that says so.

♻️ Proposed fix

-import '../../src/main/github/project-view/project-view-item-page'
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: c3f1ae58-cac3-40d9-a16a-12880e43e81f
Commits

Reviewing files that changed from the base of the PR and between d058920 and 55c349b.

Files selected for processing: 46

  • config/flaky-test-pattern-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci/sharding/ci-shard-timings.json
  • config/scripts/runtime-verification/participation/verify-wsl-e2e-participation.mjs
  • package.json
  • src/main/runtime/orca-runtime-tests/hooks-and-hosted-review-part-02.spec.ts
  • src/main/runtime/orca-runtime-tests/mobile-creation-and-orchestration-part-04.spec.ts
  • src/main/runtime/orca-runtime-tests/terminal-listing.spec.ts
  • src/main/runtime/orca-runtime-tests/terminal-sleep-and-teardown-part-03.spec.ts
  • src/main/runtime/orca-runtime-tests/window-authority.spec.ts
  • src/main/runtime/orchestration/mailbox/routing/orchestration-mailbox-routing-races.spec.ts
  • src/main/runtime/workspaces/removal/worktree-teardown-unstopped-pty.test.ts
  • src/main/skills/bundled-skill-install/layouts.test.ts
  • src/main/skills/skill-upload-session-service.test.ts
  • src/main/source-control/hosted-review-creation.test.ts
  • src/main/source-control/hosted-review-execution-host-routing.test.ts
  • src/main/source-control/hosted-review-inflight-invalidation.test.ts
  • src/main/speech/model-manager.test.ts
  • src/main/ssh/connection/ssh-connection-sftp-namespace.test.ts
  • src/main/ssh/connection/ssh-connection-system-transport.test.ts
  • src/main/ssh/orcad-migration-catalog-client.test.ts
  • src/main/ssh/runtime-ssh-access.test.ts
  • src/main/startup/cli-launch-redirect.test.ts
  • src/main/startup/main-process-runtime-launch-activation.test.ts
  • src/main/startup/run-electron-vite-dev.test.ts
  • src/main/updater/releases/updater-prerelease-feed.test.ts
  • src/main/updater/updater-events.test.ts
  • src/main/updater/updater-linux-package-recovery-actions.test.ts
  • src/main/updater/updater.check-settlement.test.ts
  • src/main/usage/usage-provider-store-lifecycle.test.ts
  • src/main/window/createMainWindow-close-confirmation.test.ts
  • src/main/workspaces/catalog/worktree-identity-persistence.test.ts
  • src/main/wsl/filesystem/wsl-drive-unc-conversion-startup.test.ts
  • src/main/wsl/orcad/wsl-orcad-deploy.test.ts
  • src/main/zcode/zcode-v2-plan-credentials.test.ts
  • tests/e2e/automation-terminal-launch.unit.test.ts
  • tests/e2e/github-project-provider-columns.unit.test.ts
  • tests/e2e/structured-agent-session-launch-continuation.unit.test.ts
  • tests/e2e/terminal-account-restart.unit.test.ts
  • tests/e2e/terminal-hidden-view-parking.spec.ts
  • tests/e2e/terminal-long-table-fixtures.ts
  • tests/e2e/terminal-long-table-scroll-restore.spec.ts
  • tests/e2e/terminal-paste-ownership.spec.ts
  • tests/e2e/terminal-raw-emoji-table-scroll-restore.spec.ts
  • tests/e2e/terminal-windows-shell-paste-ownership.spec.ts
  • tests/e2e/workspace-board-lane-virtualization.spec.ts
Files with no reviewable changes: 24

  • tests/e2e/terminal-raw-emoji-table-scroll-restore.spec.ts
  • src/main/startup/cli-launch-redirect.test.ts
  • tests/e2e/workspace-board-lane-virtualization.spec.ts
  • tests/e2e/terminal-long-table-scroll-restore.spec.ts
  • src/main/startup/run-electron-vite-dev.test.ts
  • src/main/skills/skill-upload-session-service.test.ts
  • src/main/source-control/hosted-review-creation.test.ts
  • src/main/source-control/hosted-review-inflight-invalidation.test.ts
  • tests/e2e/terminal-long-table-fixtures.ts
  • src/main/updater/releases/updater-prerelease-feed.test.ts
  • config/scripts/ci/sharding/ci-shard-timings.json
  • tests/e2e/terminal-account-restart.unit.test.ts
  • src/main/zcode/zcode-v2-plan-credentials.test.ts
  • src/main/updater/updater.check-settlement.test.ts
  • src/main/startup/main-process-runtime-launch-activation.test.ts
  • src/main/updater/updater-linux-package-recovery-actions.test.ts
  • src/main/updater/updater-events.test.ts
  • src/main/usage/usage-provider-store-lifecycle.test.ts
  • src/main/window/createMainWindow-close-confirmation.test.ts
  • src/main/runtime/orca-runtime-tests/terminal-listing.spec.ts
  • src/main/workspaces/catalog/worktree-identity-persistence.test.ts
  • tests/e2e/terminal-paste-ownership.spec.ts
  • src/main/wsl/orcad/wsl-orcad-deploy.test.ts
  • src/main/ssh/orcad-migration-catalog-client.test.ts
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 ee65067 into main Nov 8, 2026
76 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