`make test` failure with SQLite 3.43.1
kevinmehall opened this issue · 1 comments
kevinmehall commented
After updating SQLite from 3.42.0 to 3.43.1, the tippecanoe package in NixOS fails tests:
cmp tests/pmtiles/hackspots.json.check tests/pmtiles/hackspots.json
tests/pmtiles/hackspots.json.check tests/pmtiles/hackspots.json differ: char 205, line 4
make: *** [Makefile:193: pmtiles-test] Error 1
make: *** Waiting for unfinished jobs....
It looks like this is just due to a change in floating point rounding:
--- tests/pmtiles/hackspots.json 1970-01-01 00:00:01.000000000 +0000
+++ tests/pmtiles/hackspots.json.check 2023-09-30 00:19:11.884732916 +0000
@@ -1,6 +1,6 @@
{ "type": "FeatureCollection", "properties": {
"bounds": "-122.682427,45.512331,-122.654961,45.569975",
-"center": "-122.662354,45.514045,14",
+"center": "-122.662353,45.514045,14",
"description": "tests/pmtiles/hackspots.pmtiles",
"format": "pbf",
"generator_options": "./tippecanoe -q -f -o tests/pmtiles/hackspots.pmtiles -r1 -pC tests/raw-tiles/hackspots.geojson",
e-n-f commented
Thanks for the report. There have been a lot of minor discrepancies in floating point values in the tests recently, and I need to figure out how to make the tests less sensitive to changes in rounding.