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

hyperledger / fabric-x-committer / 30745602656
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: fix/696-integration-port-reservation
DEFAULT BRANCH: main
Ran 02 Aug 2026 11:25AM UTC
Jobs 3
Files 131
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

02 Aug 2026 11:21AM UTC coverage: 91.169% (-0.03%) from 91.201%
30745602656

Pull #724

github

liran-funaro
[coordinator] Fix swapped manager metrics, report queues on scrape

#### Type of change

- Bug fix
- Improvement (improvement to code, performance, etc)
- Breaking change
- Test update

#### Description

- Register the metric set common to both service managers from a single `newManagerMetrics`,
  instantiated once per manager, so the verifier and vcservice series can no longer be given
  each other's subsystem.
- Rename `retired_transaction_total` to `transaction_retried_total` and shorten the queue-size
  gauge names. Dashboards querying the old names need updating; see the mapping below.
- Report the queue depths with `prometheus.NewGaugeFunc`, through a new
  `monitoring.Provider.NewGaugeFunc`, and drop `Service.monitorQueues` along with its goroutine
  and ticker. The reported value is now exact at scrape time instead of up to one sampling
  interval stale. `queue-monitor-sampling-time` is unchanged and still used by the dependency
  graph, which keeps its own sampler.
- `scripts/metrics_doc_extract.py`: follow a metric helper defined in the file being parsed (it
  resolved only `package.Func` against `utils/<package>/metrics.go`), recognise `NewGaugeFunc`,
  and skip a definition whose namespace is still `params.Namespace` — it is emitted once per call
  site with the namespace substituted.
- `TestManagerMetricsSubsystem` asserts on the exported series names. The existing tests asserted
  on the `perfMetrics` fields, which is why they passed while the series were swapped.

#### Additional details (Optional)

Metric name changes, for dashboard migration. The first two rows also change meaning, since the
counters were reporting each other's manager:

| before | after |
|---|---|
| `coordinator_vcservice_retired_transaction_total` (held verifier retries) | `coordinator_verifier_transaction_retried_total` |
| `coordinator_verifier_retired_transaction_total` (held vcservice retries) | `coordinator_vcservice_transaction_retried_total` |
| `coordinator... (continued)
Pull Request #724: [coordinator] Fix swapped manager metrics, report queues on scrape

46 of 46 new or added lines in 5 files covered. (100.0%)

23 existing lines in 7 files now uncovered.

10520 of 11539 relevant lines covered (91.17%)

33147.67 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
77.71
-0.58% service/sidecar/sidecar.go
6
92.89
-1.9% service/coordinator/signature_verifier_manager.go
3
85.12
-1.04% service/sidecar/relay.go
2
81.9
-1.9% service/query/query.go
2
94.42
-1.2% service/coordinator/coordinator.go
2
86.99
1.16% service/vc/database.go
1
80.33
-1.64% utils/utils.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 30745602656.1 02 Aug 2026 11:44AM UTC 95
84.53
GitHub Action Run
2 db-test - 30745602656.2 02 Aug 2026 11:27AM UTC 131
78.82
GitHub Action Run
3 core-db-test - 30745602656.3 02 Aug 2026 11:25AM UTC 100
46.56
GitHub Action Run
Source Files on build 30745602656
  • Tree
  • List 131
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #724
  • PR Base - main (#30541649421)
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