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

LFDT-Panurus / panurus / 40692479115
85%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2026 11:41AM UTC
Jobs 98
Files 625
Run time 3min
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

28 Oct 2026 12:59PM UTC coverage: 84.569% (-0.03%) from 84.595%
40692479115

push

github

AkramBitar
feat(storage): add Postgres connection-pool visibility metrics

Export db_pool_in_use/db_pool_max_open (gauges) and
db_pool_wait_count_total/db_pool_wait_seconds_total (counters), labeled by a
parsed host:port/dbname pool identity, for every Postgres token store's
connection pool.

A production-shape selector benchmark found a connection-pool deadlock under
the simple driver (#2474): sustained contention plus a nonzero lock hold time
exhausted the pool permanently, surfacing only as hung Select calls with no
metric pointing at the pool as the cause.

Panurus never checks out a connection itself - the pool lives inside
fabric-smart-client's postgres.Open and only reaches Panurus as a *sql.DB -
so (*sql.DB).Stats() is the only available signal, and it reports cumulative
totals rather than per-wait observations. That rules out the histogram the
parent epic (#2492) originally proposed; a gauge pair plus a counter pair is
the closest honest signal instead.

- New token/services/storage/db/sql/dbpool package: a Sampler that polls
  Stats() once per second (token.storage.db.poolMetricsInterval, 0 disables)
  and turns the cumulative wait counters into deltas, since metrics.Counter
  only exposes Add(delta).
- postgres/driver.go: an observedDbProvider decorator registers every pool a
  store opens with the sampler; NewNamedDriver gains a *dbpool.Sampler
  parameter, NewDriverWithDbProvider is unchanged (nil sampler, no
  decorator) so every existing call site keeps working.
- token/sdk/dig/sdk.go: wires the sampler through dig, starts it in
  SDK.Start and stops it in SDK.Stop alongside the drift-check sweeps, so an
  in-process restart cannot leak its goroutine.
- pool identifies the data source (host:port/dbname), not the store: every
  store sharing a data source shares one pool, and the label is parsed out
  of the DSN rather than redacted from it so no credential field can leak
  into it.
- in_use/max_open are deliberately instantaneous gauges sampled at... (continued)

188 of 203 new or added lines in 6 files covered. (92.61%)

46 existing lines in 9 files now uncovered.

47862 of 56595 relevant lines covered (84.57%)

28311.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
94.05
token/services/storage/db/sql/dbpool/sampler.go
4
91.11
token/services/storage/db/sql/dbpool/label.go
3
77.64
-1.47% token/sdk/dig/sdk.go
3
80.77
5.01% token/services/storage/db/sql/common/config.go

Coverage Regressions

Lines Coverage ∆ File
21
55.14
-3.54% token/services/storage/db/common/checks.go
4
90.36
0.45% token/services/selector/sherdlock/selector.go
4
70.09
-1.87% token/services/storage/auditdb/store.go
4
83.67
-0.29% token/services/storage/db/sql/common/tokens.go
4
82.06
-0.7% token/services/storage/db/sql/common/transactions.go
3
91.41
-1.17% token/services/selector/simple/inmemory/locker.go
2
87.3
-1.06% token/services/storage/db/sql/common/findings.go
2
93.64
-0.85% token/services/storage/services/checks/manager.go
2
75.42
-0.66% token/services/storage/ttxdb/store.go
Jobs
ID Job ID Ran Files Coverage
1 itest-nft-fabtoken - 40692479115.1 29 Oct 2026 11:45AM UTC 530
31.71
GitHub Action Run
2 itest-evm-gateway-fabtoken-t2 - 40692479115.2 29 Oct 2026 11:41AM UTC 563
10.42
GitHub Action Run
3 itest-evm-fabtoken-t13 - 40692479115.3 29 Oct 2026 11:43AM UTC 563
28.0
GitHub Action Run
4 itest-evm-gateway-t12 - 40692479115.4 29 Oct 2026 11:41AM UTC 563
37.63
GitHub Action Run
5 itest-evm-gateway-fabtoken-t1 - 40692479115.5 29 Oct 2026 11:48AM UTC 563
34.23
GitHub Action Run
6 itest-evm-gateway-t2.1 - 40692479115.6 29 Oct 2026 11:43AM UTC 563
31.59
GitHub Action Run
7 itest-interop-fabtoken-t3 - 40692479115.7 29 Oct 2026 11:48AM UTC 522
34.44
GitHub Action Run
8 itest-fabricx-dlog-t1-websocket - 40692479115.8 29 Oct 2026 11:55AM UTC 542
43.09
GitHub Action Run
9 itest-dlog-fabric-t11 - 40692479115.9 29 Oct 2026 11:48AM UTC 522
34.5
GitHub Action Run
10 itest-evm-gateway-fabtoken-t13 - 40692479115.10 29 Oct 2026 11:43AM UTC 563
28.33
GitHub Action Run
11 itest-evm-gateway-fabtoken-t11 - 40692479115.11 29 Oct 2026 11:49AM UTC 563
27.78
GitHub Action Run
12 itest-fabricx-dlog-t13 - 40692479115.12 29 Oct 2026 11:47AM UTC 542
38.16
GitHub Action Run
13 itest-fabtoken-fabric-t1-replicas - 40692479115.13 29 Oct 2026 11:50AM UTC 522
38.21
GitHub Action Run
14 itest-fabtoken-fabric-t2 - 40692479115.14 29 Oct 2026 11:49AM UTC 522
29.57
GitHub Action Run
15 itest-interop-fabtoken-t5 - 40692479115.15 29 Oct 2026 11:47AM UTC 522
33.92
GitHub Action Run
16 itest-dlog-fabric-t1-libp2p - 40692479115.16 29 Oct 2026 11:49AM UTC 522
43.54
GitHub Action Run
17 itest-evm-t6 - 40692479115.17 29 Oct 2026 11:50AM UTC 563
40.96
GitHub Action Run
18 itest-fabricx-dlog-t6-websocket - 40692479115.18 29 Oct 2026 11:53AM UTC 542
43.34
GitHub Action Run
19 itest-evm-fabtoken-t2 - 40692479115.19 29 Oct 2026 11:42AM UTC 563
26.14
GitHub Action Run
20 itest-dloghsm-fabric-t2-replicas - 40692479115.20 29 Oct 2026 11:52AM UTC 523
45.94
GitHub Action Run
21 itest-dlog-fabric-t1-replicas - 40692479115.21 29 Oct 2026 11:53AM UTC 522
45.62
GitHub Action Run
22 itest-fabricx-dlog-t5 - 40692479115.22 29 Oct 2026 11:50AM UTC 542
40.62
GitHub Action Run
23 itest-dlog-fabric-t6-replicas - 40692479115.23 29 Oct 2026 11:53AM UTC 522
45.81
GitHub Action Run
24 itest-evm-t11 - 40692479115.24 29 Oct 2026 11:49AM UTC 563
32.45
GitHub Action Run
25 itest-update-t4 - 40692479115.25 29 Oct 2026 11:50AM UTC 522
43.26
GitHub Action Run
26 itest-evm-t12 - 40692479115.26 29 Oct 2026 11:42AM UTC 563
37.03
GitHub Action Run
27 itest-dvp-fabtoken - 40692479115.27 29 Oct 2026 11:44AM UTC 530
33.23
GitHub Action Run
28 itest-evm-gateway-t13 - 40692479115.28 29 Oct 2026 11:41AM UTC 563
34.67
GitHub Action Run
29 itest-fabtoken-fabric-t1-websocket - 40692479115.29 29 Oct 2026 11:51AM UTC 522
36.16
GitHub Action Run
30 itest-fabricx-dlog-t4 - 40692479115.30 29 Oct 2026 11:47AM UTC 542
40.62
GitHub Action Run
31 itest-dlog-fabric-t5 - 40692479115.31 29 Oct 2026 11:47AM UTC 522
40.68
GitHub Action Run
32 utest-unit-tests-race - 40692479115.32 29 Oct 2026 11:50AM UTC 624
76.36
GitHub Action Run
33 itest-evm-gateway-t9 - 40692479115.33 29 Oct 2026 11:42AM UTC 563
32.69
GitHub Action Run
34 itest-fabricx-dlog-t1-replicas - 40692479115.34 29 Oct 2026 11:57AM UTC 542
44.97
GitHub Action Run
35 itest-fabtoken-fabric-t4 - 40692479115.35 29 Oct 2026 11:46AM UTC 522
33.47
GitHub Action Run
36 itest-dlogstress-t1 - 40692479115.36 29 Oct 2026 11:44AM UTC 522
39.02
GitHub Action Run
37 itest-fabricx-dlog-t3 - 40692479115.37 29 Oct 2026 11:47AM UTC 542
38.53
GitHub Action Run
38 itest-fabtoken-fabric-t3 - 40692479115.38 29 Oct 2026 11:45AM UTC 522
31.84
GitHub Action Run
39 itest-evm-t2.1 - 40692479115.39 29 Oct 2026 11:43AM UTC 563
31.27
GitHub Action Run
40 itest-evm-t2 - 40692479115.40 29 Oct 2026 11:43AM UTC 563
31.47
GitHub Action Run
41 itest-dlog-fabric-t10-websocket - 40692479115.41 29 Oct 2026 11:52AM UTC 522
44.42
GitHub Action Run
42 itest-evm-gateway-fabtoken-t9 - 40692479115.42 29 Oct 2026 11:42AM UTC 563
26.58
GitHub Action Run
43 itest-dloghsm-fabric-t1-libp2p - 40692479115.43 29 Oct 2026 11:52AM UTC 523
43.56
GitHub Action Run
44 itest-dloghsm-fabric-t2-websocket - 40692479115.44 29 Oct 2026 11:52AM UTC 523
43.82
GitHub Action Run
45 itest-dlog-fabric-t13 - 40692479115.45 29 Oct 2026 11:47AM UTC 522
38.39
GitHub Action Run
46 itest-update-t1 - 40692479115.46 29 Oct 2026 11:50AM UTC 522
43.57
GitHub Action Run
47 itest-dlog-fabric-t6-libp2p - 40692479115.47 29 Oct 2026 11:52AM UTC 522
43.79
GitHub Action Run
48 itest-evm-fabtoken-t11 - 40692479115.48 29 Oct 2026 11:49AM UTC 563
27.16
GitHub Action Run
49 itest-dlog-fabric-t3 - 40692479115.49 29 Oct 2026 11:47AM UTC 522
38.97
GitHub Action Run
50 itest-interop-dlog-t5 - 40692479115.50 29 Oct 2026 11:48AM UTC 522
41.27
GitHub Action Run
51 itest-evm-t13 - 40692479115.51 29 Oct 2026 11:43AM UTC 563
34.35
GitHub Action Run
52 itest-dlog-fabric-t8-websocket - 40692479115.52 29 Oct 2026 11:50AM UTC 522
43.61
GitHub Action Run
53 itest-evm-gateway-t11 - 40692479115.53 29 Oct 2026 11:48AM UTC 563
33.06
GitHub Action Run
54 itest-evm-gateway-t2 - 40692479115.54 29 Oct 2026 11:42AM UTC 563
31.88
GitHub Action Run
55 itest-dlog-fabric-t10-replicas - 40692479115.55 29 Oct 2026 11:54AM UTC 522
46.45
GitHub Action Run
56 itest-dlog-fabric-t8-replicas - 40692479115.56 29 Oct 2026 11:52AM UTC 522
45.65
GitHub Action Run
57 itest-dlog-fabric-t7 - 40692479115.57 29 Oct 2026 11:47AM UTC 522
35.47
GitHub Action Run
58 itest-interop-fabtoken-t1 - 40692479115.58 29 Oct 2026 11:49AM UTC 522
35.55
GitHub Action Run
59 utest-unit-tests-regression - 40692479115.59 29 Oct 2026 11:49AM UTC 624
76.35
GitHub Action Run
60 itest-dlog-fabric-t4 - 40692479115.60 29 Oct 2026 11:49AM UTC 522
40.61
GitHub Action Run
61 itest-update-t3 - 40692479115.61 29 Oct 2026 11:53AM UTC 522
39.45
GitHub Action Run
62 itest-dlog-fabric-t8-libp2p - 40692479115.62 29 Oct 2026 11:50AM UTC 522
43.58
GitHub Action Run
63 itest-dlog-fabric-t2.1 - 40692479115.63 29 Oct 2026 11:46AM UTC 522
35.07
GitHub Action Run
64 itest-evm-gateway-t6 - 40692479115.64 29 Oct 2026 11:51AM UTC 563
41.33
GitHub Action Run
65 itest-evm-fabtoken-t9 - 40692479115.65 29 Oct 2026 11:43AM UTC 563
26.78
GitHub Action Run
66 itest-dloghsm-fabric-t2-libp2p - 40692479115.66 29 Oct 2026 11:52AM UTC 523
43.82
GitHub Action Run
67 itest-dlog-fabric-t6-websocket - 40692479115.67 29 Oct 2026 11:52AM UTC 522
43.81
GitHub Action Run
68 itest-evm-gateway-fabtoken-t6 - 40692479115.68 29 Oct 2026 11:50AM UTC 563
34.59
GitHub Action Run
69 itest-dlog-fabric-t12 - 40692479115.69 29 Oct 2026 11:48AM UTC 522
41.74
GitHub Action Run
70 itest-fabtoken-fabric-t5 - 40692479115.70 29 Oct 2026 11:47AM UTC 522
33.44
GitHub Action Run
71 itest-interop-fabtoken-t4 - 40692479115.71 29 Oct 2026 11:47AM UTC 522
33.88
GitHub Action Run
72 itest-evm-gateway-t1 - 40692479115.72 29 Oct 2026 11:50AM UTC 563
41.15
GitHub Action Run
73 itest-fabricx-dlog-t6-replicas - 40692479115.73 29 Oct 2026 11:58AM UTC 542
45.23
GitHub Action Run
74 itest-evm-fabtoken-t6 - 40692479115.74 29 Oct 2026 11:49AM UTC 563
34.21
GitHub Action Run
75 itest-dlog-fabric-t1-websocket - 40692479115.75 29 Oct 2026 11:51AM UTC 522
43.55
GitHub Action Run
76 itest-dlog-fabric-t10-libp2p - 40692479115.76 29 Oct 2026 11:51AM UTC 522
44.4
GitHub Action Run
77 itest-dloghsm-fabric-t1-replicas - 40692479115.77 29 Oct 2026 11:52AM UTC 523
45.66
GitHub Action Run
78 itest-fabricx-dlog-t16-libp2p - 40692479115.78 29 Oct 2026 11:57AM UTC 542
43.25
GitHub Action Run
79 itest-fabricx-dlog-t16-websocket - 40692479115.79 29 Oct 2026 11:56AM UTC 542
43.29
GitHub Action Run
80 itest-evm-t9 - 40692479115.80 29 Oct 2026 11:43AM UTC 563
32.3
GitHub Action Run
81 itest-dvp-dlog - 40692479115.81 29 Oct 2026 11:45AM UTC 530
40.28
GitHub Action Run
82 itest-fabtoken-dlog-fabric - 40692479115.82 29 Oct 2026 11:55AM UTC 522
43.66
GitHub Action Run
83 itest-fabricx-dlog-t16-replicas - 40692479115.83 29 Oct 2026 11:58AM UTC 542
45.17
GitHub Action Run
84 itest-evm-t1 - 40692479115.84 29 Oct 2026 11:50AM UTC 563
40.71
GitHub Action Run
85 itest-dlog-fabric-t9 - 40692479115.85 29 Oct 2026 11:49AM UTC 522
36.59
GitHub Action Run
86 itest-fabricx-dlog-t6-libp2p - 40692479115.86 29 Oct 2026 11:56AM UTC 542
43.29
GitHub Action Run
87 itest-interop-dlog-t1 - 40692479115.87 29 Oct 2026 11:51AM UTC 522
42.83
GitHub Action Run
88 itest-nft-dlog - 40692479115.88 29 Oct 2026 11:45AM UTC 530
38.93
GitHub Action Run
89 itest-dloghsm-fabric-t1-websocket - 40692479115.89 29 Oct 2026 11:52AM UTC 523
43.59
GitHub Action Run
90 itest-update-t2 - 40692479115.90 29 Oct 2026 11:49AM UTC 522
38.76
GitHub Action Run
91 itest-dlog-fabric-t2 - 40692479115.91 29 Oct 2026 11:48AM UTC 522
35.18
GitHub Action Run
92 itest-fabtoken-fabric-t1-libp2p - 40692479115.92 29 Oct 2026 11:51AM UTC 522
36.16
GitHub Action Run
93 itest-dlog-fabric-t15 - 40692479115.93 29 Oct 2026 11:50AM UTC 522
43.6
GitHub Action Run
94 itest-interop-dlog-t3 - 40692479115.94 29 Oct 2026 11:48AM UTC 522
41.72
GitHub Action Run
95 itest-fabricx-dlog-t1-libp2p - 40692479115.95 29 Oct 2026 11:53AM UTC 542
43.08
GitHub Action Run
96 itest-evm-fabtoken-t1 - 40692479115.96 29 Oct 2026 11:49AM UTC 563
34.24
GitHub Action Run
97 itest-fabricx-dlog-t11 - 40692479115.97 29 Oct 2026 11:50AM UTC 542
34.04
GitHub Action Run
98 itest-interop-dlog-t4 - 40692479115.98 29 Oct 2026 11:49AM UTC 522
41.22
GitHub Action Run
Source Files on build 40692479115
  • Tree
  • List 625
  • Changed 62
  • Source Changed 3
  • Coverage Changed 62
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40692479115
  • a9cb72cd on github
  • Prev Build on main (#40664142950)
  • Next Build on main (#40886534944)
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