Skip to content

test: remove low-value native chat recovery suites - #40601

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3158-native-chat-resume-cuts
Nov 10, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3158-native-chat-resume-cuts

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove low-value resume tests and their unused fixtures while keeping four focused asynchronous ownership regressions.

Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1027 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1024
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20 $\color{#cf222e}{\Huge{\mathbf{−}}}$​216 $\color{#cf222e}{\Huge{\mathbf{−}}}$​196

What Changed

Remove 39 test declarations (40 expanded cases), including eight entire suites and two unused fixture modules, for 1,217 fewer source lines. Three suites retain four cases: authoritative fallback-list completion, batched status-frame preservation, stale reread rejection after dismissal, and finished-view retirement only after rendering. Production code is unchanged.

Remove the eight deleted-suite timing entries. Update the five broad unit-gate coverage descriptions to disclose the lost alarms, preserving existing notes, receipts, selectors and all unrelated metadata.

Why

The removed topology, progress-model and renderer examples require more fixture and maintenance code than their narrow scenarios justify. These include genuine guards for cross-host identity, cyclic lineage, selection, uncertainty, reconnects and finished-run history; those losses were deliberately reviewed, including earlier decisions to keep them. The four surviving cases are not equivalent replacements.

Linked Issue

Maintainer-requested comprehensive test-value audit; no separate issue.

Visual Proof

N/A — test removals and coverage descriptions do not change rendered behavior.

Testing

All 29 changed-file checks passed, including related unit tests, Node/web typechecks, lint, formatting, and repository guards (ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=c2908a07b145d8e4c7f519ff4420b4cb9261f847 --maxWorkers=2). Applicable PR CI and aggregate gates are required before merge.

Risk

Level: Low. The retired branches lose their direct regression alarms. Production behavior is unchanged, and reverting the PR restores the tests.

Review

Source decisions and final combined preservation are independently reviewed before publication.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material.

Checklist

  • Test removals and coverage metadata only; losses and rollback stated.
  • Visual proof is N/A.
  • Cross-platform, remote, mobile, folder-workspace and performance implications considered.
  • Applicable local validation complete.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The change removes tests and test-support files for native-chat recovery flows and resume-tree behavior. The finished-run integration test retains its check that an unrendered requested view does not consume a finished run. The CI shard timing data removes entries for deleted tests and adds the finished-run test with a timing value of 4173.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the main change: removing native chat recovery test suites.
Description check Passed The description explains what changed, why, testing, risk, rollback, and why visual proof is not applicable. It covers the required sections, with only non-critical omissions such as the Notes section…
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 explains what changed, why, testing, risk, rollback, and why visual proof is not applicable. It covers the required sections, with only non-critical omissions such as the Notes section.

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.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

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: e62536da-9145-4dbe-8a7b-233fdf59a8f2
Commits

Reviewing files that changed from the base of the PR and between 38fe076 and 807493f.

Files selected for processing: 15

  • config/reliability-gates.jsonc
  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/renderer/src/components/native-chat-recovery/failures/native-chat-resume-failure-guidance.test.ts
  • src/renderer/src/components/native-chat-recovery/integration/NativeChatRemoteResume.test.tsx
  • src/renderer/src/components/native-chat-recovery/integration/native-chat-resume-bulk-progress.test.tsx
  • src/renderer/src/components/native-chat-recovery/integration/native-chat-resume-finished-run.test.tsx
  • src/renderer/src/components/native-chat-recovery/integration/native-chat-resume-result-view.test.tsx
  • src/renderer/src/components/native-chat-recovery/integration/native-chat-resume-skipped-progress.test.tsx
  • src/renderer/src/components/native-chat-recovery/offers/native-chat-resume-failed-chat-watch.test.ts
  • src/renderer/src/components/native-chat-recovery/runs/native-chat-resume-run.test.ts
  • src/renderer/src/components/native-chat-recovery/tree/NativeChatResumeOnRestartGroups.selection.test.tsx
  • src/renderer/src/components/native-chat-recovery/tree/NativeChatResumeOnRestartGroups.test.tsx
  • src/renderer/src/components/native-chat-recovery/tree/NativeChatResumeTreeHarness.test-support.tsx
  • src/renderer/src/components/native-chat-recovery/tree/native-chat-resume-on-restart-grouping.test.ts
  • src/renderer/src/components/native-chat-recovery/tree/native-chat-resume-tree.test-support.ts
Files with no reviewable changes: 12

  • src/renderer/src/components/native-chat-recovery/tree/NativeChatResumeOnRestartGroups.test.tsx
  • src/renderer/src/components/native-chat-recovery/failures/native-chat-resume-failure-guidance.test.ts
  • src/renderer/src/components/native-chat-recovery/runs/native-chat-resume-run.test.ts
  • src/renderer/src/components/native-chat-recovery/integration/native-chat-resume-skipped-progress.test.tsx
  • src/renderer/src/components/native-chat-recovery/offers/native-chat-resume-failed-chat-watch.test.ts
  • src/renderer/src/components/native-chat-recovery/tree/native-chat-resume-on-restart-grouping.test.ts
  • src/renderer/src/components/native-chat-recovery/integration/native-chat-resume-result-view.test.tsx
  • src/renderer/src/components/native-chat-recovery/integration/NativeChatRemoteResume.test.tsx
  • src/renderer/src/components/native-chat-recovery/tree/NativeChatResumeTreeHarness.test-support.tsx
  • src/renderer/src/components/native-chat-recovery/tree/NativeChatResumeOnRestartGroups.selection.test.tsx
  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/renderer/src/components/native-chat-recovery/tree/native-chat-resume-tree.test-support.ts
Files not fully reviewed because their changes were unavailable: 1

  • config/reliability-gates.jsonc

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

@OrcaWin
OrcaWin merged commit 61d9cea into main Nov 10, 2026
71 of 73 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