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

evolution-gaming / kafka-flow / 40864847937
86%

Build:
DEFAULT BRANCH: master
Ran 29 Oct 2026 11:26AM UTC
Jobs 2
Files 106
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

29 Oct 2026 11:22AM UTC coverage: 85.878% (+1.9%) from 84.023%
40864847937

push

github

web-flow
Count persist failures in the database metrics (#975)

* Count persist failures in the database metrics

With ignorePersistErrors a failed persist is only logged, so a store
that keeps failing is invisible in the metrics. The snapshot, journal
and key database metrics now count every failed persist, ignored or
not, as *_database_persist_failures, for any backend they wrap,
including the Kafka persistence's snapshot writes when it is given a
FlowMetrics.

Counting a failure needs MonadThrow instead of Monad in these metrics,
PersistenceModuleMetrics and FlowMetrics.of. That is binary
incompatible: metrics sets versionPolicyIntention to Compatibility.None
and the next release has to be a major.

* Count only failures of the database write itself

* Explain which persist-failure counter moves

* Say which persist-failure counter moves more briefly

* Name the persist-failure counters with a _total suffix

Prometheus counters should end in _total. simpleclient 0.9, upstream or
the evo fork, exposes a counter under its name as is, so without the
suffix these counters came out unconventionally named. prometheus-metrics
1.x accepts a name ending in _total and exposes it with a single _total,
so the suffix is right on both backends.

393 of 466 branches covered (84.33%)

Branch coverage included in aggregate %.

2009 of 2331 relevant lines covered (86.19%)

1.35 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
82.71
59.63% com/evolutiongaming/kafka/flow/FlowMetrics.scala
4
84.78
84.78% com/evolutiongaming/kafka/flow/persistence/PersistenceModuleMetrics.scala
3
69.77
-0.6% com/evolutiongaming/kafka/flow/cassandra/SessionHelper.scala
2
94.87
94.87% com/evolutiongaming/kafka/flow/key/KeyDatabaseMetrics.scala
2
97.06
97.06% com/evolutiongaming/kafka/flow/snapshot/SnapshotDatabaseMetrics.scala
1
82.22
-2.22% com/evolution/kafka/flow/cassandra/CassandraModule.scala
Jobs
ID Job ID Ran Files Coverage
1 Scala 2.13.18 - 40864847937.1 29 Oct 2026 11:26AM UTC 103
75.3
GitHub Action Run
2 Scala 3.3.8 - 40864847937.2 29 Oct 2026 11:26AM UTC 106
75.4
GitHub Action Run
Source Files on build 40864847937
  • Tree
  • List 106
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40864847937
  • deaa050f on github
  • Prev Build on master (#40858500368)
  • Next Build on master (#40866419662)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc