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

Logflare / logflare / f5ce4a613fe1620f4c0b08281564dadd13288cd1
81%

Build:
DEFAULT BRANCH: main
Ran 12 Jun 2026 05:39PM 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

12 Jun 2026 05:26PM UTC coverage: 81.043% (+0.06%) from 80.982%
f5ce4a613fe1620f4c0b08281564dadd13288cd1

push

github

web-flow
perf: clickhouse read connection pool overhaul (#3591)

* overhaul of clickhouse read pools

* refactor: rename backend lifecycle callbacks with on_ prefix

Rename `backend_config_changed`/`backend_deleted` to
`on_backend_config_changed`/`on_backend_deleted` for clarity, making it
self-documenting that these are invoked in reaction to a lifecycle event.

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

* feat: log caught exit when terminating read connection manager

The terminate_manager catch clause previously swallowed exits silently.
Log a warning so an unexpected exit during teardown is observable.

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

* test: introspect read pool via public API instead of internal state

Add `ConnectionManager.get_pool_pid/1` and `get_next_recycle_at/1` so the
recycling tests can assert on observable pool state through a public API
rather than reaching into the GenServer struct with `:sys.get_state`.

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

* test: drop redundant no-pool refresh_pool assertion

The "stops the pool so the next query restarts it" test already covers
`refresh_pool/1` returning `:ok`, so the standalone no-pool case is redundant.

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

* test: drop redundant single-manager list test

The "lists managers for multiple backends" test already asserts a started
manager appears in `list_query_connection_managers/0`.

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

* test: combine recycle_backend_local no-pool and active-pool cases

Both cases share a started ConnectionManager, so exercise the no-pool error
and the successful recycle within a single test.

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

* test: combine refresh_backend_local no-manager and active-pool cases

Exercise the no-manager `:ok` path and the active-pool stop w... (continued)

72 of 82 new or added lines in 6 files covered. (87.8%)

2 existing lines in 1 file now uncovered.

13069 of 16126 relevant lines covered (81.04%)

3796.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
86.05
27.71% lib/logflare/backends/adaptor/clickhouse_adaptor/query_connection_sup.ex
4
87.83
3.12% lib/logflare/backends/adaptor/clickhouse_adaptor/connection_manager.ex

Coverage Regressions

Lines Coverage ∆ File
2
74.36
-5.13% lib/logflare/sources/counters.ex
Jobs
ID Job ID Ran Files Coverage
1 f5ce4a613fe1620f4c0b08281564dadd13288cd1.1 12 Jun 2026 05:39PM UTC 484
81.04
GitHub Action Run
Source Files on build f5ce4a613fe1620f4c0b08281564dadd13288cd1
  • Tree
  • List 484
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f5ce4a61 on github
  • Prev Build on main (#8C642711...)
  • Next Build on main (#57FDA706...)
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