Repository navigation
test(child-process): lower DIRECT_IMPORTER_PIN to the ground two PRs took - #19009
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe child-process import boundary test lowers Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Lower
DIRECT_IMPORTER_PIN157 → 156 — two independent migrations (#17861, #17884) each removed one directnode:child_processimporter 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.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
…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>

What broke
mainfailschild-process-import-boundary.test.tsright now:Why
#17861 migrated
src/relay/windows-port-scan.tsoffnode:child_process. #17884 migratedsrc/shared/secure-path-windows-acl.ts. Each removed one importer and each independently lowered the pin158 -> 157on 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 (
toBeLessThanOrEqualandtoBeGreaterThanOrEqual), 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_PINis unaffected — only #17861 moved it (66 -> 65), so there was no collision there.Verification
Both ratchets pass at 156:
child-process-import-boundary.test.tsandwindows-console-visibility.test.ts, 8 tests, 2 files.