Skip to content

test(child-process): lower DIRECT_IMPORTER_PIN to the ground two PRs took - #19009

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/fix-direct-importer-pin-collision
Sep 6, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/fix-direct-importer-pin-collision

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 6, 2026 •

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

What broke

main fails child-process-import-boundary.test.ts right now:

AssertionError: Only 156 files import child_process directly.
Lower DIRECT_IMPORTER_PIN to 156 to keep the ground you just took.:
expected 156 to be greater than or equal to 157

Why

#17861 migrated src/relay/windows-port-scan.ts off node:child_process. #17884 migrated src/shared/secure-path-windows-acl.ts. Each removed one importer and each independently lowered the pin 158 -> 157 on its own branch. Both were correct in isolation; landed together they took two files, so the true count is 156.

The pin is two-sided (toBeLessThanOrEqual and toBeGreaterThanOrEqual), so it failed loudly rather than silently — working as designed.

The fix

Lower the pin to 156. This tightens the ratchet: a pin left above reality re-opens room for the next direct import to land for free, which is what the assertion's own message says.

UNHIDDEN_SPAWNER_PIN is unaffected — only #17861 moved it (66 -> 65), so there was no collision there.

Verification

Both ratchets pass at 156: child-process-import-boundary.test.ts and windows-console-visibility.test.ts, 8 tests, 2 files.

…took

#17861 and #17884 each migrated one file off node:child_process and each
lowered the pin 158 -> 157 independently. Together they took two, so the
true count is 156 and the two-sided assertion fails on main.
@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 71d7bd3e-4186-4225-86d1-2e3b3b5f7280

📥 Commits

Reviewing files that changed from the base of the PR and between 0cbb01e and 1a126be.

📒 Files selected for processing (1)
  • src/shared/child-process/child-process-import-boundary.test.ts

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


📝 Walkthrough

Walkthrough

The child-process import boundary test lowers DIRECT_IMPORTER_PIN from 157 to 156.

Merge Risk: ⚪ Minimal · up to 1a126

This updates the child-process import-boundary test to reflect 156 direct importers. No remaining current-head merge risk is identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the failure, cause, fix, and verification, but it omits several required template sections, including ELI5, Visual Proof, Testing, Review, Notes, and Checklist. Complete the required template sections. Add an ELI5 summary, state Visual Proof as N/A with a reason, document testing and platform coverage, complete the checklist, and provide the required review and compatibility details.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the test change and the reduction of DIRECT_IMPORTER_PIN caused by two prior importer removals.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Lower DIRECT_IMPORTER_PIN 157 → 156 — two independent migrations (#17861, #17884) each removed one direct node:child_process importer and each independently dropped the pin to 157; landed together the true offender count is 156. This restores the ratchet to reality.

The change is correct: the pin is two-sided (toBeLessThanOrEqual and toBeGreaterThanOrEqual), so the ratchet failing loudly at 157 was the guard working as designed, and 156 is the true count, not a guess. Verified locally — pnpm exec vitest run --config config/vitest.config.ts src/shared/child-process/child-process-import-boundary.test.ts passes all 4 tests. This tightens rather than relaxes the ratchet, and UNHIDDEN_SPAWNER_PIN is untouched.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@OrcaWin
OrcaWin merged commit 0b6308f into main Sep 6, 2026
28 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…took (stablyai#19009)

stablyai#17861 and stablyai#17884 each migrated one file off node:child_process and each
lowered the pin 158 -> 157 independently. Together they took two, so the
true count is 156 and the two-sided assertion fails on main.

Co-authored-by: Orca Worker <orca-worker@localhost>
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