Repository navigation
Conversation
|
CI note: this PR is based on #29825's branch, so CI skipped the unit-test jobs and the harness hasn't run in CI yet. Locally it passes all 25 crash points ( |
315654c to
8470999
Compare
85a9ef5 to
b4988c2
Compare
|
Restacked on the rebased #29825, with a new case. The whole 25-point crash matrix now also runs against a host that refuses the manifest inline at recovery. Every point still ends back at zero or fully moved, through |
b4988c2 to
a411fc1
Compare
|
CI: all green on head |
a411fc1 to
5861541
Compare
07b5513 to
326cf4f
Compare
5861541 to
5482c38
Compare
326cf4f to
50762d2
Compare
5482c38 to
2ad1e94
Compare
…zero or fully moved Co-Authored-By: Claude <[email protected]>
50762d2 to
c9acece
Compare
2ad1e94 to
b60da84
Compare
|
Contained in the dark landing PR #34059 (its head commit is an ancestor of the landing branch). Closing in favour of it; branch kept. |
Summary
A fault-injection test that crashes a WSL project move at every step and proves each crash ends in one of two states: back where it started, or fully moved.
Before / after
Before, nothing exercised a move as a whole under crashes. After, the test runs a move through the real journal, fence, session freeze and desktop rewrite driver. It uses a fake host catalog and fake rewrite stores, because the end-to-end move driver isn't wired yet. It crashes at each of 25 points, then restarts and runs recovery twice: once with the host unreachable and once with it answering.
prepared…blobs-transferredwritten, quiesce, stage (before, or after with the reply lost), blob transferblobs-transferredwritten, commit request not yet landeddestination-committedabout to be writtendestination-committedwritten; each rewrite store's run or flush;retainedabout to be writtenAfter every back-at-zero case, a fresh move of the same project completes. With the recovery from #29825 removed, the first crash point already ends stuck, which is today's behavior on main.
Mechanism
blobs-transferred.Why this approach
It proves the owner's "reset to zero and move again" model against the pieces that exist today, before the move driver is wired.
Testing
vitest src/main/persistence/moving-wsl-projects/wsl-move-reset-fault-injection.test.ts: 2 tests, 25 crash points. The test has a 60 s timeout because it runs about 25 whole moves on disk.