You signed in with another tab or window. Reload to refresh
8000
your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
10000
Installer installs 0.7 over 0.8 state after an install by commit hash, on the VM provider #3900
priority:must-haveMust be done. Applied by the inbox-route classifier or a human.release:0.8.0Must be done for the 0.8.0 release. Pair with priority:must-have.
Found by #3876 J2, run on Karl's Mac: a spawnpoint Debian arm64 VM with nested KVM and the VM provider (local-minvmd), upgrading from 0.7.2 to f0ccb306 (unstable 748).
Situation
install.sh --version 0.7.2 over the 0.8 state installed every component and exited 0, with no refusal. A 0.7 binary then runs over state it cannot read. R2.6 says the installer refuses this before it downloads anything.
Cause
state_from_0_8 (scripts/install.sh) finds 0.8 state in two ways:
The key in install.toml names a version from 0.8 on. A bucket install of a nightly or candidate is named by its commit hash (versions/f0ccb306), and the installer writes that hash as the key. ver_from_0_8 cannot place a hash.
$box_state/sessions/index.json has a format_version above 0. With the VM provider that index is inside the VM's data volume (providers/local-minvmd0/data-vol.raw), so the host never has one.
So every install by hash on the VM provider is unguarded. That includes an RC named by its commit, and every nightly.
Fix
When the key cannot be placed, state_from_0_8 asks the min on disk (min version), the build that install placed, once per run. A min that reports 0.8 or later means 0.8 state. The key stays the hash, because the update check compares it with the channel pointer. Spec 07 R2.6 states the new rule, and scripts/install_test.sh case rd13 pins it: an install by hash, with no box index on disk.
Not in this fix: a host-side marker for the VM provider's state. With this fix, an install by any recorded key is guarded. A VM-provider state with no install.toml (one not made by the installer) is still unguarded.
priority:must-haveMust be done. Applied by the inbox-route classifier or a human.release:0.8.0Must be done for the 0.8.0 release. Pair with priority:must-have.
Activity
fix(install): refuse 0.7 over 0.8 state that an install by commit has…