Skip to content

test: remove 203 low-value renderer tests - #37530

Merged
OrcaWin merged 2 commits into
mainfrom
codex/remove-low-value-tests-967
Nov 2, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
codex/remove-low-value-tests-967

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Removes 203 low-value test registrations, including 18 whole suites, after reviewing 60 renderer test files.

What Changed

Retains 174 registrations covering asynchronous lifecycle, acknowledgment, recovery, host ownership, bounded work, redaction and live localization. Retained callbacks/scopes are unchanged. Removes 18 timing entries and updates five reliability gate notes; all 422 historical evidence commands/results are preserved.

Why

The deleted cases primarily restate supplied owner, route, display, status or dry-run outputs. Their individual regression alarms are accepted losses; no equivalent coverage is claimed.

Linked Issue

N/A — maintainer-requested audit; no pre-existing issue was supplied.

Visual Proof

N/A — test deletions and CI metadata only; no UI or interaction change.

Testing

  • Manually tested locally
  • Automated-test changes explained above

External parsing/formatting, inert lint, retained-code/import comparisons, and independent public-tree verification of all 60 source outcomes and 119 dependency snapshots passed. Current-head CI passed: all 12 unit shards, relay integration, static/typecheck, headless server and aggregate. Applicable platform/E2E jobs were skipped by workflow selection.

Risk

Level: Low production-change risk; reduced regression detection is intentional. Specific owner/host predicates, lookup precedence, simulator ordering, activity projection, display and planning alarms are removed. Revert this PR to restore them.

Review

Self-reviewed. CodeRabbit's three retention suggestions were considered and declined under the test-value audit:

  • Repo slug index: accept loss of host and origin/fork mapping examples; retained retry/cleanup tests do not replace them.
  • Simulator search: accept loss of empty-query comparator ordering; retained ownership tests do not establish that order.
  • Workspace activity: accept loss of waiting-to-permission and completed-agent projection examples; retained parity/owner tests do not replace them.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material copied.

Notes

Production code, cross-platform execution, SSH/remote behavior, mobile, persistence formats and compatibility are unchanged. Lost regression checks are intentional and recorded.

Checklist

  • Focused test-removal batch
  • What changed and why explained
  • Risks and revert path recorded
  • Visual proof N/A with reason
  • Self-reviewed for correctness, security and performance
  • Cross-platform and remote impact considered
  • CI covers project checks; local execution not performed

@OrcaWin OrcaWin changed the title test: remove 116 low-value renderer tests test: remove 203 low-value renderer tests Nov 2, 2026
@OrcaWin
OrcaWin marked this pull request as ready for review November 2, 2026 18:55
@OrcaWin OrcaWin mentioned this pull request Nov 2, 2026
9 of 10 tasks
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The change removes or narrows renderer unit-test suites across repository ownership and routing, runtime and session handling, UI utilities, setup flows, and source-control helpers. It updates reliability-gate notes to list removed assertions and coverage gaps, removes the retired runtime workspace file-route test from the restored-editor gate, and deletes timing entries for removed tests. The supplied summaries report no product implementation changes.

Merge Risk: Low · up to 5f76d

Current behavior is unchanged, but future regressions in repository lookup, simulator ordering, and sidebar agent activity could go undetected. The change is mergeable with awareness of those coverage gaps.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: removing 203 low-value renderer tests.
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.
Description check Passed The pull request description is complete and aligned with the template. It explains the scope, rationale, retained and removed coverage, testing evidence, risk, visual impact, review decisions, cross-…
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 7 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The pull request description is complete and aligned with the template. It explains the scope, rationale, retained and removed coverage, testing evidence, risk, visual impact, review decisions, cross-platform impact, and rollback path. The linked issue is marked N/A with a maintainer-requested audit justification, which matches the template's maintainer exception.

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: 3
src/renderer/src/lib/repo-slug-index.test.ts: 1

3-3: Trivial · Functional Correctness · Quick win

Keep a focused host-scoped lookup test.

useRepoSlugIndex.lookupSlug has separate host matching and origin-over-fork selection branches. The retained tests cover only retry behavior. The filtering tests use mocked lookup results and do not protect this hook.

Keep one compact hook-level test with the same slug represented by an origin and a fork across two hosts. Assert that the origin match is preferred and that a lookup on the other host does not reuse the match.

src/renderer/src/lib/simulator-palette-search.test.ts: 1

172-172: Trivial · Functional Correctness · Quick win

Retain an empty-query ordering assertion for simulator search.

The retained ownership test already covers active-group selection and isCurrentTab. The removed simulator test was the only inspected test that checked the resulting empty-query order. Add that focused assertion to the retained active-group fixture:

     expect(
       entries.map((entry) => [entry.tab.id, entry.isCurrentWorktree, entry.isCurrentTab])
     ).toEqual([
       ['local-simulator', false, false],
       ['remote-simulator', true, true]
     ])
+    expect(searchSimulatorTabs(entries, '').map((result) => result.tabId)).toEqual([
+      'remote-simulator',
+      'local-simulator'
+    ])
src/renderer/src/lib/sidebar-shadow/workspace-activity-shadow.test.ts: 1

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

Restore the waiting-agent and completed-agent assertions.

