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

umputun / rlb-stats / 32196765414
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:20PM UTC coverage: 83.896% (+0.4%) from 83.465%
32196765414

push

github

web-flow
fix: make Aggregator concurrency-safe and fix dedup key collision (#57)

* fix: make Aggregator concurrency-safe and fix dedup key collision

POST /api/insert runs under Throttle(100), so concurrent handlers shared the
Aggregator's entries slice with no synchronisation - a data race that could
drop records or panic. Guard Store and Flush with a mutex and extract the
shared buildCandle helper (removing the duplicated dedupe loop).

Replace the concatenated string dedupe key ("file-ip") with a struct key,
which could otherwise collapse distinct pairs like ("a-b","c") and
("a","b-c") into a single count.

Fully-correct aggregation under out-of-order concurrent inserts also depends
on merging same-minute candles on save (companion PR), since a minute split
across partial candles would otherwise be overwritten by StartMinute key.

* test: tighten concurrent aggregator test per review

correct the comment to say only Store is concurrent (Flush runs after the
wait), and assert Flush actually emits a non-empty candle instead of
discarding its return.

* test: add dedupe-key collision regression test

per review: guards the struct dedup key against a regression to a naive
concatenated string key, which would collapse (file=a-b,ip=c) and
(file=a,ip=b-c) into one count.

18 of 18 new or added lines in 1 file covered. (100.0%)

323 of 385 relevant lines covered (83.9%)

155.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32196765414.1 18 Aug 2026 11:21PM UTC 7
83.9
GitHub Action Run
Source Files on build 32196765414
  • Tree
  • List 7
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b7d30b82 on github
  • Prev Build on master (#23716914332)
  • Next Build on master (#32196792923)
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