Skip to content

test: remove 41 low-value tests and 15 entire suites - #37430

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2947 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2945
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11

Remove 41 low-value tests: delete 15 suites and narrow 16 others, retaining 179 test declarations. These cases assert fixture/static markup facts, replay private models, or measure timing without a meaningful budget.

Remove stale CI routes to deleted suites and reduce the flaky-pattern baseline to match the removed cases.

Validation: external syntax, formatting, and lint checks passed for the changed test candidates. Independently verified all 120 reviewed source outcomes and 184 unchanged production dependencies against the captured main base; the 34-file patch passes whitespace checks. Full CI and final audit reconciliation are pending.

@OrcaWin
OrcaWin marked this pull request as ready for review November 2, 2026 09:56
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The PR removes or trims end-to-end and unit tests across performance, terminal and session behavior, settings and workspace UI, Source Control, and SSH flows. It removes associated test-routing entries and updates flaky-test baseline records. The keep-awake test now checks hook-driven active and inactive states and OS-awake mechanisms. The remaining authoritative empty-inventory test checks that resume dispatch proceeds without a liveness probe.

Merge Risk: Low · up to 89717

Terminal recovery and awake-mode settings regressions could become harder to detect. The change is mergeable with coverage follow-up.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the main change and gives partial validation details, but it omits most required template sections, including ELI5, Linked Issue, Visual Proof or N/A, Risk, AI Disclosure, Rev… Complete the required description template. Add the ELI5, What Changed, Why, Linked Issue with an actual issue reference, Visual Proof or N/A with a reason, Testing details and platform coverage, Risk with rollback information, applicable A…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: removing 41 low-value tests and 15 suites.
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: 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 2 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description explains the main change and gives partial validation details, but it omits most required template sections, including ELI5, Linked Issue, Visual Proof or N/A, Risk, AI Disclosure, Review, Notes, and the Checklist.

Resolution

Complete the required description template. Add the ELI5, What Changed, Why, Linked Issue with an actual issue reference, Visual Proof or N/A with a reason, Testing details and platform coverage, Risk with rollback information, applicable AI Disclosure and Review sections, Agent skill boundary, Notes, and the Checklist.

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: 2
tests/e2e/remote-terminal-input-delivery-model.unit.test.ts: 1

485-487: Trivial · Maintainability & Code Quality · Quick win

Restore a coverage check for the fault and recovery paths.

The retained model tests still pass if the fault injector or recovery actions stop firing. Every per-schedule assertion holds when no fault occurs. The removed block was the only check that the scheduled fault types and recovery events occur. No other check in this file replaces it, and the counters are now written but never read. The restored check uses the fixed seeds, so it is deterministic. It runs only after the 8 block tests in a full-file run.

Suggested fix
     transport.destroy?.()
     link.dispose()
   })
+
+  it('exercised every fault the model schedules', () => {
+    expect(stats.schedules).toBe(SCHEDULES_PER_BLOCK * BLOCKS)
+    expect(stats.cancelledForbidden).toBeGreaterThan(0)
+    expect(stats.restarts).toBeGreaterThan(0)
+    expect(stats.zombieFlushes).toBeGreaterThan(0)
+    expect(stats.gaveUp).toBeGreaterThan(0)
+    for (const count of Object.values(stats.faults)) {
+      expect(count).toBeGreaterThan(0)
+    }
+  })
 })
tests/e2e/settings-agent-awake.spec.ts: 1

128-130: Trivial · Functional Correctness · Quick win

Restore the Settings persistence test and its required helpers.

The current suite no longer exercises selecting Agent or Off in Settings and checking the persisted computerAwakeMode through IPC. Restore the test with openSettings, getSettings, and dismissTransientAnnouncement; keep the announcement dismissal before interacting with Settings.


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: f86a91ad-76bf-4b6d-b08c-5e4ea875035d
Commits

Reviewing files that changed from the base of the PR and between 10a623b and 897174d.

