Skip to content

test: strengthen hook, release, and mobile transport coverage - #33031

Merged
OrcaWin merged 5 commits into
mainfrom
OrcaWin/comprehensive-test-audit-29
Oct 24, 2026
Merged

OrcaWin merged 5 commits into
mainfrom
OrcaWin/comprehensive-test-audit-29

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​156 $\color{#cf222e}{\Huge{\mathbf{−}}}$​80 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​76
Prod 0 0 0 0

Several tests passed without observing the behavior their names promised. Strengthen the witnesses for oversized pane keys, exact title limits, invalid launch preferences, restored idle children, expiry session identity, release artifact preservation, telemetry-key identity, and shared JavaScript SHA dispatch.

The mobile coverage now checks every cached-host render, opening unsubscribe request IDs, stream option propagation, all-host disposal, and release after a page client was acquired. Test renderers, clients, requests, and streams are cleaned up. Remove string-method spies in favor of public outputs and delete one duplicate Claude reverse-mapping test; retained round-trip coverage catches that regression. No production changes.

Validation: 267 focused cases pass without skips (202 root, 65 mobile). Fourteen sources reviewed, including one unchanged upstream re-review; 194 declarations become 193 and 11 test files change. Node typecheck, mobile test-typecheck ratchet, changed-code quality including React Doctor, formatting, whitespace, and commit hooks pass. Targeted production controls distinguish the strengthened witnesses from retained coverage. Frozen proposals, committed-source hashes, runtime receipts, and detailed review records are preserved in the local audit tracker.

Release checks use Linux fixtures and injected HTTP; mobile checks use Node renderer/transport fixtures. These checks do not claim native builds, live workflows, real WebView pairing, or remote delivery. Full CI runs on this combined batch.

@OrcaWin OrcaWin changed the title test: exercise hook and decorative title limits test: strengthen hook, title, and launch preference boundaries Oct 24, 2026
@OrcaWin OrcaWin changed the title test: strengthen hook, title, and launch preference boundaries test: strengthen hook, launch, and release coverage Oct 24, 2026
@OrcaWin OrcaWin changed the title test: strengthen hook, launch, and release coverage test: strengthen hook, release, and mobile transport coverage Oct 24, 2026
@OrcaWin
OrcaWin marked this pull request as ready for review October 24, 2026 04:44
@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: e723c134-7c84-4748-9e85-a4f9c9e3d2f7
Commits

Reviewing files that changed from the base of the PR and between cc929aa and 4f8085c.

Files selected for processing: 11
  • config/scripts/release-javascript-artifact.test.mjs
  • config/scripts/release-mac-build-workflow-dispatch.test.mjs
  • mobile/src/transport/client-context.test.ts
  • mobile/src/transport/client-context.web.test.tsx
  • mobile/src/transport/execution-host-envelope.test.ts
  • src/shared/agent-decorative-title-signature.test.ts
  • src/shared/agent-hook-listener-claude-subagents.test.ts
  • src/shared/agent-hook-listener-claude-task-notification.test.ts
  • src/shared/agent-hook-listener-claude-turn-state.test.ts
  • src/shared/agent-kind.test.ts
  • src/shared/agent-launch-preferences.test.ts
Files with no reviewable changes: 1
  • src/shared/agent-kind.test.ts

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

Walkthrough

The pull request updates tests in release scripts, mobile transport, and shared-agent modules. The tests now check telemetry-key hashing, restore inventory preservation, workflow dispatch inputs, host-client identity and lifecycle behavior, and execution-host frame contents. Shared-agent tests add assertions for hook payloads and metadata, title-signature length boundaries, pane-key construction, and invalid launch preferences.

Priority: Low

Merge Risk: Minimal · up to 4f808

This change only strengthens test coverage and does not alter production behavior. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description follows the template's main sections. It gives a ELI5-style explanation of the goal and a Testing section with validation steps, commands, and platform limits. It does not include the … Add the missing template sections. Include an ELI5 summary and a What Changed section that describes the before and after behavior of the test changes. Add a Why section that explains why strengthened witnesses and removed string-method spi…
Docstring Coverage Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 10 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 "test: strengthen hook, release, and mobile transport coverage" matches the changeset. The diff changes only test files across hook listener, release script, and mobile transport areas, and …
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 "test: strengthen hook, release, and mobile transport coverage" matches the changeset. The diff changes only test files across hook listener, release script, and mobile transport areas, and it strengthens assertions in each. It is a concise, conventional-commit style summary of the main change. It does not list every file, which is acceptable.

Full details: Description check

Explanation

The description follows the template's main sections. It gives a ELI5-style explanation of the goal and a Testing section with validation steps, commands, and platform limits. It does not include the template's ELI5, What Changed, Why, or Linked Issue headings. It has no 'Fixes #' issue link, no Visual Proof statement (N/A reason needed), no AI Disclosure, no Review section, no Agent skill upstream boundary checkbox, and no Notes/Checklist items. The 'Validation' paragraph covers test results, but the manual-test checkbox is not checked and the platforms actually tested are not clearly listed. The description is mostly technical, but it omits several required sections.

Resolution

Add the missing template sections. Include an ELI5 summary and a What Changed section that describes the before and after behavior of the test changes. Add a Why section that explains why strengthened witnesses and removed string-method spies are preferred. Add a Linked Issue entry with a 'Fixes #' reference to a real issue, or state that the PR is from a maintainer. Write N/A with a reason under Visual Proof, because the change has no UI behavior change. Complete the Testing section, including which platforms were tested and whether the manual-test checkbox applies. Fill in or mark N/A for AI Disclosure, the Review section, and the Agent skill upstream boundary checkbox. Complete the Checklist items, or confirm each one.

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 2eb0bb6 into main Oct 24, 2026
63 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