Skip to content

test: remove 19 low-value chat tests and four suites - #40495

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3023-chat-surface-cuts
Nov 9, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3023-chat-surface-cuts

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove four low-value test suites and trim weaker cases while retaining ownership and recovery checks.

Files Added Deleted Net
Test 10 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​847 $\color{#cf222e}{\Huge{\mathbf{−}}}$​847
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5

What Changed

Remove 19 declarations (20 expanded cases), including entire streaming-input, subagent work-run, WSL stopped-host and retained-draft suites. Preserve 24 declarations (26 expanded cases) unchanged. Delete exclusive fixtures, two performance-runner references and three orphan timing rows. Net 852 lines removed across 13 paths.

Why

Maintainer-requested test-value audit under the repository’s test anti-pattern policy. Remove checks whose narrow alarms do not justify their fixture and maintenance cost.

Linked Issue

Maintainer-requested cleanup; no separate issue.

Visual Proof

N/A — no application UI or interaction behavior changes.

Testing

Linux: ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=a6538f08e1c9af93940eb368241c0cfa54a6e7e7 --maxWorkers=2 — all 27 checks passed, including selected unit tests and applicable typechecks. Normal commit hooks and independent bounded source/patch/census review passed. GitHub CI covers the applicable broader matrix; no local macOS/Windows/native-UI execution claimed.

  • Local automated verification completed; manual app testing is N/A for these removals.
  • Existing tests updated/removed; no new tests warranted.
  • No tests added; added-test requirement is N/A.

Risk

Level: Low runtime risk; intentional coverage reduction.

Deliberately retire projection/echo integration, work-run grouping, quote formatting/offer toggles, automatic frontier defaults, alternate notice-slot rendering, static final/transient refusal gating, initial failed-launch editor/source-copy, private render-count/preference wiring and unscoped callback-reset alarms. These are real coverage losses; no equivalent replacement coverage claimed. Future regressions in those retired behaviors could go undetected. Revert this PR to restore tests, fixtures and routing/timing metadata.

AI Disclosure

Review

Self-reviewed and independently reviewed against the final patch. Finite review boundaries are explicit; this does not claim a complete transitive audit.

Agent skill upstream boundary

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

Notes

No wire contracts, saved-data formats, paths, shortcuts or platform-specific behavior changed. Local/remote, mobile and mixed-version implications considered.

Checklist

  • Focused test cleanup.
  • Change and rationale explained.
  • Coverage risk and revert described.
  • Visual proof N/A with reason.
  • Self-reviewed for correctness, security and performance.
  • Cross-platform and SSH/remote impact considered.
  • Applicable local checks pass; broader platform/build coverage comes from CI.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This change removes selected NativeChat tests for selection quotes, subagent sections, structured-session notices and state, and streaming-input reuse. It also removes the streaming-input performance contract and pull-request path filter. The unit timing manifest removes entries for deleted tests and adds a timing entry for the handoff-copy-budget test.

Merge Risk: Minimal · up to 34f33

The change is mergeable after normal checks, with the stated reduction in regression coverage.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly summarizes the main change: removing low-value chat tests and test suites.
Description check Passed The description covers the required sections, explains the changes and rationale, reports testing, and states the coverage risks and rollback plan. It marks visual proof as not applicable with a reaso…
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: Description check

Explanation

The description covers the required sections, explains the changes and rationale, reports testing, and states the coverage risks and rollback plan. It marks visual proof as not applicable with a reason. The maintainer-requested cleanup needs no separate issue under the template’s maintainer exception.

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

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: fb8f8988-1783-4a60-bda8-d6faca280022
Commits

Reviewing files that changed from the base of the PR and between b491746 and 34f33b3.

Files selected for processing: 13

  • .github/workflows/performance-contracts.yml
  • config/scripts/ci/sharding/ci-shard-timings.json
  • config/vitest.performance.config.ts
  • src/renderer/src/components/native-chat/selection-quotes/NativeChatSelectionQuote.test.tsx
  • src/renderer/src/components/native-chat/subagents/NativeChatMessageList.subagent-sections.test.tsx
  • src/renderer/src/components/native-chat/subagents/native-chat-subagent-section-work-runs.test.ts
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatResolvedView.streaming-input.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.availability-notice.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.notice-card.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.refusal-notices.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.retained-draft.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.wsl-host-stopped.test.tsx
Files with no reviewable changes: 12

  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatResolvedView.streaming-input.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.wsl-host-stopped.test.tsx
  • src/renderer/src/components/native-chat/subagents/native-chat-subagent-section-work-runs.test.ts
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.refusal-notices.test.tsx
  • .github/workflows/performance-contracts.yml
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.notice-card.test.tsx
  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.availability-notice.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.retained-draft.test.tsx
  • src/renderer/src/components/native-chat/selection-quotes/NativeChatSelectionQuote.test.tsx
  • src/renderer/src/components/native-chat/subagents/NativeChatMessageList.subagent-sections.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.test.tsx

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 d6e6355 into main Nov 9, 2026
74 of 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