Files
devvm/testdata/script
w3cjandClaude Opus 5.5 b5f3899f1a test(vm): smaller 0.1.0 cases
fixture_v010_small.txtar runs what changed since 0.1.0 on its frozen
state, in smaller cases:

- devvm ports on 0.1.0's records of app's port forwarder (its pid and
  status, no list of what it forwarded) says nothing is held, taken,
  past the limit or refused.
- A proxy port 0.1.0 chose on one of the ports only VMs' ssh may have
  (its proxy port moved onto the sandbox's first ssh port) moves at
  app's next start, off the list, and the proxy's config listens there.
- On Linux, that start gives the guest's connections to the proxy the
  capped devvm _qemu connect, to that port, with app's own
  run/proxy.slots, where a 0.1.0 start had the two-argument form. The
  limactl stub now records the start's DEVVM_GUESTFWD
  ($STUB_DIR/start-guestfwd-<name>, empty when unset), as it records
  the start's agent, with its unit test, and the structure test's
  envSettings lists the stub as a reader of DEVVM_GUESTFWD.
- app, stopped, holds none of its listed ports: scratch lists 3000 too
  and forwards it, and app, started again, says scratch has it
  (ports_held, held_by in devvm ports --json) and that a program here
  has another port it lists (ports_taken), never the limit or a
  refusal. While it runs, devvm ports names each reason its
  forwarder's record gives (ports_taken, ports_limit, ports_refused,
  each its own port), and none for an older devvm's three-line record
  (reasons.sh judges only a run on the record as it wrote it, trying
  again when app's forwarder, waiting on scratch's port, replaced it).
- #52's leftover, a state as 0.1.0 wrote it for a folder named x--y
  before Lima refused the name (built from app's 0.1.0 state: its name
  and alias with the run of separators, the folder's path, no created
  time or start), is read as no VM and replaced by the folder's VM.
- After a boot that numbered the disks anew and a move of app's folder,
  devvm adopt VM moves app to the new path, and its launch starts it
  there.

Found, not changed: a moved folder on a renumbered device isn't taken
as the VM's folder (platform.SameFolder matches another device only at
the recorded path, as a copy keeping the inode and birth time sits
elsewhere), so devvm there, without adopt, makes a second VM for the
moved folder, saying nothing of the first, whose folder is gone; devvm
adopt VM is the way back, as the docs say.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 20:06:44 -07:00
..