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

Logflare / logflare / c812fc9139345db6ec61a8f6eda497a51d9bb4b5-PR-3626
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: fix/ingest-truncate-stale-table
DEFAULT BRANCH: main
Ran 23 Jun 2026 12:30AM UTC
Jobs 1
Files 487
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

23 Jun 2026 12:16AM UTC coverage: 81.432% (-0.03%) from 81.461%
c812fc9139345db6ec61a8f6eda497a51d9bb4b5-PR-3626

Pull #3626

github

djwhitt
test(queue): cover stale match-spec, per-pass limit, and CAS helpers

Centralize the stale-row compare-and-swap into IngestEventQueue.reset_stale_event/3
and drop_stale_event/2 (pinning the exact observed row), and have QueueJanitor call
them instead of open-coding select_replace/select_delete. This both follows the
project's "centralize ETS transitions" guidance and makes the skip-on-mismatch
behaviour deterministically testable.

Make the per-pass limit configurable via janitor state (default unchanged) so the
overflow path can be exercised without inserting 10k rows.

New tests:
- list_stale_processing_ids/3: only :processing rows at/before the cutoff are
  returned; :pending/:ingested excluded by the status pin regardless of claimed_at;
  the returned count is bounded by the limit.
- reset_stale_event/3 and drop_stale_event/2: act on the exact row, and :skip
  (leaving the row untouched) when it was re-claimed after observation.
- janitor: telemetry reports a drop past max retries; the per-pass limit caps resets
  with the remainder recovered on a later pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #3626: refactor(ingest queue): timestamp-based stale :processing recovery

39 of 39 new or added lines in 3 files covered. (100.0%)

11 existing lines in 6 files now uncovered.

13332 of 16372 relevant lines covered (81.43%)

5075.73 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
66.67
-20.83% lib/logflare/backends/consolidated_sup_worker.ex
2
87.38
-1.94% lib/logflare/backends/buffer_producer.ex
1
88.24
1.49% lib/logflare/backends/ingest_event_queue/queue_janitor.ex
1
30.77
-3.85% lib/logflare/sources/source/text_notification_server.ex
1
14.29
-7.14% lib/logflare/system_metrics/cluster.ex
1
56.47
-1.18% lib/telemetry.ex
Jobs
ID Job ID Ran Files Coverage
1 c812fc9139345db6ec61a8f6eda497a51d9bb4b5-PR-3626.1 23 Jun 2026 12:30AM UTC 487
81.43
GitHub Action Run
Source Files on build c812fc9139345db6ec61a8f6eda497a51d9bb4b5-PR-3626
  • Tree
  • List 487
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3626
  • PR Base - main (#328E4BCB...)
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