Files selected for processing: 34
  • config/flaky-test-pattern-baseline.txt
  • config/scripts/pr-e2e-source-routing.mjs
  • config/scripts/pr-feature-area-e2e-source-routes.mjs
  • tests/e2e/quick-open-file-paths.spec.ts
  • tests/e2e/relay-region-compatibility.unit.test.ts
  • tests/e2e/remote-agent-completion-authority.unit.test.ts
  • tests/e2e/remote-terminal-input-delivery-model.unit.test.ts
  • tests/e2e/repo-icon-emoji-picker.spec.ts
  • tests/e2e/repo-registration-async.spec.ts
  • tests/e2e/resource-manager-folder-labels.spec.ts
  • tests/e2e/resource-manager-pty-input-latency.spec.ts
  • tests/e2e/resource-manager-unbound-session-safety.spec.ts
  • tests/e2e/restored-terminal-input-readiness.unit.test.ts
  • tests/e2e/right-sidebar-windows-titlebar.spec.ts
  • tests/e2e/runtime-status-workspace-responsiveness.spec.ts
  • tests/e2e/session-tabs-decorative-title-fanout.unit.test.ts
  • tests/e2e/session-tabs-empty-inventory-daemon-oracle.unit.test.ts
  • tests/e2e/settings-agent-awake.spec.ts
  • tests/e2e/settings-integration-dialog-dismiss.spec.ts
  • tests/e2e/settings-search-responsiveness.spec.ts
  • tests/e2e/settings-skill-detection.spec.ts
  • tests/e2e/setup-guide-sidebar.spec.ts
  • tests/e2e/sidebar-activity-status-layout.spec.ts
  • tests/e2e/sidebar-inputs-feed.spec.ts
  • tests/e2e/sidebar-phone-feed-list.spec.ts
  • tests/e2e/source-control-commit-message-ai.spec.ts
  • tests/e2e/source-control-create-pr-intent-notice-layout.spec.ts
  • tests/e2e/source-control-large-file-count.spec.ts
  • tests/e2e/source-control-pr-generation-switch.spec.ts
  • tests/e2e/spinner-workspace-perf.spec.ts
  • tests/e2e/ssh-config-host-import.spec.ts
  • tests/e2e/ssh-config-host-picker.spec.ts
  • tests/e2e/ssh-host-form-modal.spec.ts
  • tests/e2e/ssh-orcad-retained-upgrade-state.spec.ts
Files with no reviewable changes: 31
  • tests/e2e/repo-icon-emoji-picker.spec.ts
  • tests/e2e/session-tabs-empty-inventory-daemon-oracle.unit.test.ts
  • tests/e2e/restored-terminal-input-readiness.unit.test.ts
  • tests/e2e/remote-terminal-input-delivery-model.unit.test.ts
  • tests/e2e/resource-manager-pty-input-latency.spec.ts
  • tests/e2e/right-sidebar-windows-titlebar.spec.ts
  • tests/e2e/runtime-status-workspace-responsiveness.spec.ts
  • tests/e2e/ssh-orcad-retained-upgrade-state.spec.ts
  • tests/e2e/setup-guide-sidebar.spec.ts
  • tests/e2e/source-control-create-pr-intent-notice-layout.spec.ts
  • tests/e2e/ssh-host-form-modal.spec.ts
  • tests/e2e/settings-search-responsiveness.spec.ts
  • tests/e2e/quick-open-file-paths.spec.ts
  • config/scripts/pr-feature-area-e2e-source-routes.mjs
  • tests/e2e/sidebar-inputs-feed.spec.ts
  • tests/e2e/session-tabs-decorative-title-fanout.unit.test.ts
  • config/scripts/pr-e2e-source-routing.mjs
  • tests/e2e/settings-skill-detection.spec.ts
  • tests/e2e/source-control-commit-message-ai.spec.ts
  • tests/e2e/sidebar-phone-feed-list.spec.ts
  • tests/e2e/source-control-pr-generation-switch.spec.ts
  • tests/e2e/settings-integration-dialog-dismiss.spec.ts
  • tests/e2e/source-control-large-file-count.spec.ts
  • tests/e2e/spinner-workspace-perf.spec.ts
  • tests/e2e/sidebar-activity-status-layout.spec.ts
  • tests/e2e/ssh-config-host-picker.spec.ts
  • tests/e2e/remote-agent-completion-authority.unit.test.ts
  • tests/e2e/resource-manager-unbound-session-safety.spec.ts
  • tests/e2e/repo-registration-async.spec.ts
  • tests/e2e/ssh-config-host-import.spec.ts
  • tests/e2e/settings-agent-awake.spec.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.

@OrcaWin
OrcaWin merged commit 23c2515 into main Nov 2, 2026
74 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