• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / Iznik / 21586
71%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2026 08:58AM UTC
Jobs 4
Files 1288
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jun 2026 08:32AM UTC coverage: 70.815% (-0.001%) from 70.816%
21586

push

circleci

web-flow
fix(spatial): centroid postcode geometry so 2M-row load doesn't error on non-point rows (#767)

The postcodes dataset loader called ST_X/ST_Y directly on
COALESCE(ourgeometry, geometry). A handful of type='Postcode' rows carry a
non-point ourgeometry (a LINESTRING/polygon override), and ST_X only accepts a
POINT, so the whole prod load aborted with:

  Error 3516 (22S01): POINT value is a geometry of unexpected type LINESTRING in st_x.

leaving the postcodes index empty (count 0, ready false) and breaking
Location::closestPostcode / apiv2 ClosestPostcode in production. CI passed
because its seeded test postcodes are all points.

Wrap the geometry in ST_Centroid first (a POINT is its own centroid;
LINESTRING/POLYGON collapse to a representative point), matching the existing
expression in compare.go. Verified against prod: 1,961,927 postcodes load and
KNN returns the correct nearest full postcode (WC2N 5DU for Charing Cross,
M2 4NG for central Manchester, both within ~90m).

Co-authored-by: root <root@localhost>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

10979 of 14580 branches covered (75.3%)

Branch coverage included in aggregate %.

118917 of 168850 relevant lines covered (70.43%)

36.24 hits per line

Jobs
ID Job ID Ran Files Coverage
21586 go - 21586 16 Jun 2026 08:58AM UTC 136
83.01
CircleCI Job 21586
21586 vitest - 21586 16 Jun 2026 08:58AM UTC 703
68.69
CircleCI Job 21586
21586 laravel - 21586 16 Jun 2026 08:58AM UTC 448
67.41
CircleCI Job 21586
21586 playwright - 21586 16 Jun 2026 08:58AM UTC 70
22.96
CircleCI Job 21586
Source Files on build 21586
  • Tree
  • List 1288
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #21586
  • 48be8e97 on github
  • Prev Build on master (#21571)
  • Next Build on master (#21595)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc