Skip to content

[utils] Add gRPC server bootstrapping packages [serve, connection, and retry] - #138

Open
dean-amar wants to merge 7 commits into
hyperledger:mainfrom
dean-amar:move-serve-connection-retry
Open

[utils] Add gRPC server bootstrapping packages [serve, connection, and retry]#138
dean-amar wants to merge 7 commits into
hyperledger:mainfrom
dean-amar:move-serve-connection-retry

Conversation

@dean-amar

Copy link
Copy Markdown

Type of change

  • Improvement (improvement to code)

Description

  • Introduce the gRPC server-bootstrapping chain - serve -> connection -> retry.
    In addition, importing the generic channel utility and shared test helpers, used in the mentioned packages above, from fabric-x-committer.

  • Hosting them in fabric-x-common lets fabric-x-committer, fabric-x-evm, and
    future components share a single implementation instead of duplicating it or relying on fabric-x-committer across repos.

Packages added:

  • utils/retry - backoff/retry.
  • utils/connection - gRPC client dialing, endpoints, TLS config, health checks.
  • utils/serve - gRPC/HTTP server lifecycle, interceptors, TLS provider
  • utils/channel - generic channel + readiness primitives (Ready latch, buffered reader/writer)

Related issues

Introduce the gRPC server bootstrapping chain (serve -> connection -> retry), plus the generic channel utility and test helpers used by tests in the mentioned libraries, moved from fabric-x-committer so they can be shared by fabric-x-committer, fabric-x-evm, and future components rather than duplicated or depended on across repos.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar
dean-amar force-pushed the move-serve-connection-retry branch from a3bdc90 to 34a5ce5 Compare July 19, 2026 15:01
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar
dean-amar force-pushed the move-serve-connection-retry branch from 4f88b2a to 04fbaff Compare July 19, 2026 15:23
@coveralls

coveralls commented Jul 19, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 83.078% (+0.6%) from 82.479% — dean-amar:move-serve-connection-retry into hyperledger:main

dean-amar and others added 2 commits July 19, 2026 18:35
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar dean-amar changed the title Add serve, connection, and retry packages Add serve, connection, and retry packages for shared usage Jul 19, 2026
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar
dean-amar marked this pull request as ready for review July 20, 2026 11:30
@dean-amar dean-amar changed the title Add serve, connection, and retry packages for shared usage [utils] Add gRPC server bootstrapping packages [serve, connection, and retry] Jul 20, 2026
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@arner

arner commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Hi @dean-amar , are you still planning to continue this?

@tock-ibm this is what @cendhu mentioned in the call today. Even if you don't want to use the shared package for GRPC, it's good for inspiration ;)

@dean-amar

dean-amar commented Aug 4, 2026

Copy link
Copy Markdown
Author

Hi @dean-amar , are you still planning to continue this?

@tock-ibm this is what @cendhu mentioned in the call today. Even if you don't want to use the shared package for GRPC, it's good for inspiration ;)

Hey @arner, this work item is still planned.

Some important features are still being added to these packages. As mentioned above, the migration will be delayed slightly until everything is fully covered and ready to be moved into the common repository.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discussion: publish utils/serve to fabric-x-common

3 participants