Skip to content

test: remove 40 low-value test suites - #36336

Merged
OrcaWin merged 2 commits into
mainfrom
test-audit-841-low-value-suites
Oct 30, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
test-audit-841-low-value-suites

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Remove 40 complete low-value test suites (115 test cases) that mostly check mock forwarding, copied inventories/strings, small presentation decisions, or test-authored shell/Git examples. Remove their 26 obsolete timing entries and the deleted notification suite's active reliability-gate references; preserve the historical run record.

The audit read all 100 selected test files and their bounded implementation context. The other 60 suites remain byte-for-byte unchanged, retaining 148 cases. Some narrow schema, parser, fallback, mapping and callback alarms are deliberately relinquished; no equivalent replacement coverage is claimed.

Validation: authenticated source/context snapshots, strict prior-review eligibility, complete retained declaration/callback identity, current implementation review, exact metadata cleanup, canonical patch reconstruction with forward/reverse application, and whitespace checks. Fresh PR CI passed, including all 12 unit shards, static analysis/typecheck, and the required aggregate. The retained selected suites registered 148 cases: 142 passed and 6 were platform/opt-in skips. No local runtime tests or builds were run.

@coderabbitai

coderabbitai Bot commented Oct 30, 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: 208af24a-648d-47c6-a28c-53949cfa4fd8
Commits

Reviewing files that changed from the base of the PR and between 4fce31a and 3c1f556.

Files selected for processing: 1
  • config/reliability-gates.jsonc

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

Walkthrough

The pull request deletes selected test suites across the main process and renderer. It removes 26 corresponding entries from CI shard timing data. The reliability-gate configuration no longer runs the watched-worktree notification test, and its historical record now identifies the current command and clarifies that the suite is not active coverage.

Priority: Low

Merge Risk: Minimal · up to 3c1f5

The reliability-gate metadata is consistent with the removed test suite, so no actionable merge risk remains.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description states the purpose (removing 40 low-value test suites, 26 obsolete timing entries, and active reliability-gate references while preserving the historical run record). It also reports a… Add the missing template sections: (1) an ELI5 section in plain language; (2) What Changed, describing the before and after and the mechanism, including that the change removes tests only; (3) Why, with the reason for removing the suites an…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: removing 40 low-value test 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 states the purpose (removing 40 low-value test suites, 26 obsolete timing entries, and active reliability-gate references while preserving the historical run record). It also reports an audit of the selected files, the retained test count, and CI and validation results. However, it does not follow the repository template. It has no ELI5, What Changed (user-facing before/after), Why (with alternatives considered), Linked Issue (the template requires an issue link, and the description has none), Visual Proof (N/A with reason, since no UI change is claimed), or AI Disclosure section. The Testing section does not tick the manual-testing box, and the author states that no local runtime tests or builds were run. The Checklist and Agent skill upstream boundary sections are also absent. Much of the content is dense validation jargon that does not match the template's plain-language sections.

Resolution

Add the missing template sections: (1) an ELI5 section in plain language; (2) What Changed, describing the before and after and the mechanism, including that the change removes tests only; (3) Why, with the reason for removing the suites and why this approach was chosen over alternatives such as fixing or keeping them; (4) Linked Issue, with an actual issue reference (for example, 'Fixes #NNN'), or confirmation that a maintainer does not need one; (5) Visual Proof, written as N/A with a reason, because no UI or behavior change is claimed; (6) Testing, with the steps taken and the platforms tested, and the manual-testing checkbox marked or explained (the author says no local runtime tests were run, so state that clearly and cite the CI results); (7) AI Disclosure, if an AI model was used to produce the audit or the patch; (8) the Agent skill upstream boundary checkbox, or a note that it does not apply; (9) the Notes items covering security, cross-platform support, remote SSH, mobile, backwards compatibility, and performance, because deleting tests can reduce coverage on those paths; and (10) the Checklist, including the 'PR is small and focused' item. Replace the dense validation terms with plain-language explanations of what was checked.

  • 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.

Actionable comments posted: 1


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: 80f5cb6d-f5b2-44d3-9064-085ed95b3cd8
Commits

