Modern Apps git

← Modern-Apps.git

maps: tests expect planet5 URLs and accept v11 bodies (#planet5)

Commit
46593b428fd1568f0997fa2c3f1d5e85897489c7
Author
Vayun Mathur <[email protected]>
When
2026-11-14 01:55 UTC (22 days ago)
Parents
90d72f3
Follow-ups to the planet5 switch found by the test runs:

- maps MapOverlaySlice3ExtraTest.workerConstants pinned the planet4
  manifest URL; it now pins planet5.manifest.json (the gbuild run of
  :maps:testDevUnitTest failed 1/1055 on exactly this).
- library/map real_archive: the every-layer test required v10 bodies
  only; planet5 carries v11 (MED-residual heightmaps). It now requires
  one body version, v10 (planet4) or v11 (planet5).

Verified: the renderer's real-archive suite on the planet5 build
(every layer decodes and tessellates in SF, NYC, London, Tokyo at
z0-14; Fuji DEM samples) and on planet4 (6/6).

Diff

library/map/src/main/rust/tests/real_archive.rs
diff --git a/library/map/src/main/rust/tests/real_archive.rs b/library/map/src/main/rust/tests/real_archive.rsindex 23a255caa3..b37cd6a4c2 100644--- a/library/map/src/main/rust/tests/real_archive.rs+++ b/library/map/src/main/rust/tests/real_archive.rs@@ -258,7 +258,11 @@ fn every_layer_decodes_and_tessellates_in_four_cities() {     assert!(regions > 0, "no region-mask shapes (boundaries)");     assert!(extra.contains_key("heightmap"), "no heightmap on any city tile");     assert!(extra.contains_key("region_links"), "no region-link tables decoded");-    assert!(versions.keys().all(|&v| v == 10), "expected v10 bodies only, got {versions:?}");+    // planet4 carries v10 bodies, planet5 v11 (MED-residual heightmaps); never a mix.+    assert!(+        versions.len() == 1 && versions.keys().all(|&v| v == 10 || v == 11),+        "expected v10 (planet4) or v11 (planet5) bodies only, got {versions:?}"+    ); }  #[test]
maps/src/test/java/com/vayunmathur/maps/util/MapOverlaySlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/MapOverlaySlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/MapOverlaySlice3ExtraTest.ktindex e7646c92c4..9d7fe49a5d 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/MapOverlaySlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/MapOverlaySlice3ExtraTest.kt@@ -141,7 +141,7 @@ class MapOverlaySlice3ExtraTest {     } }      @Test fun workerConstants() {-        assertEquals("https://data.maproj.org/planet4.manifest.json", MapOverlay.MANIFEST_URL)+        assertEquals("https://data.maproj.org/planet5.manifest.json", MapOverlay.MANIFEST_URL)         assertEquals(1, MapOverlay.MANIFEST_VERSION)     } }