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

hyperledger-labs / fabric-smart-client / 29484837588
81%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 08:55AM UTC
Jobs 2
Files 523
Run time 2min
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

16 Jul 2026 08:49AM UTC coverage: 74.036% (+0.04%) from 73.993%
29484837588

push

github

web-flow
fix(metrics): cache collectors in the prometheus provider (#1582)

* fix(metrics): cache collectors in the prometheus provider

Repeated requests for the same metric built a fresh collector whose
registration failed; with SkipRegisterErr set the error was swallowed
and the collector was silently left unregistered. Cache collectors by
kind and fully-qualified name so repeated requests share the collector
registered first and skip the registry, and fail with a descriptive
error when a name is reused with different options or an incompatible
collector type.

Fixes #1581

Signed-off-by: Evan <evanyan@sign.global>

* fix(metrics): drop SkipRegisterErr and exclude LabelHelp from cache checks

Address review feedback on the collector cache:
- exclude the doc-only LabelHelp field from the cached definition so
  requests differing only in label documentation share the collector
- remove SkipRegisterErr: the cache and the AlreadyRegisteredError
  handling cover duplicate registration, so the remaining failures are
  programming errors that should fail fast instead of silently handing
  out collectors that are invisible on /metrics
- cover reuse of a collector registered outside the provider

Signed-off-by: Evan <evanyan@sign.global>

---------

Signed-off-by: Evan <evanyan@sign.global>

75 of 78 new or added lines in 3 files covered. (96.15%)

28894 of 39027 relevant lines covered (74.04%)

2761.99 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
0.0
0.0% platform/view/services/metrics/operations/metrics.go
1
50.6
0.0% platform/view/sdk/dig/sdk.go
Jobs
ID Job ID Ran Files Coverage
1 utest-postgres - 29484837588.1 16 Jul 2026 08:55AM UTC 523
14.33
GitHub Action Run
2 utest - 29484837588.2 16 Jul 2026 08:56AM UTC 523
72.53
GitHub Action Run
Source Files on build 29484837588
  • Tree
  • List 523
  • Changed 4
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29484837588
  • c10decb0 on github
  • Prev Build on main (#29430585665)
  • Next Build on main (#29487017076)
  • Delete
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