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

Logflare / logflare / 6813ce93aaa8c19356ac35724ba805bc5b491632
81%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 07:32PM UTC
Jobs 1
Files 501
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

09 Jul 2026 07:20PM UTC coverage: 80.851% (-0.02%) from 80.871%
6813ce93aaa8c19356ac35724ba805bc5b491632

push

github

web-flow
perf: reduce process heap allocations for clickhouse pipeline (#3667)

* Optimize clickhouse pipeline memory using id passing and incremental compression

* Small refactor

* Fix typings

* Fix test

* Fix limit on processing reset

* Prevent test factory creating many source atoms.)

* Format

* Fix issues from merge

* fix: eliminate ClickHouse pipeline CPU regression (#3668)

* fix: eliminate ClickHouse pipeline CPU regression

* fix: correct batcher/batch_key assertion in ClickHouse pipeline transform test

Broadway.Message defaults batcher and batch_key to :default (not nil), so the
"unrouted" message produced by transform/2 has those defaults until
handle_message/3 routes it. Assert :default instead of nil.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test: cover metadata fast-path stale routing and take_pending_ids_with_metadata edge cases

Adds coverage for the id_passing_metadata fast path introduced in this PR:
- handle_message/3 routes stale metadata messages to :ch_stale without an
  ETS lookup (previously only the :fresh path was covered)
- take_pending_ids_with_metadata/2 with count 0, an uninitialized table, and
  rows with nil routing fields (the fallback trigger)

Also simplifies the transform/2 fallback to forward the real size instead of a
fabricated 0, since the target clause ignores it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* 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
mes... (continued)

105 of 124 new or added lines in 5 files covered. (84.68%)

4 existing lines in 3 files now uncovered.

14039 of 17364 relevant lines covered (80.85%)

12446.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
91.43
-4.09% lib/logflare/backends/adaptor/clickhouse_adaptor/pipeline.ex
6
86.81
-3.89% lib/logflare/backends/buffer_producer.ex
4
84.97
-0.8% lib/logflare/backends/ingest_event_queue.ex
1
86.61
-0.46% lib/logflare/backends/adaptor/clickhouse_adaptor.ex
1
93.23
-0.52% lib/logflare/backends/adaptor/clickhouse_adaptor/ingester.ex

Coverage Regressions

Lines Coverage ∆ File
2
86.81
-3.89% lib/logflare/backends/buffer_producer.ex
1
86.61
-0.46% lib/logflare/backends/adaptor/clickhouse_adaptor.ex
1
88.89
-11.11% lib/logflare/backends/ingest_event_queue/buffer_cache_worker.ex
Jobs
ID Job ID Ran Files Coverage
1 6813ce93aaa8c19356ac35724ba805bc5b491632.1 09 Jul 2026 07:32PM UTC 501
80.85
GitHub Action Run
Source Files on build 6813ce93aaa8c19356ac35724ba805bc5b491632
  • Tree
  • List 501
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6813ce93 on github
  • Prev Build on main (#37055C38...)
  • Next Build on main (#1CF1D450...)
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