Skip to content

Consolidate resume-retirement and system sleep tests - #45018

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaLinux/audit-agent-status-and-graph-9242
Nov 20, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaLinux/audit-agent-status-and-graph-9242

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Drop one local resume-retirement row. The remaining rows cover an exact local retirement and a retirement with an SSH connection ID.
  • Check short and reportable system sleeps in the same clock-driven sequence. Remove the standalone 20-cycle short-sleep loop.
  • Simplify the graph projection fixture to the one workspace and tab its remaining test exercises.

Verification

All six focused tests passed. Formatting and changed-code quality passed.

Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​48 $\color{#cf222e}{\Huge{\mathbf{−}}}$​33
Prod 0 0 0 0

@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR updates tests in three areas. The sleep-cycle tests cover separate reportable sleeps and an added short suspend/resume cycle. The agent-status retirement test removes the live-origin case with no connection ID. The sync-runtime-graph payload partition test replaces its configurable fixture with a fixed single-worktree AppState.

Merge Risk: Minimal · up to 47412

This change only consolidates and simplifies tests and does not alter runtime behavior. No actionable merge risk was found.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description gives a clear list of changes and a short verification note. It lacks the template's ELI5, What Changed (user-facing before/after), Why, Linked Issue, Visual Proof, Testing checkboxes,… Add the missing template sections: an ELI5 summary, a What Changed section with the before and after behavior, a Why section explaining the consolidation choice, a Linked Issue (or a stated reason none applies), Visual Proof (write N/A with…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "Consolidate resume-retirement and system sleep tests" matches the main change. The PR merges and trims tests for resume retirement, system sleep cycles, and the graph projection fixture. It…
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 "Consolidate resume-retirement and system sleep tests" matches the main change. The PR merges and trims tests for resume retirement, system sleep cycles, and the graph projection fixture. It is specific, short, and describes the primary change.

Full details: Description check

Explanation

The description gives a clear list of changes and a short verification note. It lacks the template's ELI5, What Changed (user-facing before/after), Why, Linked Issue, Visual Proof, Testing checkboxes, Risk level, AI Disclosure, and Review sections. The author did not state a reason for the N/A visual proof. The description is incomplete against the template, but most of the critical intent is present, so the check is not a failure.

Resolution

Add the missing template sections: an ELI5 summary, a What Changed section with the before and after behavior, a Why section explaining the consolidation choice, a Linked Issue (or a stated reason none applies), Visual Proof (write N/A with a reason, since these are test-only changes), a Testing section that completes the checklist items, and a Risk section with a level and backout plan. Also complete the Agent skill upstream boundary checkbox and the AI Disclosure section as applicable.

  • 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: 49139312-1539-4848-ad7e-e038212e0f8f
Commits

Reviewing files that changed from the base of the PR and between 880ac42 and 47412f3.

Files selected for processing: 3

  • src/main/power/system-resume-broadcast.test.ts
  • src/renderer/src/hooks/ipc-events/agent-status/agent-status-listeners-resume-retirement.test.ts
  • src/renderer/src/runtime/sync-runtime-graph/sync-runtime-graph-payload-partition.test.ts
Files with no reviewable changes: 1

  • src/renderer/src/hooks/ipc-events/agent-status/agent-status-listeners-resume-retirement.test.ts

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

@OrcaWin
OrcaWin merged commit 2a07fb2 into main Nov 20, 2026
39 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