Skip to content

test: remove duplicate capability coverage and strengthen boundary assertions - #33197

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/comprehensive-test-audit-153
Oct 24, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/comprehensive-test-audit-153

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​73 $\color{#cf222e}{\Huge{\mathbf{−}}}$​58 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23

The run-capability test appended the required capability itself, so it duplicated codec coverage without checking the advertised inventory. Remove that case and strengthen existing notification, latency, process-evidence, input-clear, cron, and host-routing assertions found in a 48-source audit.

Notification expectations now use fixed fingerprint vectors, check literal channel/task/event names, and exercise identity limits. Distinct latency series catch crossed fields, and the shared routing fixture uses explicit expected hosts instead of reimplementing the routing policy. The fixture's 50 exported rows remain identical. Two titles now describe the behavior actually exercised.

Validation: 325 baseline / 324 final selected cases pass with zero skips; an additional routing consumer passes all 61 cases. Node, CLI, web, and mobile test typechecks, changed-file code quality, formatting, and commit hooks pass. Independent read-only validation authenticates all four sealed audit proposals and their grouped results. No production code changes.

@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: 64c3e3f5-5a10-4281-bdb9-92c0abc80596
Commits

Reviewing files that changed from the base of the PR and between 5fe2a38 and 7e5b056.

Files selected for processing: 1
  • mobile/src/notifications/push-background-dismissal.test.ts

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

Walkthrough

The pull request updates mobile notification tests, renderer sample-window assertions, shared agent and automation tests, and repository host-routing fixture expectations. The changes are in tests and a test fixture; the summaries do not describe production-code changes.

Priority: Low

Merge Risk: Low · up to 7e5b0

The production behavior is unchanged, but the cron test does not fully verify the boundary it was changed to cover.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the change and reports validation results, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, Testing checkboxes, Review, Notes, an… Complete the required sections in the repository template. Add the linked issue, plain-language summary, rationale, visual-proof status such as N/A with a reason, testing details and checkboxes, review notes, cross-platform and compatibilit…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title is concise and accurately describes the main changes: removing duplicate capability coverage and strengthening test boundary assertions.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 13 files.

Full details: Description check

Explanation

The description explains the change and reports validation results, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, Testing checkboxes, Review, Notes, and Checklist.

Resolution

Complete the required sections in the repository template. Add the linked issue, plain-language summary, rationale, visual-proof status such as N/A with a reason, testing details and checkboxes, review notes, cross-platform and compatibility considerations, and checklist confirmations.

Finishing Touches
📝 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments: 1
src/shared/automation-cron-dialect.test.ts: 1

110-110: Trivial · Functional Correctness · Quick win

Make the standalone day-of-month term observable.

The current 2 is a Saturday in May 2026, while 1,5 permits only Monday and Friday. Therefore, the assertion is unchanged if the parser ignores 2. Use 8, which is a Friday and is not included by */3, and add it to the expected matches. This is a test-coverage improvement, not a current production defect.

Proposed fix
-    expect(matchingDaysOfMay2026('0 9 2,*/3 * 1,5')).toEqual([1, 4, 22, 25])
+    expect(matchingDaysOfMay2026('0 9 8,*/3 * 1,5')).toEqual([1, 4, 8, 22, 25])

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: fd679859-97ad-4357-93a0-0b5431428103
Commits

Reviewing files that changed from the base of the PR and between fda9286 and 5fe2a38.

Files selected for processing: 14
  • mobile/src/notifications/desktop-notification-channel.test.ts
  • mobile/src/notifications/mobile-push-lease-renewal.test.ts
  • mobile/src/notifications/notification-opt-in-gate.test.ts
  • mobile/src/notifications/push-background-dismissal.test.ts
  • mobile/src/notifications/push-dismissal-watermarks.test.ts
  • mobile/src/notifications/push-host-fingerprint.test.ts
  • mobile/src/notifications/push-notification-identity.test.ts
  • src/renderer/src/lib/typing-latency/sample-window.test.ts
  • src/shared/agent-process-presence-platform.test.ts
  • src/shared/agent-status-run-capability.test.ts
  • src/shared/agent-tui-input-clear.test.ts
  • src/shared/automation-cron-dialect.test.ts
  • src/shared/external-automation-jobs-file.test.ts
  • src/shared/twin-repo-host-routing.test-fixture.ts
Files with no reviewable changes: 1
  • src/shared/agent-status-run-capability.test.ts

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

@OrcaWin
OrcaWin merged commit f0ef250 into main Oct 24, 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