Repository navigation
test(wsl-mover): prove the host's server update is held during a real move - #35404
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 10 minutes. 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. SummaryAdds tests showing that a WSL host keeps its running server during a real project move.
Reviews (1) · Last reviewed commit: "test(wsl-mover): prove the host's server..." · Reviewed by Greptile |
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
When a project is moving onto a WSL host, Orca must not replace that host's server partway through, or the move gets cut off. #34823 added that hold, but it couldn't be shown on a test device, because that needs a newer server build to update to. This PR proves it in CI instead: it runs a real project move, tries to update the host's server partway through, and checks that the update waits and then goes through once the move ends, however it ends.
What Changed
Test-only. No product code changes.
New
src/main/wsl/wsl-orcad-update-move-hold-driver.test.tsuses the same rig as test(wsl-mover): prove an update install is held during a real move #35345 (which covered the app update for fix(wsl-mover): hold an app update install while a WSL project move runs #34813). These parts are real:deployAndLaunchWslOrcad), which is the code that decides whether to update.Only the calls into the distro itself are faked (remote commands, deploy, readiness probe), the same way
wsl-orcad-deploy.test.tsfakes them.How each test runs:
isWslMoveUnderwayOnHostis true.orcad_update_wsl_move_running. Nothing is deployed.New
managed-server-copy.test.tschecks that this code shows in Settings as "Not done: a project is moving onto this server. Orca updates it once the move finishes."Why
The device check (awin) can't produce a server build with a different version partway through a move, but CI can. The test drives the real move code rather than seeding the registry, so it also catches a change in when a move counts as underway. For example, if the hold started only after the cutover, or ended before the move had settled.
It fails with the deferral removed: with
moveRunning: falseinwsl-orcad-deploy.ts, all 4 cases fail. A failed assertion releases the paused move, so a failure doesn't leave the later cases timing out.Flag-off: test-only, no behaviour change. The test sets the WSL hosts gate the same way #35345 does.
User risk: none (tests only).
Linked Issue
Internal: CI proof for #34823's "host server update during a move" part, the counterpart of #35345 for #34813.
Visual Proof
N/A. Tests only.
Testing
wsl-orcad-deploy.test.ts,wsl-orcad-update-admission-move-hold.test.tsandupdater.wsl-move-install-hold-driver.test.ts, all passed.moveRunningto false fails all 4 cases.pnpm tc,oxlint,pnpm run check:code-quality:changedand the ast-grep gate pass.Agent skill upstream boundary
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)