Reviewing files that changed from the base of the PR and between 15a81dd and 4fce31a.

Files selected for processing: 42
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • src/main/browser/browser-tab-identity.test.ts
  • src/main/claude/structured/claude-structured-owner-identity.test.ts
  • src/main/codex-accounts/codex-login-session-windows-only.test.ts
  • src/main/codex-accounts/wsl-codex-command.test.ts
  • src/main/external-conversations/external-conversation-start.test.ts
  • src/main/git/command-runner/wsl-command-resolution-launch-note.test.ts
  • src/main/git/paused-rebase-exec-real-git.test.ts
  • src/main/git/source-control/resolve-git-dir.test.ts
  • src/main/ipc/pty/ipc/painted-cold-restore-ack.test.ts
  • src/main/ipc/watched-worktree-catalog-notification.test.ts
  • src/main/managed-server/lifecycle/orcad-managed-tunnel-bridge-port.test.ts
  • src/main/providers/windows-shell-fallback-chain.test.ts
  • src/main/rate-limits/codex-rpc-rate-limit-probe-windows-only.test.ts
  • src/main/rate-limits/inactive-codex-home.test.ts
  • src/main/ripgrep/wsl-missing-cwd-exit.test.ts
  • src/main/runtime/remote-server-updater.test.ts
  • src/main/runtime/rpc/methods/session-terminal-scrollback.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-create-tab-publication.test.ts
  • src/main/runtime/rpc/methods/worktree-set-method.test.ts
  • src/main/runtime/rpc/terminal-subscribe-terminal-use.test.ts
  • src/main/runtime/runtime-file-listing-producer-budgets.test.ts
  • src/main/ssh/hostile-host-test-support/ssh-hostile-host-local-sshd.test.ts
  • src/main/ssh/orcad-remote-node-runtime-report.test.ts
  • src/main/ssh/ssh-host-server-on-connect-contact-lost.test.ts
  • src/main/ssh/ssh-remote-node-toolchain-probe.test.ts
  • src/main/telemetry/wsl-move-orchestrator-telemetry.test.ts
  • src/main/wsl/wsl-background-exec-gate.test.ts
  • src/renderer/src/components/editor/rich-markdown-save-benchmark.test.ts
  • src/renderer/src/components/jira-list-columns.test.ts
  • src/renderer/src/components/settings/ssh-target-save-payload.test.ts
  • src/renderer/src/components/skills/skill-delete-selection.test.ts
  • src/renderer/src/components/status-bar/StatusBarUsageEmptyCta.test.tsx
  • src/renderer/src/components/status-bar/workspace-space-visit-activity.test.ts
  • src/renderer/src/components/terminal-pane/WslDistroStoppedHoldCard.test.tsx
  • src/renderer/src/components/terminal-pane/terminal-freeze-report.test.ts
  • src/renderer/src/components/terminal-pane/use-wsl-host-stopped-pane.test.ts
  • src/renderer/src/components/wsl-drive-project/WslDriveUncConversionRow.test.tsx
  • src/renderer/src/lib/structured-agent-session-launch-failure-wsl.test.ts
  • src/renderer/src/runtime/web-runtime-pane-layout-params.test.ts
  • src/renderer/src/store/repos/repo-removal-host-twin-teardown.test.ts
