You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove 40 low-value restore and reattach tests - #40522
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)
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
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: 5
Check name
Status
Explanation
Title check
The title clearly summarizes the main change: removing low-value restore and reattach tests.
Description check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Remove large test fixtures for narrow restore/reattach variants while retaining useful lifecycle and ordering cases. App behavior stays the same.
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
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