Repository navigation
test(upgrade-sim): assert what self update owns, not what it deliberately leaves - #438
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The harness on
mainstill filesself-update-effectiveas a blockerbecause the recorded client version stays at
v0.4.69across 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 updateruns the old binary. It cannot know whether the new one willfind anything to migrate, so it does not claim the home is reconciled;
self doctor --fixstamps the field when the migration actually happens, andthe 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:
self updatereplaced 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, fix(cli): stop the upgrade path from reporting success it did not have #424)
The second assertion is the interesting one: it fails if someone later makes
self updatestamp the field, which would silently switch the migration hintoff 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.)