Skip to content

test: remove 40 low-value restore and reattach tests - #40522

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3061-reattach-cuts
Nov 9, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3061-reattach-cuts

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove large test fixtures for narrow restore/reattach variants while retaining useful lifecycle and ordering cases. App behavior stays the same.

Files Added Deleted Net
Test 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2321 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2319
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 0

What Changed

Remove 40 authored declarations (42 expanded cases), including the entire park-model snapshot suite: 2,319 net lines across 11 paths. Reduce cold restore, daemon replay, deferred output, mode reset and remote attach coverage. All 19 surviving declarations in changed sources remain byte-identical.

Remove the deleted registrar's sole wrapper consumer, add seven scoped reliability gaps, and retire two pre-existing stale gate aliases. Existing timings, other parsed gate fields and dated evidence remain exact. The separate cwdFallback marker alias remains outside this bounded metadata reconciliation.

Why

Maintainer-requested test-value audit. Oversized supplied-payload, quote/default, forwarding, cursor/focus and geometry variants have insufficient maintenance value. Their distinct alarms are intentionally lost; the remaining state/race/ordering cases are not equivalent replacements. This includes deliberately superseding historically mutation-sensitive precedence cases at an expensive integration layer.

Linked Issue

Maintainer-requested maintenance; no existing issue. Maintainer exception applies.

Visual Proof

N/A — tests and test metadata only; no product UI or interaction change.

Testing

Linux, background launches:

  • ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=f4e4862f00a0a08eca4ed5e06bc87e88c8279052 --maxWorkers=2: all 28 checks passed.

  • With ORCA_LAYOUT_OWNER=main, ran input-and-repaint, spawn-and-startup, hidden-replay and restore-and-resume wrappers, selecting cold-restore-agent-resume, cold-restore-repaint, cold-restore-resume-command, daemon-snapshot-replay, deferred-reattach-live-output, reattach-mode-reset and remote-runtime-attach groups: 34 passed, 165 sibling cases skipped. This includes 21 expanded selected-source survivors plus nearby registrations.

  • Independent source and composition reviews; AST 59→19 declarations; exact survivor registration/callback/table hashes; 82 finite source/context identities authenticated and private complete-tree replay verified. Metadata comparison proves seven notes, two stale aliases retired, all other parsed fields/dates and all timings exact.

  • Full exact-head CI required before merge.

  • Manual application testing (N/A: no product behavior changed)

  • Automated tests updated: removal-only audit

  • Added-test sensitivity/anti-pattern requirement (N/A: none added)

No macOS, Windows, SSH, mobile, native provider or rendered UI execution claimed. Consecutive-loss main-layout branch returns after first attach; no second-loss coverage is claimed for that branch.

Risk

Level: Low runtime risk; deliberate reduced regression detection. Removed tests no longer guard their narrow quote selection, precedence, profile/geometry, fallback-notice or supplied resume-metadata alarms. Production code, saved data and compatibility protocols are unchanged. Rollback: revert this PR.

AI Disclosure

Review

Three bounded full-source value reviews, three independent source reviews and an independent composition review. Composition reviewer authored the mode/remote component and disclosed that overlap. Root adopted explicit lost-alarm decisions and reconciled metadata findings. Historical runtime/mutation results are not fresh validation.

Agent skill upstream boundary

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

Notes

Cross-platform, remote, mobile, compatibility and performance implications considered. Retiring platform/remote variants does not establish platform correctness or change runtime behavior. Two stale aliases were already absent before this batch; they receive no new test-removal credit.

Checklist

  • Focused test-removal batch
  • Explained what changed and why
  • Risk and rollback stated
  • Visual proof N/A with reason
  • Self-reviewed correctness, security and performance
  • Cross-platform and remote impact considered
  • Changed local checks passed; full applicable CI required before merge

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The diff removes test cases and test-only setup from PTY reattach specs. The deleted cases cover cold restore and resume, snapshot replay, deferred live output, and remote-runtime attachment. The visibility-and-exit test aggregator also removes the parked-terminal snapshot suite registration. The summaries describe test changes and do not establish changes to runtime behavior.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly summarizes the main change: removing low-value restore and reattach tests.
Description check Passed The description covers the required sections, including the change, rationale, testing, risk, rollback, and visual-proof status. It explains the maintainer exception for the missing issue and marks ma…
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, including the change, rationale, testing, risk, rollback, and visual-proof status. It explains the maintainer exception for the missing issue and marks manual application testing as not applicable because runtime behavior does not change.

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: 11ea073f-b76a-458b-81b2-58292bdc71e1
Commits

Reviewing files that changed from the base of the PR and between 3e86c5a and e71a0bc.

Files selected for processing: 11

  • config/reliability-gates.jsonc
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-cold-restore-agent-resume.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-cold-restore-repaint.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-cold-restore-resume-command.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-daemon-snapshot-replay.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-deferred-reattach-live-output.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-park-reveal-model-snapshot.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-reattach-mode-reset.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-remote-runtime-attach.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-stale-daemon-snapshot-replay.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-visibility-and-exit.test.ts
Files with no reviewable changes: 8

  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-park-reveal-model-snapshot.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-stale-daemon-snapshot-replay.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/tests/pty-connection-visibility-and-exit.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-cold-restore-resume-command.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-cold-restore-agent-resume.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-deferred-reattach-live-output.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-daemon-snapshot-replay.spec.ts
  • src/renderer/src/components/terminal-pane/pty-connection/reattach/pty-connection-reattach-mode-reset.spec.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 3cffb4c into main Nov 9, 2026
41 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