Skip to content

test(e2e): restart the WSL move fence spec from a phase startup recovery keeps - #39200

Merged
nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-wsl-move-fence
Nov 6, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-wsl-move-fence

Conversation

@nwparker

@nwparker nwparker commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​41
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9

What Changed

  • tests/e2e/wsl-move-fence.spec.ts restarts the app with a move journal written beside the profile. It used to restart at the source-fenced step and expect the moving projects to stay locked.
  • Since feat(wsl): serve saved WSL work behind a closed hosts gate (gate states, kill switch 1/2) #34683, any move journal on disk turns on the WSL "serve-only" mode at startup, which turns on startup recovery. Recovery undoes a move that stopped before 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".
  • The test now checks three things:
    1. After a restart at source-fenced, the move is undone: the journal is empty and the folder opens a terminal again.
    2. After a restart at 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.
    3. After a restart at 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.
  • Added a wsl-move.fence PR 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

  • I manually tested these changes locally: ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e tests/e2e/wsl-move-fence.spec.ts failed on main with Received: "spawned" and passes with this change (macOS). Linux CI has the same cause: off Windows, the distro-registry check returns "unknown", so the blobs-transferred fence holds there too.
  • Automated tests added/updated: a routing test in pr-wsl-move-fence-route.test.mjs.
  • Every added test fails without this change

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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: d24de2ea-d9c9-480b-8303-768f5fd48573
Commits

Reviewing files that changed from the base of the PR and between a2ad899 and f2b2f0d.

Files selected for processing: 3

  • config/scripts/workflow/source-routing/pr-wsl-e2e-source-routes.mjs
  • config/scripts/workflow/source-routing/pr-wsl-move-fence-route.test.mjs
  • tests/e2e/wsl-move-fence.spec.ts
  • 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

…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
nwparker force-pushed the nwparker/nightly-e2e-wsl-move-fence branch from b96e928 to f2b2f0d Compare November 6, 2026 22:47
@nwparker
nwparker enabled auto-merge (squash) November 6, 2026 22:48
@nwparker
nwparker merged commit 4430743 into main Nov 6, 2026
48 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