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

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

Build:
Build:
LAST BUILD BRANCH: fix/696-integration-port-reservation
DEFAULT BRANCH: main
Ran 02 Aug 2026 01:24PM 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 01:15PM UTC coverage: 91.209% (+0.008%) from 91.201%
30749695901

Pull #728

github

liran-funaro
[integration-test] Reserve service ports across restarts to fix port races

- Bug fix
- Improvement (improvement to code, performance, etc)

- Allocate each service's gRPC/HTTP ports directly into the process that
  owns them, holding a listener on each from allocation until the subprocess
  binds it, and re-reserving the moment the subprocess stops (`Stop`) so a
  parallel test cannot claim a just-freed port while the service is down.
- Drop the central reservation pool and the allocate-then-transfer machinery
  (`claim`/`claimAll`/`closeAll`); defer config-file writing to a second pass
  once every service endpoint is known, since a template renders the whole
  `SystemConfig`.
- Pre-allocate the load generators in `NewRuntime` like the other services:
  the primary reserves its ports, while the distributed client binds its own
  ephemeral port (nothing dials it). Their config is rendered in `startLoadGen`,
  where the template and worker count are known from the service flags.
- Add `OrdererEnv.ReserveListeners`/`ReleaseListeners` so the orderer test
  environment follows the same stop-then-reserve pattern.

- resolves #696

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
Pull Request #728: [integration-test] Reserve service ports across restarts to fix port races

10552 of 11569 relevant lines covered (91.21%)

33650.53 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
91.94
-2.84% service/coordinator/signature_verifier_manager.go
4
87.8
-2.44% service/vc/committer.go
3
91.59
-0.88% service/vc/validator_committer_service.go
2
81.9
-1.9% service/query/query.go
2
92.35
-0.53% mock/orderer.go
2
94.82
-0.8% service/coordinator/coordinator.go
2
85.26
-0.58% service/vc/database.go
1
80.33
-1.64% utils/utils.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 30749695901.1 02 Aug 2026 01:25PM UTC 131
79.09
GitHub Action Run
2 core-db-test - 30749695901.2 02 Aug 2026 01:24PM UTC 100
46.52
GitHub Action Run
3 unit-test - 30749695901.3 02 Aug 2026 01:25PM UTC 95
84.67
GitHub Action Run
Source Files on build 30749695901
  • Tree
  • List 131
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #728
  • 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