Iceland: acceptance tests for the remaining R-checks #121

Closed
opened 2026-08-15 07:22:14 +00:00 by art · 2 comments
Owner

Part of the #115 plan: the mechanism (config-declared acceptance_tests:, run by the importer on every import and via -acceptance-only) landed in #119 with a representative first set. This issue tracks porting the REST of this country's R-checks into acceptance tests. The general instruction from #115: a test is a sentence citing the R-number, a SQL query whose first column is the pass/fail boolean, and a timeout from {1, 10, 100, 1000}; prefer 1s/10s, put the genuinely slow ones at 100s.

Candidates already measured/written down in docs/country-requirements.md:

  • R105/R119: every staging table's row count is nonzero after load (cheap; catches the shapefile-polygon-only loader silently skipping rows).
  • R119/R120: row counts per zoom with no unintended empty partition, and NULL shares in the columns that matter, for the ismap_* per-country layers (contours, peaks, buildings, airports — R13's Iceland-only set).
  • R46/R49/R50/R51: waterways importance histogram (Horton shape), zero NULL strahler — the shared-contract R46 test covers NULLs but not the ladder shape.
  • R34: cover area within ~1% of the authoritative national area (metric CRS), the R34 check Iceland is one of the two reference cases for.
  • #120's fix should land WITH its acceptance test ("0 invalid geometries at maxz") so the regression is caught the same way it was found.
Part of the #115 plan: the mechanism (config-declared `acceptance_tests:`, run by the importer on every import and via `-acceptance-only`) landed in #119 with a representative first set. This issue tracks porting the REST of this country's R-checks into acceptance tests. The general instruction from #115: a test is a sentence citing the R-number, a SQL query whose first column is the pass/fail boolean, and a timeout from {1, 10, 100, 1000}; prefer 1s/10s, put the genuinely slow ones at 100s. Candidates already measured/written down in docs/country-requirements.md: - R105/R119: every staging table's row count is nonzero after load (cheap; catches the shapefile-polygon-only loader silently skipping rows). - R119/R120: row counts per zoom with no unintended empty partition, and NULL shares in the columns that matter, for the ismap_* per-country layers (contours, peaks, buildings, airports — R13's Iceland-only set). - R46/R49/R50/R51: waterways importance histogram (Horton shape), zero NULL strahler — the shared-contract R46 test covers NULLs but not the ladder shape. - R34: cover area within ~1% of the authoritative national area (metric CRS), the R34 check Iceland is one of the two reference cases for. - #120's fix should land WITH its acceptance test ("0 invalid geometries at maxz") so the regression is caught the same way it was found.
Author
Owner

Depends on #120 -- the 0 invalid geometries at maxz test in this issue candidate list ships with #120 fix; #120 is ahead of #121 in the queue (2026-08-15).

Depends on #120 -- the 0 invalid geometries at maxz test in this issue candidate list ships with #120 fix; #120 is ahead of #121 in the queue (2026-08-15).
Author
Owner

Result is in #132 — #132; the review note is the PR description.

Result is in #132 — https://git.blahonga.org/art/ismap/pulls/132; the review note is the PR description.
art closed this issue 2026-08-15 19:16:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
art/ismap#121
No description provided.