Skip to content

test: trim duplicate search coverage and strengthen file and image assertions - #33140

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

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

Remove the standalone empty-search-result shape assertion because the retained rejected-search test checks that result through the runtime client and verifies no IPC/RPC occurs. The same deliberately incorrect truncated value fails the retained test before and after removal.

Strengthen existing tests to check distinct legacy stat paths, editable CSV contents, an isolated CSV byte-count mismatch, image chunks against the host RPC schema, selected image bytes and photo ordering, equal-length SSH bundle corruption, the actual Markdown decoder alias, and independently specified failure facts. Correct one image-upload receipt fixture to the current producer field. Production code is unchanged.

Validation: all 216 original focused cases and 215 final cases pass with zero skips across the 23 reviewed sources. Paired faults confirm the assertion gaps and retained coverage for the removal. Configuration suites also pass all 76 cases under pinned Bun 1.4.4. Node, CLI, renderer and mobile-test typechecks, changed-code quality, formatting and commit hooks pass. Linux runtime checks use a read-only checkout, private network and temporary home with ORCA_BACKGROUND_LAUNCH=1; native UI and remote providers are outside this validation.

@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: de3f7871-9b55-4928-9f58-bffe14845fbe
Commits

Reviewing files that changed from the base of the PR and between 6386efa and cfba353.

Files selected for processing: 9
  • config/scripts/ssh-windows-mobile-bundle.test.mjs
  • config/scripts/undeclared-dependency-resolution.test.ts
  • mobile/src/session/mobile-clipboard-image.test.ts
  • mobile/src/session/mobile-image-attachment.test.ts
  • mobile/src/session/mobile-image-source-picker.test.ts
  • src/renderer/src/runtime/runtime-file-range-client.test.ts
  • src/renderer/src/runtime/runtime-file-search-bounds.test.ts
  • src/renderer/src/runtime/runtime-path-existence-batch.test.ts
  • src/shared/agent-session-failure.test.ts
Files with no reviewable changes: 1
  • src/renderer/src/runtime/runtime-file-search-bounds.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 tests across configuration scripts, mobile image handling, renderer runtime behavior, and agent session failure facts. Assertions now check specific hash-mismatch output, decoder results, image data and upload parameters, runtime file results and paths, and failure-fact values after serialization. One file-search test and its import were removed.

Priority: Low

Merge Risk: Minimal · up to cfba3

The updated tests retain the relevant rejected-search coverage, and no merge-blocking issue was identified. Merge after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description summarizes the change, the validation performed, and the test-only scope. It does not follow the repository template. It has no ELI5 section, no 'What Changed' or 'Why' sections in the… Add the template sections: an ELI5 summary in plain language; a What Changed section describing the before and after; a Why section explaining the approach and alternatives; a Linked Issue with a real issue number replacing the blank 'Fixes…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "test: trim duplicate search coverage and strengthen file and image assertions" matches the changeset. The diff removes a redundant empty-search-result shape test in runtime-file-search-boun…
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 8…
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: trim duplicate search coverage and strengthen file and image assertions" matches the changeset. The diff removes a redundant empty-search-result shape test in runtime-file-search-bounds.test.ts and strengthens assertions for file stat paths, CSV contents, image upload chunks, image source ordering, SSH bundle corruption, the Markdown decoder alias, and failure facts. It is a test-only change with no production code touched. The title is specific and accurate, though it is long at 77 characters and does not mention the SSH bundle or decoder alias updates.

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 8 files.

Full details: Description check

Explanation

The description summarizes the change, the validation performed, and the test-only scope. It does not follow the repository template. It has no ELI5 section, no 'What Changed' or 'Why' sections in the template's form, no Linked Issue (the template says outside contributors need a real linked issue, and this one has 'Fixes #' left blank), no Visual Proof statement (should be N/A with reason for a non-UI change), no Testing checkboxes ticked, no Review or Agent skill upstream boundary checkbox, and no Checklist. Several template sections are missing or incomplete.

Resolution

Add the template sections: an ELI5 summary in plain language; a What Changed section describing the before and after; a Why section explaining the approach and alternatives; a Linked Issue with a real issue number replacing the blank 'Fixes #'; a Visual Proof entry stating N/A with a reason, since no UI changes are made; the Testing checkboxes with the manual and automated test status; the Agent skill upstream boundary checkbox; and the Checklist items. Remove or fill in the AI Disclosure section if applicable.

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.

@OrcaWin
OrcaWin merged commit 9ebe41a 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