workspace-activity-shadow.test.ts no longer tests readWindowWorkspaceActivityFacts. The removed case checked that a waiting agent maps to permission and that a completed agent is omitted. The parity suite checks rendered rows and ACTIVE markers. Its hide-sleeping case covers live-terminal liveness, but no retained expectation checks agent state. A regression in the waiting-to-permission mapping or the completed-agent exclusion can pass both suites.

Restore the removed readWindowWorkspaceActivityFacts case from 443140e, or at least its waiting-agent and completed-agent assertions.


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: e52ed553-3d71-473c-bd1b-c6a7b778baf9
Commits

Reviewing files that changed from the base of the PR and between 443140e and 5f76d69.

Files selected for processing: 36
  • config/reliability-gates.jsonc
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/lib/repo-runtime-owner.test.ts
  • src/renderer/src/lib/repo-search.test.ts
  • src/renderer/src/lib/repo-slug-cache.test.ts
  • src/renderer/src/lib/repo-slug-index.test.ts
  • src/renderer/src/lib/resolve-owner-acceptance.test.ts
  • src/renderer/src/lib/resolve-owner.test.ts
  • src/renderer/src/lib/resolved-worktree-execution-host.test.ts
  • src/renderer/src/lib/resume-sleeping-agent-session-execution-host-scope.test.ts
  • src/renderer/src/lib/resume-sleeping-agent-session.test.ts
  • src/renderer/src/lib/reveal-in-file-manager.test.ts
  • src/renderer/src/lib/review-owner.test.ts
  • src/renderer/src/lib/run-quick-command-in-new-tab.test.ts
  • src/renderer/src/lib/running-agent-targets.test.ts
  • src/renderer/src/lib/runtime-session-mirror-targets.test.ts
  • src/renderer/src/lib/runtime-session-mirror-unverifiable-host.test.ts
  • src/renderer/src/lib/runtime-workspace-file-route.test.ts
  • src/renderer/src/lib/screen-submit-shortcut.test.ts
  • src/renderer/src/lib/script-textarea-rows.test.ts
  • src/renderer/src/lib/scroll-cache.test.ts
  • src/renderer/src/lib/session-write-subscriber.test.ts
  • src/renderer/src/lib/setup-script-prompt.test.ts
  • src/renderer/src/lib/sha256.test.ts
  • src/renderer/src/lib/shutdown-checkpoint-guard.test.ts
  • src/renderer/src/lib/sidebar-shadow/workspace-activity-shadow.test.ts
  • src/renderer/src/lib/sidebar-worktree-activation.test.ts
  • src/renderer/src/lib/simulator-palette-search.test.ts
  • src/renderer/src/lib/simulator-runtime-label.test.ts
  • src/renderer/src/lib/skill-freshness-display-status.test.ts
  • src/renderer/src/lib/smart-github-submit.test.ts
  • src/renderer/src/lib/source-control-agent-action-launch-check.test.ts
  • src/renderer/src/lib/source-control-generation-plan.test.ts
  • src/renderer/src/lib/source-control-remote-error.test.ts
  • src/renderer/src/lib/sparse-preset-draft.test.ts
  • src/renderer/src/lib/ssh-mutation-expectation.test.ts
Files with no reviewable changes: 28
  • src/renderer/src/lib/resume-sleeping-agent-session.test.ts
  • src/renderer/src/lib/sha256.test.ts
  • src/renderer/src/lib/resolve-owner.test.ts
  • src/renderer/src/lib/repo-runtime-owner.test.ts
  • src/renderer/src/lib/simulator-runtime-label.test.ts
  • src/renderer/src/lib/source-control-agent-action-launch-check.test.ts
  • src/renderer/src/lib/runtime-session-mirror-unverifiable-host.test.ts
  • src/renderer/src/lib/shutdown-checkpoint-guard.test.ts
  • src/renderer/src/lib/reveal-in-file-manager.test.ts
  • src/renderer/src/lib/setup-script-prompt.test.ts
  • src/renderer/src/lib/ssh-mutation-expectation.test.ts
  • src/renderer/src/lib/runtime-workspace-file-route.test.ts
  • src/renderer/src/lib/skill-freshness-display-status.test.ts
  • src/renderer/src/lib/scroll-cache.test.ts
  • src/renderer/src/lib/sidebar-worktree-activation.test.ts
  • src/renderer/src/lib/script-textarea-rows.test.ts
  • src/renderer/src/lib/screen-submit-shortcut.test.ts
  • src/renderer/src/lib/running-agent-targets.test.ts
  • src/renderer/src/lib/resolve-owner-acceptance.test.ts
  • src/renderer/src/lib/sparse-preset-draft.test.ts
  • src/renderer/src/lib/runtime-session-mirror-targets.test.ts
  • src/renderer/src/lib/run-quick-command-in-new-tab.test.ts
  • src/renderer/src/lib/source-control-generation-plan.test.ts
  • src/renderer/src/lib/source-control-remote-error.test.ts
  • src/renderer/src/lib/session-write-subscriber.test.ts
  • src/renderer/src/lib/repo-search.test.ts
  • src/renderer/src/lib/smart-github-submit.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.

@OrcaWin
OrcaWin merged commit 0140d76 into main Nov 2, 2026
69 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