Skip to content

test: strengthen routing, scheduling, and session assertions - #33189

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/comprehensive-test-audit-147
Oct 24, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/comprehensive-test-audit-147

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​74 $\color{#cf222e}{\Huge{\mathbf{−}}}$​22 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​52
Prod 0 0 0 0

Existing tests could pass when pane status was read using the wrong key, outage wakeup deadlines disappeared, RPC refusal codes were lost, individual session keys repeated, or menu action payloads were missing. Strengthen those assertions, make mobile fixtures deterministic, and narrow cleanup/upgrade titles to the behavior exercised.

Audited 26 sources and retained all 90 declarations / 111 runtime cases. Changes are grouped across nine test files; no production code changes.

Validation: all 111 cases pass before and after the changes; Node, CLI, web and mobile typechecks, changed-file quality checks, formatting, and commit hooks pass. Fault controls demonstrate the assertion gaps and preserved regression coverage.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: f79af04e-1052-48f7-aa90-1a8fd35ac6e7
Commits

Reviewing files that changed from the base of the PR and between 6f08342 and 9777d3d.

Files selected for processing: 9
  • mobile/src/transport/mobile-e2ee-v2-key-schedule.test.ts
  • mobile/src/transport/mobile-relay-direct-upgrade-controller.test.ts
  • mobile/src/transport/mobile-relay-orphan-cleanup.test.ts
  • mobile/src/transport/mobile-relay-recovery-log.test.ts
  • mobile/src/transport/mobile-web-bundle-range-interop.test.ts
  • mobile/src/transport/mobile-web-bundle-range-reply.test.ts
  • src/renderer/src/lib/app-menu-selection-actions.test.ts
  • src/shared/automation-session-reuse.test.ts
  • src/shared/calm-status-reveal.test.ts

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

Walkthrough

The tests now check uniqueness for each key and session ID, and use deterministic input for identity encoding. The range-reply test invokes the operation and verifies a mocked refusal and request arguments. Other tests refine relay assertions and mock cleanup, verify dispatched event details and pane-specific status lookup, and check intermediate calm-status timing.

Priority: Low

Merge Risk: Minimal · up to 9777d

The test changes strengthen the targeted assertions without an identified issue that needs resolution before merge.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the test-focused scope and reports validation results, but it omits most required template sections, including the linked issue, visual proof or N/A statement, testing checkli… Complete the required template sections. Add an actual issue link, state N/A with a reason for visual proof, complete the testing checklist, address AI disclosure and review sections as applicable, confirm the upstream boundary, document re…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 9 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: stronger routing, scheduling, and session assertions across the test suite.
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 the test-focused scope and reports validation results, but it omits most required template sections, including the linked issue, visual proof or N/A statement, testing checklist, review notes, and repository checklist.

Resolution

Complete the required template sections. Add an actual issue link, state N/A with a reason for visual proof, complete the testing checklist, address AI disclosure and review sections as applicable, confirm the upstream boundary, document relevant compatibility and security considerations, and complete the final checklist.

Finishing Touches: 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@OrcaWin
OrcaWin merged commit 41d25c0 into main Oct 24, 2026
34 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