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

Logflare / logflare / a9bb10a5b97a036b21df949e1490fd89a103dd4f
82%

Build:
DEFAULT BRANCH: main
Ran 18 Jun 2026 04:28PM UTC
Jobs 1
Files 484
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 Jun 2026 04:14PM UTC coverage: 81.138% (-0.05%) from 81.186%
a9bb10a5b97a036b21df949e1490fd89a103dd4f

push

github

web-flow
feat(clickhouse): log host on connection and query errors (#3611)

* feat(clickhouse): log host on connection and query errors

ClickHouse connection, query, insert, and provisioning error logs
previously carried only backend_id and the failure reason, making it
hard to identify which cluster/host was failing. The host was already
parsed from the config URL at each connection-setup site but never
threaded into the logs.

Add the host to the metadata of these error/warning logs. Read-path
logs use read_only_url (falling back to url); ingest-path logs use url.

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

* refactor(clickhouse): reuse fetched backend for start-failure host log

start_pool now fetches the backend once and passes it to both
build_ch_opts and the failure-path host derivation, removing the
second cache lookup that connection_host/1 performed on the
"Failed to start" path. The pool-died DOWN handler still resolves the
host from backend_id via the cache, since no backend is in scope there.

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

* test(clickhouse): include host in native ingester mock connection

The native insert error logs now read conn.host, but the opts-passthrough
tests passed a bare map as the pooled connection. Add :host so the mock
matches the real Connection struct shape.

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

---------

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

32 of 51 new or added lines in 6 files covered. (62.75%)

1 existing line in 1 file now uncovered.

13202 of 16271 relevant lines covered (81.14%)

5089.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
83.47
-4.36% lib/logflare/backends/adaptor/clickhouse_adaptor/connection_manager.ex
4
59.09
-0.64% lib/logflare/backends/adaptor/clickhouse_adaptor/native_ingester.ex
3
84.65
-0.86% lib/logflare/backends/adaptor/clickhouse_adaptor.ex
2
86.36
-1.77% lib/logflare/backends/adaptor/clickhouse_adaptor/native_ingester/pool_manager.ex
1
83.72
0.0% lib/logflare/backends/adaptor/clickhouse_adaptor/native_ingester/pool.ex
1
80.0
-3.33% lib/logflare/backends/adaptor/clickhouse_adaptor/provisioner.ex

Coverage Regressions

Lines Coverage ∆ File
1
30.77
-3.85% lib/logflare/sources/source/text_notification_server.ex
Jobs
ID Job ID Ran Files Coverage
1 a9bb10a5b97a036b21df949e1490fd89a103dd4f.1 18 Jun 2026 04:28PM UTC 484
81.14
GitHub Action Run
Source Files on build a9bb10a5b97a036b21df949e1490fd89a103dd4f
  • Tree
  • List 484
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a9bb10a5 on github
  • Prev Build on main (#9A8E7F0B...)
  • Next Build on main (#D0967860...)
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