Skip to content

test(upgrade-sim): assert what self update owns, not what it deliberately leaves - #438

Merged
Sunrisepeak merged 1 commit into
mainfrom
fix/sim-self-update-assertion
Jul 27, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
fix/sim-self-update-assertion

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

The harness on main still files self-update-effective as a blocker
because the recorded client version stays at v0.4.69 across the upgrade.
After #435 that is designed behaviour, and a findings table with a known-false
row is a table people learn to skip.

self update runs the old binary. It cannot know whether the new one will
find anything to migrate, so it does not claim the home is reconciled;
self doctor --fix stamps the field when the migration actually happens, and
the mismatch in between is precisely what the new client reads to know it
should tell the user. The defect became the marker.

The phase now asserts the two things separately:

The second assertion is the interesting one: it fails if someone later makes
self update stamp the field, which would silently switch the migration hint
off for every home that upgrades without being repaired.

(The correction already exists on the temporary verification branch; this
lands it on main, where the harness actually lives.)

…tely leaves

The harness filed `self-update-effective` as a blocker because the recorded
client version stayed at v0.4.69 across the upgrade. That is now designed
behaviour, and a findings table with a known-false row is a table people learn
to skip.

`self update` runs the OLD binary. It cannot know whether the new one will find
anything to migrate, so it does not claim the home is reconciled; `self doctor
--fix` stamps the field when the migration actually happens, and the mismatch
in between is precisely what the new client reads to know it should tell the
user. The defect became the marker.

So the phase now asserts the two things separately:

- self update REPLACED THE BINARY -- fingerprinted before and after, because
  its exit code is not evidence of anything (a 0.4.69 client answered 404 from
  a CN mirror and still reported success, #424)
- the recorded version deliberately did NOT move

The second assertion is the interesting one: it fails if someone later makes
`self update` stamp the field, which would silently switch the migration hint
off for every home that upgrades without being repaired.
@Sunrisepeak
Sunrisepeak merged commit c264ceb into main Jul 27, 2026
7 checks passed
@Sunrisepeak
Sunrisepeak deleted the fix/sim-self-update-assertion branch July 27, 2026 23:49
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