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

dunglas / mercure / 24781496320 / 1
84%
master: 93%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 22 Apr 2026 01:44PM UTC
Files 23
Run time 1s
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

22 Apr 2026 01:38PM UTC coverage: 83.886% (-0.2%) from 84.096%
24781496320.1

push

github

web-flow
fix(bolt): stop leaking post-subscribe events into Last-Event-ID header (#1215)

dispatchHistory used to update responseLastEventID with each key the
cursor visited BEFORE checking whether that key was already past the
subscriber's sequence snapshot. Under contention — the subscriber is
added to the transport's subscriber list *before* dispatchHistory opens
its read transaction, so a Dispatch can slip in between — the scan would
observe keys that didn't exist at subscribe time and report one of them
as the "last event" in the response header. Symptom: flaky
TestUnknownLastEventIDEmptyHistory on main ("expected: earliest,
actual: b" whenever the test's live dispatch landed before the read tx).

Two small changes:

- Reorder the loop so pastSeqBound is checked BEFORE responseLastEventID
  is assigned. Keys past the bound no longer touch the response.
- pastSeqBound now uses a strict > comparison (and drops the toSeq > 0
  short-circuit). The previous >= was off-by-one — it broke the loop on
  the exact key at toSeq, i.e. the most recent event observed at
  subscribe time. The short-circuit also meant toSeq == 0 (empty bucket
  at subscribe time) let every subsequent key through. Strict > on a
  bigendian seq compares correctly for all cases including toSeq == 0.

Existing TestUnknownLastEventID still passes (event "a" persisted BEFORE
subscribe keeps showing up as the last event); TestUnknownLastEventIDEmptyHistory
is now deterministic.

1744 of 2079 relevant lines covered (83.89%)

50.04 hits per line

Source Files on job 0 - 24781496320.1
  • Tree
  • List 23
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24781496320
  • 5a0c8bdf on github
  • Prev Job for on main (#24781484449.1)
  • Next Job for on main (#24782398641.1)
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