Repository navigation
test(wsl): keep the child-side gate inheritance cases next to the gate - #35765
Conversation
|
STATUS: ready for review. Head da89e42. Test-only: two non-redundant child-inheritance cases restored into wsl-host-gate.test.ts. Load-rule checks pass locally. Reviewer: e9-reviewer (pending). |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 seconds. View limit details
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 |
[Low impact] This test-only PR appears safe to merge. SummaryRestores child-side WSL gate tests in
Reviews (2) · Last reviewed commit: "test(wsl): keep the child-side gate inhe..." · Reviewed by Greptile |
#35667 pruned src/shared/wsl-host-internal-gate.test.ts as a lone suite, dropping #35543's child-side cases. Two non-redundant ones return inside wsl-host-gate.test.ts: a child of a blocked run trusts the published closed over ORCA_INTERNAL_WSL_HOSTS=1 (and serve-only with no env), and falls back to the env when nothing valid was published. The main-side cases were already there. Co-Authored-By: Claude <[email protected]>
da89e42 to
da80037
Compare
|
STATUS: head da80037 (amended, pushed with lease). Applied e9-reviewer's nit: the garbled-value case now sets ORCA_INTERNAL_WSL_HOSTS=1 and expects true, so it fails if garbage were read as 'closed'. Load-rule checks pass again. |
ELI5
A cleanup PR deleted the test file that checked how programs Orca starts, such as the
orcacommand line, read the WSL hosts on/off state. This puts the two checks that still matter back, inside the main gate test file. A lone suite can be deleted again without anyone noticing; there, they can't be.What Changed
src/main/wsl/wsl-host-gate.test.ts, under "publishing the resolved state to child processes":ORCA_INTERNAL_WSL_HOSTS=1, and only the publishedclosedtells it the truth.closed/opentest asserts both.Production code: none.
Flag-off: test-only, no behavior change.
Why
#35667 (
a7ec7d17354) removedsrc/shared/wsl-host-internal-gate.test.tsas a low-value lone suite. That also dropped the only child-side coverage #35543 added.Status
Ready. Head
da8003759c4. Checks run locally:pnpm tc,pnpm run typecheck:ci,wsl-host-gate.test.ts(22),check:code-quality:changed, anti-slop oxlint, ast-grep gates. Reviewer: e9-reviewer.Linked Issue
Internal: WSL kill switch test coverage (follow-up to #35543).
Visual Proof
N/A: test-only.
Testing
pnpm test src/main/wsl/wsl-host-gate.test.ts: 22 passed.Review
Agent skill upstream boundary
Notes
Test-only. It touches no security, platform, SSH or performance path.
Checklist
N/Afor visuals, with reason