Skip to content

test: remove workflow string checks and strengthen provider assertions - #33017

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

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

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 24, 2026 •

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

Four installer-release tests inspect YAML strings and flags but still pass when the swap body is unreachable or the build job tolerates failure. Remove those checks and their exclusive helper/import; retain the real cache discovery, replacement, probe, and CLI cases.

Strengthen the remaining tests where a missing output or empty result could satisfy the assertion: require the initial Codex child, a current prompt in the bounded transcript tail, full prompt hashing and UTF-8 byte offsets, actual jcode prior state and session-only identity, native copy invocation/fallback behavior, and SQLite-positive cache reclassification. Isolate jcode storage, restore leaked spies, make executable fixtures independent of umask, and narrow unsupported test titles/provenance claims. Production code is unchanged.

Validation: 75 focused cases pass; one real-cache case deliberately skips against an isolated absent cache. Node typecheck, changed-code quality, formatting, and whitespace checks pass. Audit-local regression controls distinguish the stronger assertions from the originals. Local runtime is Linux; native macOS/Windows behavior remains for CI.

@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: 5552eb78-29bb-4c80-ad50-8580136acccb
Commits

Reviewing files that changed from the base of the PR and between cedce2a and 9a53a68.

Files selected for processing: 7
  • config/scripts/replace-cached-nsis-elevate.test.mjs
  • config/scripts/space-sharing-copy.test.ts
  • config/scripts/vitest-sqlite-runtime-cache.test.ts
  • src/shared/agent-hook-listener-codex-subagent-names.test.ts
  • src/shared/agent-hook-listener-command-code-transcript.test.ts
  • src/shared/agent-hook-listener-jcode.test.ts
  • src/shared/agent-hook-listener-omp-plan-review.test.ts
Files with no reviewable changes: 1
  • config/scripts/replace-cached-nsis-elevate.test.mjs

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

Walkthrough

The changes revise tests across config scripts and shared agent-hook listeners. They add checks for native copy commands, fallback behavior, cache scanning, transcript prompt handling, and provider-specific listener state. They also remove release-workflow tests and update several test descriptions and assertions.

Priority: Low

Merge Risk: Minimal · up to 9a53a

The test updates present no identified merge-blocking risk; merge after normal checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the scope, rationale, test changes, validation results, and platform coverage. However, it does not follow the repository template and omits the required Linked Issue, Visual … Add the missing template sections. Provide an actual issue link after "Fixes #". Add "N/A" with a reason under Visual Proof because this is a test-only change. Complete the Testing checklist and document the required command results, then c…
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 1 functions across 6 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 identifies the two main changes: removing workflow string checks and strengthening provider assertions.
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 scope, rationale, test changes, validation results, and platform coverage. However, it does not follow the repository template and omits the required Linked Issue, Visual Proof, Testing checklist, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections.

Resolution

Add the missing template sections. Provide an actual issue link after "Fixes #". Add "N/A" with a reason under Visual Proof because this is a test-only change. Complete the Testing checklist and document the required command results, then complete the remaining Review, Agent skill upstream boundary, Notes, and Checklist sections.

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 4d22306 into main Oct 24, 2026
32 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