Repository navigation
test(e2e): restart the WSL move fence spec from a phase startup recovery keeps - #39200
Merged
Merged
Conversation
Contributor
|
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 11 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. |
…ery keeps Since #34683 a move journal promotes the WSL hosts gate to serve-only, so startup recovery now runs and undoes a move interrupted before blobs-transferred. The spec restarted at source-fenced and expected the fence to survive; assert the undo there, fence from blobs-transferred, and expect the committed refusal to name the host (#34880). Route fence and recovery sources to the spec. Co-Authored-By: Claude <noreply@anthropic.com>
nwparker
force-pushed
the
nwparker/nightly-e2e-wsl-move-fence
branch
from
November 6, 2026 22:47
b96e928 to
f2b2f0d
Compare
nwparker
enabled auto-merge (squash)
November 6, 2026 22:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
The nightly test for "a project that is moving to WSL refuses new terminals" has failed every night since Oct 28. The app is right; the test was asking for behavior the app deliberately changed. This updates the test to check the current behavior and makes PRs that touch this code run it.
What Changed
tests/e2e/wsl-move-fence.spec.tsrestarts the app with a move journal written beside the profile. It used to restart at thesource-fencedstep and expect the moving projects to stay locked.blobs-transferred, because the WSL host can't have accepted it yet (the quit dialog says the same: "The move will be undone at next launch"). So after the restart the journal was gone and the folder opened a terminal:Received: "spawned".source-fenced, the move is undone: the journal is empty and the folder opens a terminal again.blobs-transferred, the host might have accepted the move and isn't there to ask, so the fence stays. The moving folder and repo refuse terminals and user edits, still show in the lists, and the other folder keeps working. These are the same assertions as before.destination-committed, the projects are hidden. Their terminal refusal now names the host ("now runs on its Ubuntu WSL host"), the wording fix(wsl-mover): a moved project's chat opens and answers here; a fenced terminal names its host #34880 introduced.wsl-move.fencePR e2e route (fence, reset, startup recovery, journal, spawn admission, hosts gate). Changes to those files now run this spec on the PR, and a routing test covers it. Before, nothing routed it, so neither break showed up on a PR.Why
Nobody needs to decide anything here: the undo-at-launch behavior is intended and documented (
wsl-move-reset.ts). The test keeps the full set of fence assertions; they now run at a step that still holds the fence after a restart. Changing the test to write the journal without restarting the app wouldn't work, because main only re-reads the journal when it writes it itself.Linked Issue
N/A (maintainer; nightly E2E failure)
Visual Proof
N/A: this changes only a test and CI routing. The app's behavior is the same.
Testing
ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e tests/e2e/wsl-move-fence.spec.tsfailed on main withReceived: "spawned"and passes with this change (macOS). Linux CI has the same cause: off Windows, the distro-registry check returns "unknown", so theblobs-transferredfence holds there too.pr-wsl-move-fence-route.test.mjs.pnpm tc,pnpm run check:code-quality:changed, and the routing tests pass.Risk
Level: Low. Only a test and CI routing change. The new route adds this one spec (about 30s) to PRs that touch the WSL move fence files. Revert to undo.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)