Skip to content

Commit 0abf93e

Browse files
Merge pull request #51 from BitHighlander/fix/u5-last-shipped-stays-17
fix(test): LAST_SHIPPED stays 17 until 7.16 actually ships
2 parents fa4898d + 83c3ed2 commit 0abf93e

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tests/test_storage_version_gate.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,18 @@ def test_active_flash_format_is_v20(self):
442442
"is a deliberate release act (docs/StorageVersionGate.md): confirm "
443443
"the reader chain, the anti-rollback story, and the release notes, "
444444
"then update this test." % self.version)
445-
self.assertEqual(20, self.last_shipped)
445+
# LAST_SHIPPED stays at 17 until 7.16 actually SHIPS in a signed
446+
# release. It is the high-water mark of what is IN THE FIELD, not of
447+
# what is in the tree -- and storage.h says two lines above the
448+
# constant that raising it to make a build compile "is the exact edit
449+
# that turns every upgrade in the field into a silent wipe". The
450+
# compile-time assert only needs STORAGE_VERSION >= LAST_SHIPPED, and
451+
# 20 >= 17 holds, so nothing requires the raise.
452+
self.assertEqual(
453+
17, self.last_shipped,
454+
"STORAGE_VERSION_LAST_SHIPPED is %d. It tracks the last SIGNED "
455+
"release (7.15 = V17) and moves in the release commit that tags "
456+
"7.16, not when a format lands in the tree." % self.last_shipped)
446457

447458
def test_burned_versions_have_no_reader(self):
448459
"""18 and 19 must never be parsed by 7.16.

0 commit comments

Comments
 (0)