8000 Run the 0.7 to 0.8 upgrade journeys on the VM provider (macOS) · Issue #3876 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

Run the 0.7 to 0.8 upgrade journeys on the VM provider (macOS) #3876

Todo

Description

@mitodrummer

Situation

gominimal/inbox#1330 (0.7 to 0.8 upgrade) closed on 2026-11-29 with its journeys J1 to J5 run on the native provider only (unstable 741; evidence in inbox#1330 issuecomment-7249733239). The host had no KVM, so the VM-provider path was not proved.

Work

Run the same journeys on a macOS host (or a Linux host with KVM) with the VM provider, from the latest 0.7.x to the current 0.8 candidate:

  • the installer's archive of the provider state on macOS uses an APFS clone of the sparse data volume (providers/local-minvmd0/data-vol.raw), and the copy stays sparse;
  • a VM box that existed before the upgrade is listed stopped and resumes with min box attach <box> (J1 step 7);
  • the 0.8 refusal of a newer box state reaches the host through the STATE_REFUSED beacon and prints as the error, naming the data volume (J4);
  • a symlinked VM volume archives and restores beside the link's target (J5).

Expected outputs are in BOX's journey notes (1330-minfarm-expected.md); report pass or fail per step here.

Priority: should-have. It does not block the 0.8 RC unless a step fails.

🤖 Generated with Claude Code

https://claude.ai/code/session_016CYvTyVpjTE7DxZiZ29NeY

Activity

  1. added
    priority:should-have
    on Nov 29, 2026
  2. added
    priority:must-have
    release:0.8.0
    and removed
    priority:should-have
    on Nov 30, 2026
  3. agent-137 commented on Nov 30, 2026

    @agent-137
    Member

    One more step for this run, from a read-only look at a Mac on 0.7.2.

    What the Mac shows. The DNS helper the system runs, /Library/PrivilegedHelperTools/Minimal.app (minzoned sha256 fa399d46…, Oct 20), differs from the copy that 0.7.2 staged in ~/.local/bin/Minimal.app (6d749f7a…, Oct 28). Yet min finalize-install --show reports nothing to run.

    Why. No 0.7.x release compares the installed helper's bytes with the shipped ones. The comparison came in #3481 (3344eaa, 2026-11-17), which is on main but in no v0.7.* tag. 0.7.x finalize-install checks only the channel protocol version. An upgrade that ships a new minzoned that speaks the same protocol therefore leaves the old helper running, and 0.7.x reports nothing.

    On 0.8. answerer_step_over (crates/minimal/src/resolver.rs) compares installed_sha256 with shipped_sha256 and returns CopyDiffers. The installer's answerer_copy_differs (scripts/install.sh) prints "Minimal's DNS service on this machine runs a different minzoned than this release ships." and the min finalize-install line. So the 0.8 upgrade should report the stale helper and replace it. This run proves it on a real Mac.

    Step to add (macOS):

    • On a Mac whose installed helper differs from the shipped one (an upgrade from 0.7.x after a minzoned change, as above), the 0.8 install prints the "runs a different minzoned" line. min finalize-install --show lists the helper as a step. After min finalize-install, the sha256 of /Library/PrivilegedHelperTools/Minimal.app/Contents/MacOS/minzoned equals the shipped Minimal.app/Contents/MacOS/minzoned, and --show reports nothing to run.
  4. agent-137 commented on Nov 30, 2026

    @agent-137
    Member

    Results: VM provider on Linux. A spawnpoint Debian arm64 VM under UTM on Karl's Mac, with nested KVM and --provider local-minvmd throughout, from 0.7.2 to f0ccb306 (unstable 748). mac-host ran it.

    J2 found a must-have: #3900, fix in #3901. --version 0.7.2 over the 0.8 state installed every component and exited 0. The V8 installer wrote key = "f0ccb306" in install.toml, which places no version. With the VM provider, the box index is inside the data volume, so the host had none either. #3901 makes the installer ask the min on disk when the key is a hash.

    With the key set to what a fixed installer reads (0.8.0-dev.748.gf0ccb306), J1 to J5 all pass:

    Step Result
    J1: upgrade with a VM box PASS. The box resumed on the VM provider with min box attach (J1.7).
    J2: 0.7.2 over 0.8 state PASS. The refusal printed its lines in order, and nothing changed.
    J3: the guide's way back PASS
    J4: format_version 2 inside the VM volume PASS. min exited 1 after about 3 s, with one stderr line beginning error: . Nothing changed on the volume.
    J5: symlinked state directory with the VM volume inside PASS. The refusal adds the link line.

    So the Linux VM provider is proved, on condition that #3901 merges.

    Still open: macOS only, for Karl's own Mac.

    • The APFS cp -c clone of providers/local-minvmd0/data-vol.raw, which stays sparse.
    • The DNS helper replacement (comment above).
    • New, from Norrie's fix(minvmd,minimald): bump the answerer channel protocol to 4 and pin its wire types #3851, which bumps the answerer protocol to 4. After a macOS upgrade, no box gets an address until min finalize-install runs. That includes a stopped box resumed with min box attach. The installer already offers min finalize-install (offer_finalize_install) before it prints the upgrade card, so the card does not change. The check:

    Script fixes for the macOS run:

    • Use diff -r -x '*.sock'.
    • In 0.7.2, session run takes only a declared task, so use session exec keep "<cmd>". Bare stop needs --force while sessions are active.
    • The finalize-install of 0.7.2 does not add the user to the kvm group.
    • J4.3 and J4.5 need sudo stat, because sessions/ is mode 700.
    • J4.1's minimal.0.7.2.<n> does not appear after J3.2, because J3.2 moves the copy back.
  5. agent-137 commented on Dec 1, 2026

    @agent-137
    Member

    #3900's fix confirmed on the real build. This run used unstable 0.8.0-dev.772.g2c608505, which includes #3901, in the spawnpoint Linux VM. It started from a fresh tree (j3876d) with local-minvmd, nested KVM, and the VM only. Unlike the earlier runs, it did not rewrite the install.toml key by hand.

    Step Result
    J1.1–J1.4 PASS. Installed 0.7.2, created the box keep and wrote its marker on local-minvmd0, then stopped it. Upgraded to 2c608505. The upgrade printed the box state saved ~/.local/state/minimal.0.7.2 row and the kept-boxes card.
    install.toml as written key = "2c608505": still the bare hash (scripts/install.sh:2087 writes key = "$VERSION"). The fix is on the read side. state_from_0_8 asks $bindir/min version when the key is not a version (scripts/install.sh:1302).
    J2.1 PASS. install.sh --version 0.7.2 exited 1 after 3 s with no download. The refusal text matched line for line. Asking min version started no daemon.
    J2.2 PASS. Nothing in the state directory is newer than the stamp, and min is still 772.

    Not run in this tree:

    Still open, and macOS only, for Karl's Mac:

  6. mitodrummer commented on Dec 1, 2026

    @mitodrummer
    MemberAuthor

    Two journeys to add, from the uninstall gap found on 2026-12-01 (#3911, #3912):

    Both can run in the spawnpoint Linux VM; the macOS run covers the APFS side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:must-haverelease:0.8.0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0