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

hyperledger / fabric-x-committer / 31094313559
91%

Build:
DEFAULT BRANCH: main
Ran 06 Aug 2026 10:46AM UTC
Jobs 3
Files 132
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

06 Aug 2026 10:42AM UTC coverage: 90.832% (+0.08%) from 90.756%
31094313559

push

github

web-flow
[serve, connection] Hand the pre-allocated listener over to its consumer (#747)

#### Type of change

- Bug fix
- Test update

#### Description

- `ServerConfig.Listener` now clears the config's reference to the
pre-allocated listener when it
hands it to a server, making the server its sole owner. Releasing a
reservation
(`ClosePreAllocatedListener`) can therefore no longer close a listener a
server is accepting on,
and a non-nil `preAllocatedListener` now means exactly "the config holds
this port".
- `reserveWhileServerDown` drops its `ClosePreAllocatedListener` call:
once the restarted server has
taken the reservation there is nothing left to close, and re-reserving
the same port retries
through `ListenRetryExecute` until the stopping server releases it, so
the helper no longer
  depends on the asynchronous stop having completed first.
- `reserveWhileServerDown` also reserves the HTTP port, which was left
free for the whole outage.

#### Additional details (Optional)

To observe the failure, start a server on a pre-allocated listener,
cancel its context and
immediately close the reservation, in a loop: the asynchronous `Stop`
usually fires grpc-go's quit
event first, but when the close wins, `Serve` returns
`accept tcp 127.0.0.1:<port>: use of closed network connection`.

#### Related issues

- resolves #746

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

17 existing lines in 7 files now uncovered.

10780 of 11868 relevant lines covered (90.83%)

33593.99 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
94.17
-3.33% mock/coordinator.go
4
86.34
-2.48% service/vc/committer.go
3
91.3
-1.3% service/vc/validator_committer_service.go
2
98.91
-1.09% service/coordinator/dependencygraph/global_dependency_manager.go
2
94.42
-0.86% service/coordinator/coordinator.go
1
96.63
-1.12% mock/sigverifier.go
1
80.33
-1.64% utils/utils.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 31094313559.1 06 Aug 2026 10:47AM UTC 132
78.8
GitHub Action Run
2 unit-test - 31094313559.2 06 Aug 2026 10:48AM UTC 95
84.61
GitHub Action Run
3 core-db-test - 31094313559.3 06 Aug 2026 10:46AM UTC 101
47.87
GitHub Action Run
Source Files on build 31094313559
  • Tree
  • List 132
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 77890ec7 on github
  • Prev Build on main (#30988812892)
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