Skip to content

test: repair benchmark runners and strengthen policy boundaries - #33183

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58 $\color{#cf222e}{\Huge{\mathbf{−}}}$​13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​45
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5

Two Markdown benchmark runners fail to bundle because their round-trip substitutes omit a production export. Add that export as a throwing sentinel while preserving their inputs and comparisons.

Strengthen existing mobile and renderer tests to exercise page-floor acceptance/rejection, require typed gzip refusals, distinguish failure-message precedence, and check the CLI registration delay at 699 + 1 ms. Give pairing reply fixtures their required RPC IDs and remove the now-checked file from the mobile typecheck baseline.

The audit reviewed 18 sources and retained all 51 declarations; no safe removals were established. No production code changes.

Validation: all 51 focused cases pass before and after, with no skips. Both repaired benchmark runners complete all 11 workloads; the four unchanged runners retain their authenticated passing executions. Production-fault controls demonstrate the assertion gaps. Node, CLI, web, and mobile test typechecks, changed code-quality checks, and formatting pass. The mobile ratchet now has 111 grandfathered files. Benchmark timings provide no performance claim.

@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: 051491a6-2eda-4666-b756-86a306dadb07
Commits

Reviewing files that changed from the base of the PR and between 5f3f009 and 446e0ab.

Files selected for processing: 8
  • config/scripts/rich-markdown-comment-scan-benchmark.mjs
  • config/scripts/rich-markdown-line-scan-benchmark.mjs
  • mobile/src/transport/mobile-relay-pairing-reply.test.ts
  • mobile/src/transport/mobile-web-bundle-range-decode.test.ts
  • mobile/src/transport/mobile-web-page-version-floor.test.ts
  • mobile/tests-typecheck-baseline.txt
  • src/renderer/src/lib/agent-skill-cli-prerequisite.test.ts
  • src/renderer/src/lib/agent-verdict-status-line.test.ts
Files with no reviewable changes: 1
  • mobile/tests-typecheck-baseline.txt

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 changes update two rich-markdown benchmark stubs and refine tests for mobile transport and renderer behavior. Mobile tests add RPC response IDs, assert a specific bundle decode refusal, and check page-version compatibility. Renderer tests verify the installer delay at 699 ms and 700 ms and distinguish the program-status message from the expected failure text.

Priority: Low

Merge Risk: Minimal · up to 446e0

The PR repairs benchmark fixtures and strengthens tests without changing production behavior.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the code changes and validation results, but it omits most required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checkboxes, Notes… Update the description to include all required template sections. Add an actual linked issue, provide N/A with a reason for Visual Proof if applicable, document testing and platform coverage, complete the required checklist items, and add…
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 3 functions across 7 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 changes: repairing benchmark runners and strengthening boundary-focused tests.
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 code changes and validation results, but it omits most required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checkboxes, Notes, and Checklist items.

Resolution

Update the description to include all required template sections. Add an actual linked issue, provide N/A with a reason for Visual Proof if applicable, document testing and platform coverage, complete the required checklist items, and address AI Disclosure and boundary sections as applicable.

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 6f08342 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