Files with no reviewable changes: 41
  • src/main/runtime/rpc/terminal-subscribe-terminal-use.test.ts
  • src/renderer/src/runtime/web-runtime-pane-layout-params.test.ts
  • src/main/ipc/watched-worktree-catalog-notification.test.ts
  • src/renderer/src/components/status-bar/workspace-space-visit-activity.test.ts
  • src/renderer/src/components/jira-list-columns.test.ts
  • src/renderer/src/lib/structured-agent-session-launch-failure-wsl.test.ts
  • src/main/codex-accounts/wsl-codex-command.test.ts
  • src/renderer/src/components/terminal-pane/WslDistroStoppedHoldCard.test.tsx
  • src/main/git/source-control/resolve-git-dir.test.ts
  • src/main/browser/browser-tab-identity.test.ts
  • src/main/ssh/ssh-host-server-on-connect-contact-lost.test.ts
  • src/main/runtime/rpc/methods/worktree-set-method.test.ts
  • src/renderer/src/components/status-bar/StatusBarUsageEmptyCta.test.tsx
  • src/renderer/src/components/terminal-pane/terminal-freeze-report.test.ts
  • src/main/ipc/pty/ipc/painted-cold-restore-ack.test.ts
  • src/main/claude/structured/claude-structured-owner-identity.test.ts
  • src/main/codex-accounts/codex-login-session-windows-only.test.ts
  • src/main/git/paused-rebase-exec-real-git.test.ts
  • src/main/ssh/orcad-remote-node-runtime-report.test.ts
  • src/main/runtime/rpc/methods/structured-agent-session-create-tab-publication.test.ts
  • src/main/rate-limits/inactive-codex-home.test.ts
  • src/renderer/src/components/settings/ssh-target-save-payload.test.ts
  • src/main/runtime/rpc/methods/session-terminal-scrollback.test.ts
  • src/main/ripgrep/wsl-missing-cwd-exit.test.ts
  • src/main/ssh/hostile-host-test-support/ssh-hostile-host-local-sshd.test.ts
  • src/main/ssh/ssh-remote-node-toolchain-probe.test.ts
  • src/main/external-conversations/external-conversation-start.test.ts
  • src/main/runtime/remote-server-updater.test.ts
  • src/renderer/src/store/repos/repo-removal-host-twin-teardown.test.ts
  • src/main/telemetry/wsl-move-orchestrator-telemetry.test.ts
  • src/main/managed-server/lifecycle/orcad-managed-tunnel-bridge-port.test.ts
  • src/main/providers/windows-shell-fallback-chain.test.ts
  • src/renderer/src/components/terminal-pane/use-wsl-host-stopped-pane.test.ts
  • src/renderer/src/components/editor/rich-markdown-save-benchmark.test.ts
  • src/main/rate-limits/codex-rpc-rate-limit-probe-windows-only.test.ts
  • src/main/runtime/runtime-file-listing-producer-budgets.test.ts
  • src/renderer/src/components/skills/skill-delete-selection.test.ts
  • src/renderer/src/components/wsl-drive-project/WslDriveUncConversionRow.test.tsx
  • src/main/wsl/wsl-background-exec-gate.test.ts
  • src/main/git/command-runner/wsl-command-resolution-launch-note.test.ts
  • config/scripts/ci-shard-timings.json

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

"commands": [
"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/worktree-base-directory-event-filter.test.ts src/main/ipc/worktree-base-directory-watcher.test.ts src/main/ipc/worktree-base-directory-poller.test.ts src/main/ipc/worktree-head-identity-reader.test.ts src/renderer/src/hooks/worktree-head-identity-apply.test.ts src/renderer/src/components/right-sidebar/git-status-push-signal-refresh.test.ts src/renderer/src/hooks/useIpcEvents-browser-tab-create.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/watched-worktree-catalog-notification.test.ts src/main/runtime/external-worktree-paired-client-discovery.integration.test.ts src/main/window/attach-main-window-services.test.ts",
"pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/external-worktree-paired-client-discovery.integration.test.ts src/main/window/attach-main-window-services.test.ts",

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.

Major · Functional Correctness · Quick win

Update the historical evidence run’s currentCommand.

This line removes watched-worktree-catalog-notification.test.ts from the active command, but the retained historical run has no currentCommand and still records the old command. The gate checker compares that command with the active command list and will fail validation. The PR workflow runs this checker in its static-analysis lane. (raw.githubusercontent.com)

Add currentCommand to the historical evidence record. Keep command unchanged to preserve the command that actually ran.

Proposed change
 "command": "pnpm exec vitest run --config config/vitest.config.ts src/main/ipc/watched-worktree-catalog-notification.test.ts src/main/runtime/external-worktree-paired-client-discovery.integration.test.ts src/main/window/attach-main-window-services.test.ts",
+"currentCommand": "pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/external-worktree-paired-client-discovery.integration.test.ts src/main/window/attach-main-window-services.test.ts",

@OrcaWin
OrcaWin merged commit 34f173b into main Oct 30, 2026
47 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