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

Freegle / Iznik / 23472
71%
master: 72%

Build:
Build:
LAST BUILD BRANCH: feature/bulk-offer-management
DEFAULT BRANCH: master
Ran 25 Jun 2026 06:52PM UTC
Jobs 4
Files 1320
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

25 Jun 2026 06:28PM UTC coverage: 71.395%. First build
23472

Pull #900

circleci

edwh
fix(session): use LastInsertId for new session/export ids, not SELECT max-id

Same class as the message-create fix: session creation read the new id back with
"SELECT id FROM sessions WHERE userid=? ORDER BY id DESC LIMIT 1". With the
read/write split (MYSQL_HOST_READ set) that SELECT goes to a replica which, under
Galera's cross-node apply window, can return the user's PREVIOUS session - so the
persistent token / JWT is issued with the wrong session id (CreateSessionAndJWT
in auth.go and the draft-signup path in user.go).

export.go is filtered by a unique random tag, so a stale read returns id=0 rather
than a wrong row - softer, fixed the same way.

Read the id from the INSERT's LastInsertId on the write connection (db.DB()
returns the source even with dbresolver registered), as in CreateGroup.

A wider class of sites filter by a unique key and just return id=0 under a stale
read; wsrep_sync_wait=1 (causal reads) on the replica fixes the whole class.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SwyetpbkbQV4AWWdqkBcvv
Pull Request #900: fix(session): use LastInsertId for new session/export ids, not SELECT max-id

11281 of 14999 branches covered (75.21%)

Branch coverage included in aggregate %.

34 of 42 new or added lines in 3 files covered. (80.95%)

123766 of 174156 relevant lines covered (71.07%)

37.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
88.79
-1.26% iznik-server-go/auth/auth.go
4
88.46
-2.06% iznik-server-go/export/export.go
Jobs
ID Job ID Ran Files Coverage
23472 playwright - 23472 25 Jun 2026 06:52PM UTC 74
22.86
CircleCI Job 23472
23472 vitest - 23472 25 Jun 2026 06:52PM UTC 717
69.03
CircleCI Job 23472
23472 go - 23472 25 Jun 2026 06:52PM UTC 140
83.82
CircleCI Job 23472
23472 laravel - 23472 25 Jun 2026 06:52PM UTC 462
68.53
CircleCI Job 23472
Source Files on build 23472
  • Tree
  • List 1320
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #23472
  • Pull Request #900
  • PR Base - master (#23454)
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