Modern Apps git

← Modern-Apps.git

maps: live manifest test pins the planet5 build (#planet5)

Commit
b603e1137cdb098bf1ec0af6f918110bd025fe88
Author
Vayun Mathur <[email protected]>
When
2026-11-14 02:48 UTC (22 days ago)
Parents
35543fc
MapOverlayLiveTest (MAMAPS_LIVE=1 only) fetches MapOverlay.MANIFEST_URL,
now planet5.manifest.json, and checks it pins the archive the app
downloads. Its constants named planet4's build; they now name the
planet5 build of 2026-11-14 (build id 0xbdf38831949d7f2c, written as
a signed Long literal; 64,211,565,112 bytes), and the comments
describe the planet4 -> planet5 rebase instead of planet3 -> planet4.

Verified: header of the built planet5.mamaps (renderer real-archive
header test); runs live once planet5 and its manifest are published.

Diff

maps/src/test/java/com/vayunmathur/maps/util/MapOverlayLiveTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/MapOverlayLiveTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/MapOverlayLiveTest.ktindex 4a7cc09d4d..8f9e3acec0 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/MapOverlayLiveTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/MapOverlayLiveTest.kt@@ -8,32 +8,33 @@ import kotlin.test.assertTrue import org.junit.Assume  /**- * The LIVE `planet4.manifest.json` through [MapOverlay.parse], checked against what the app- * downloads ([MapTileCache.BASEMAP_ARCHIVE_URL]) and what a planet3 install will do with it.+ * The LIVE `planet5.manifest.json` through [MapOverlay.parse], checked against what the app+ * downloads ([MapTileCache.BASEMAP_ARCHIVE_URL]) and what a planet4 install will do with it.  * Skipped unless `MAMAPS_LIVE=1` (network to data.maproj.org).  */ class MapOverlayLiveTest {      @Test-    fun `live planet4 manifest parses and pins the archive the app downloads`() {+    fun `live planet5 manifest parses and pins the archive the app downloads`() {         Assume.assumeTrue("MAMAPS_LIVE not set; live test skipped", System.getenv("MAMAPS_LIVE") == "1")         val text = URI(MapOverlay.MANIFEST_URL).toURL().readText()         println("live manifest (${text.length} B): $text")         val m = assertNotNull(MapOverlay.parse(text), "the client refuses the live manifest")         assertEquals(MapTileCache.BASEMAP_MANIFEST_URL, MapOverlay.MANIFEST_URL)         assertEquals(MapTileCache.BASEMAP_ARCHIVE_URL, m.baseUrl)-        assertEquals(PLANET4_BUILD_ID, m.baseBuildId)-        assertEquals(PLANET4_LEN, m.baseLen)-        // A fresh base with an empty stack: the rebase signal. A planet3 install (no pinned-        // manifest, or one pinned to planet3's build) downloads planet4 once in the-        // background and swaps it in; a fresh install fetches planet4 at the startup gate.+        assertEquals(PLANET5_BUILD_ID, m.baseBuildId)+        assertEquals(PLANET5_LEN, m.baseLen)+        // A fresh base with an empty stack: the rebase signal. A planet4 install (no pinned+        // manifest, or one pinned to planet4's build) downloads planet5 once in the+        // background and swaps it in; a fresh install fetches planet5 at the startup gate.         assertTrue(m.segments.isEmpty(), "a rebase manifest carries no segments")         assertEquals(0L, m.overlaySeq)         assertTrue(m.tombstones.isEmpty())     }      private companion object {-        const val PLANET4_BUILD_ID = 0x2ab5ba5833e54438L-        const val PLANET4_LEN = 81_331_811_296L+        // The planet5 build of 2026-11-14 (planet_build.sh at a465eb7aa).+        const val PLANET5_BUILD_ID = -0x420c77ce6b6280d4L // 0xbdf38831949d7f2c as a signed Long+        const val PLANET5_LEN = 64_211_565_112L     } }