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

Logflare / logflare / a083884c9293387d2d027fe9480108f448261fe9-PR-3668
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: adammokan/o11y-2150-add-facade_url-config-option-to-the-clickhouse-backend
DEFAULT BRANCH: main
Ran 09 Jul 2026 06:31PM UTC
Jobs 2
Files 501
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

09 Jul 2026 06:19PM UTC coverage: 80.84% (-0.01%) from 80.85%
a083884c9293387d2d027fe9480108f448261fe9-PR-3668

Pull #3668

github

djwhitt
fix: skip empty ClickHouse insert when a routed batch has no surviving rows

The metadata fast path routes messages in handle_message/3 without re-checking
ETS, so if every row in a batch is deleted (e.g. by the QueueJanitor) before
encode_message/7 runs, stream_compress/4 returns good == [] and a gzip payload
with zero RowBinary rows. finalize_insert/6 previously POSTed that empty payload
to ClickHouse; insert_log_events_compressed/4 has no empty guard (unlike the
non-compressed Ingester.insert/5). Add a good == [] clause that fails the missing
messages without calling ClickHouse, and a handle_batch/4 test asserting the
insert is not attempted for an all-missing routed batch.

Reported in ClickHouse's review of PR #3668.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #3668: fix: eliminate ClickHouse pipeline CPU regression

23 of 23 new or added lines in 4 files covered. (100.0%)

7 existing lines in 3 files now uncovered.

14037 of 17364 relevant lines covered (80.84%)

24739.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
86.81
-2.98% lib/logflare/backends/buffer_producer.ex
1
91.43
3.43% lib/logflare/backends/adaptor/clickhouse_adaptor/pipeline.ex
1
30.77
-3.85% lib/logflare/sources/source/text_notification_server.ex
Jobs
ID Job ID Ran Files Coverage
1 a083884c9293387d2d027fe9480108f448261fe9-PR-3668.1 09 Jul 2026 06:31PM UTC 501
80.84
GitHub Action Run
2 a083884c9293387d2d027fe9480108f448261fe9-PR-3668.2 09 Jul 2026 06:46PM UTC 501
80.81
GitHub Action Run
Source Files on build a083884c9293387d2d027fe9480108f448261fe9-PR-3668
  • Tree
  • List 501
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3668
  • PR Base - perf/clickhouse_mem (#F05FF3F1...)
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