Skip to content

test: the moved case moves a workspace from one guest host to the other - #42

Merged
aledbf merged 1 commit into
mainfrom
test-moved-between-guests
Nov 17, 2026
Merged

aledbf merged 1 commit into
mainfrom
test-moved-between-guests

Conversation

@aledbf

@aledbf aledbf commented Nov 17, 2026

Copy link
Copy Markdown
Member

The moved case of task test:spin-remote moved e2e-running, which lives on the lane's own host. A workspace's memory resumes only on a host of the processor it was taken on (spin's machine identity), and the guests e2e:hosts:up boots are QEMU's, so both refused it ("host … runs another machine than the one the memory was taken on") and the move aborted, with spin#1225 fixed or not.

The case now makes e2e-moved on guest a with every other host drained, opens the window on it, and moves it with all hosts active, which leaves guest b: as spin's own hosts lane moves one (internal/e2e/hosts_test.go). It activates the hosts again and erases e2e-moved after, pass or fail.

Run

Against spin main at a7e480544 (spin#1263 in), e2e:up, e2e:workspaces, e2e:hosts:up, CASES=moved:

ok   moved: e2e-moved runs on guest a
ok   moved: VS Code resolved spin+e2e-moved again and the resolver opened it again
ok   moved: the window was back within 600 s      (9027 ms)
ok   moved: the terminal is the same shell        (pid 1226 before and after)
ok   moved: spin workspace move succeeded
ok   moved: e2e-moved runs on guest b

Part of #24 (its "Moved host" item).

🤖 Generated with Claude Code

A workspace's memory resumes only on a host of the processor it was taken
on (spin's machine identity). e2e-running lives on the lane's own host,
this machine, and the guests e2e:hosts:up boots are QEMU's, so moving it
was refused by both guests ("runs another machine than the one the memory
was taken on") and the move aborted, whatever spin#1225 did.

The case now makes e2e-moved on guest a, with every other host drained,
and moves it with all of them active, which leaves guest b - as spin's own
hosts lane moves one. It puts the hosts back and erases e2e-moved after.

Against spin main (f8a9fef, spin#1263 in) with e2e:hosts:up: the move
succeeds, the window is back in 9 s and its terminal is the same shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 4c132d9 into main Nov 17, 2026
3 checks passed
@aledbf
aledbf deleted the test-moved-between-guests branch November 17, 2026 15:33
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