Skip to content

test: remove 160 low-value renderer tests - #37537

Merged
OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-tests-970
Nov 2, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-tests-970

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Removes 160 low-value authored test registrations, including 12 whole suites, from 30 reviewed renderer test files.

What Changed

Deletes launch-plan snapshots, diagnostic-summary/input tallies, anchor no-op guards, supplied unread counts, retained/sleeping identity projections, browser-link selection, overlay/web-client predicates, Windows path-capability guards and query byte-bound examples. Trims eight other suites and removes 12 obsolete CI timing entries. Retains 109 registrations; their callbacks and scopes are unchanged.

Why

The removed checks mainly compare supplied catalog, signal-priority, path, capability or diagnostic outputs. Background-wake examples also manufacture claim identities or launch results in mocks and then check those same values. Whole suites are deleted when none of their checks justify retention.

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 registration/callback/scope and runtime import comparisons passed. Independently verified GitHub's generated merge tree against all 30 source outcomes and 74 captured dependency snapshots at the verified #37533 squash. No local project tests/builds/typechecks were run; full CI is required before merge.

Risk

Level: Low production-change risk; reduced regression detection is intentional. Lost provider command/prefill syntax, diagnostic arithmetic and phase/byte counts, seeded identity precedence, unread/host mappings, background mount/claim examples, overlay detection, Windows access predicates and query byte boundaries are accepted; no equivalent coverage is claimed. Revert this PR to restore them.

Review

Root read every original test body and relevant implementation owners. Retains actual DOM propagation/IME settlement, diagnostic privacy and cleanup, bounded sample/echo queues, cache ownership and out-of-order probes, mounted agent lifecycle/render bounds, file-access fallback orchestration, duplicate-writer prevention and timer/reference-count lifetimes. Mock host and filesystem answers remain limitations of those retained tests.

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

Reconciled onto main after #37533 merged. Full current-head CI is required before merge.

@OrcaWin
OrcaWin force-pushed the codex/remove-low-value-tests-970 branch from fae91f0 to d9dcf23 Compare November 2, 2026 19:24
@OrcaWin
OrcaWin changed the base branch from codex/remove-low-value-tests-969 to main November 2, 2026 19:24
@OrcaWin
OrcaWin marked this pull request as ready for review November 2, 2026 19:25
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The diff removes or narrows renderer tests for typing latency, agent behavior, and utility and platform behavior. It also changes CI shard timing records, adding timings for four typing-latency tests and removing several existing test records. The supplied summaries report no implementation code changes.

Merge Risk: Low · up to d9dcf

These agent-identity rules could regress without a focused test catching them. Restore the targeted coverage, or accept this bounded risk before merging.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "test: remove 160 low-value renderer tests" matches the main change. The PR removes 160 test registrations, including 12 whole suites, across 30 renderer test files. The title follows a conv…
Description check Passed The description follows the repository template. It covers ELI5, What Changed, Why, Linked Issue (marked N/A with a maintainer-audit reason), Visual Proof (N/A with reason), Testing, Risk (Low, with a…
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 160 low-value renderer tests" matches the main change. The PR removes 160 test registrations, including 12 whole suites, across 30 renderer test files. The title follows a conventional-commit style and states the primary change, so it does not need the file list or extra detail.

Full details: Description check

Explanation

The description follows the repository template. It covers ELI5, What Changed, Why, Linked Issue (marked N/A with a maintainer-audit reason), Visual Proof (N/A with reason), Testing, Risk (Low, with a revert path), Review, the upstream boundary checkbox, Notes, and Checklist. It explains the removed coverage and the retained coverage, and it states that no local tests were run. The Linked Issue section does not link an issue. The template says outside contributors must link one. The author describes this as a maintainer-requested audit, so the gap is acceptable. The AI Disclosure section is missing. The template says to skip it for StablyAI team members, so this is also acceptable.

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 4 files.

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: 1
src/renderer/src/lib/use-tab-agent-opencode-native-title.test.ts: 1

11-12: Trivial · Maintainability & Code Quality · Quick win

Restore focused coverage for the remaining resolver paths.

The removed tests protected two behaviors that the retained mounted-hook and shared tests do not exercise:

  • a native OpenCode title with focusedCompletedHookAgent set;
  • remote processShellForeground evidence, which must not produce resolveLaunchedAgentExitEvidence.

Add focused shared resolver cases for both behaviors. This is targeted regression coverage for intended resolver behavior, not a low-value direct assertion.


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: af19569b-d08d-41fd-a159-d3ac43ee3089
Commits

Reviewing files that changed from the base of the PR and between 70c2a36 and d9dcf23.

Files selected for processing: 21
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/lib/tui-agent-startup.test.ts
  • src/renderer/src/lib/typing-latency/diagnostic-lifecycle.test.ts
  • src/renderer/src/lib/typing-latency/diagnostic-summary.test.ts
  • src/renderer/src/lib/typing-latency/echo-instrumentation.test.ts
  • src/renderer/src/lib/typing-latency/input-source.test.ts
  • src/renderer/src/lib/unified-tab-anchor-insertion.test.ts
  • src/renderer/src/lib/unread-badge-count-selector.test.ts
  • src/renderer/src/lib/unread-badge-count.test.ts
  • src/renderer/src/lib/use-tab-agent-opencode-native-title.test.ts
  • src/renderer/src/lib/use-tab-agent-process-signals.test.ts
  • src/renderer/src/lib/use-tab-agent-retained-identity.test.ts
  • src/renderer/src/lib/use-tab-agent-sleeping-session.test.ts
  • src/renderer/src/lib/use-tab-agent.test.ts
  • src/renderer/src/lib/visible-browser-link-target.test.ts
  • src/renderer/src/lib/visible-overlay.test.ts
  • src/renderer/src/lib/wake-sleeping-agents-in-background.test.ts
  • src/renderer/src/lib/web-client-location.test.ts
  • src/renderer/src/lib/windows-path-access-guards.test.ts
  • src/renderer/src/lib/windows-terminal-capabilities.test.ts
  • src/renderer/src/lib/work-item-link-query-bounds.test.ts
Files with no reviewable changes: 17
  • src/renderer/src/lib/visible-browser-link-target.test.ts
  • src/renderer/src/lib/use-tab-agent-retained-identity.test.ts
  • src/renderer/src/lib/unread-badge-count.test.ts
  • src/renderer/src/lib/work-item-link-query-bounds.test.ts
  • src/renderer/src/lib/typing-latency/diagnostic-summary.test.ts
  • src/renderer/src/lib/typing-latency/input-source.test.ts
  • src/renderer/src/lib/tui-agent-startup.test.ts
  • src/renderer/src/lib/use-tab-agent-sleeping-session.test.ts
  • src/renderer/src/lib/visible-overlay.test.ts
  • src/renderer/src/lib/windows-path-access-guards.test.ts
  • src/renderer/src/lib/unread-badge-count-selector.test.ts
  • src/renderer/src/lib/typing-latency/diagnostic-lifecycle.test.ts
  • src/renderer/src/lib/web-client-location.test.ts
  • src/renderer/src/lib/unified-tab-anchor-insertion.test.ts
  • src/renderer/src/lib/typing-latency/echo-instrumentation.test.ts
  • src/renderer/src/lib/windows-terminal-capabilities.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 66a0f1d into main Nov 2, 2026
69 checks passed
@OrcaWin OrcaWin mentioned this pull request Nov 2, 2026
9 of 10 tasks
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