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

umputun / rlb-stats / 32196792923
88%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2026 11:21PM UTC
Jobs 1
Files 7
Run time 1min
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

18 Aug 2026 11:21PM UTC coverage: 84.951% (+1.1%) from 83.896%
32196792923

push

github

web-flow
fix: merge same-minute candles on save instead of overwriting (#59)

* fix: merge same-minute candles on save instead of overwriting

Bolt.Save keyed candles by StartMinute.Unix() and did a plain Put, so a second
candle for the same minute overwrote the first. This happens when the aggregator
flushes a partial minute on shutdown and the process restarts within that same
minute: the restart's candle replaced the flushed one and its stats were lost.

Merge the incoming candle with any candle already stored for the same key. Normal
operation saves each minute once and never merges; the merge only runs on this
abnormal duplicate-key path. Counts are summed, so an ip+file pair spanning two
fragments can be over-counted - accepted as best-effort recovery versus the
previous behaviour of dropping the earlier fragment entirely.

* fix: overwrite unreadable candle on save instead of failing

per review: if the existing entry for a key can't be unmarshalled, log a
warning and overwrite it rather than returning the error, which would also
drop the new candle and prevent recovery from a single corrupt entry. add a
test planting a corrupt value, and close the temp file handle before Bolt
opens it in the merge test.

29 of 29 new or added lines in 2 files covered. (100.0%)

350 of 412 relevant lines covered (84.95%)

145.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32196792923.1 18 Aug 2026 11:21PM UTC 7
84.95
GitHub Action Run
Source Files on build 32196792923
  • Tree
  • List 7
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cc0897f3 on github
  • Prev Build on master (#32196765414)
  • Next Build on master (#32203410890)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc