-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test #1642
base: main
Are you sure you want to change the base?
Fix test #1642
Conversation
I am seeing a very strange issue - the ❯ diff failed/tests/output/martin-cp/flat_summary.txt expected/martin-cp/flat_summary.txt
7,9c7,9
< 1 | 4 | 338B | 705B | 439B | -180,-85,180,85
< 2 | 5 | 123B | 690B | 356B | -90,-67,180,67
< 3 | 8 | 75B | 727B | 245B | -45,-41,180,67
---
> 1 | 2 | 150B | 172B | 161B | -180,-85,0,85
> 2 | 4 | 291B | 690B | 414B | -90,-67,90,67
> 3 | 7 | 75B | 727B | 263B | -45,-41,90,67
13c13
< all | 127 | 75B | 727B | 197B | -180,-85,180,85
---
> all | 123 | 75B | 727B | 190B | -180,-85,180,85 P.S. what the above means is that the failed (CI) runs generate fewer tiles than my local installation. |
Yes I noticed and trying to figure out |
how can it be that martin-cp sees fewer tiles in CI? Could it be a postgres issue (some magical SQL returns a different result?)... or something else? This is probably the biggest concern tbh - as it shows that in CI we have different content somehow |
as_mvtgeom filter more than ever may be? Need to dig into |
debugging |
The failed test is running on db-latest:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:17-3.5
restart: unless-stopped
ports:
- '${PGPORT:-5411}:5432'
command:
- '-c'
- 'max_connections=200'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
- POSTGRES_DB=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATABASE=db
- PGUSER=postgres
- PGPASSWORD=postgres
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh # a command added in jsutfile in this PR
just test-latest So It seems that the new version PG/PostGIS return more than ever. |
@@ -450,6 +450,20 @@ mod tests { | |||
|
|||
use super::*; | |||
|
|||
#[test] | |||
fn temp_test_tile_ranges() { | |||
let bbox = Bounds::from_str("-2, -1, 142.84, 45").unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a temp test here(would be removed before merge). We could see the tile range is same with our local machine.
I think we need to use the same version of postgres in both CI and in our local development - for consistency. I also think we should (for now) stay at an older version, e.g. 15, just so that we don't analyze too many things at the same time - and rebless the tests and release. Once done, we should figure out why v16+ (?) generates significantly different results - as this might be a major bug in our ST_AsMVT tile generation |
Totally agree. |
Try to fix #1630
geozero
do no supportmvt
andogrmerge
works well)*.pbf
test-latest
start-latest
tojustfile
martin-cp
test on latest Postgres/PostGIS