Skip to content

[utils] Move gRPC server bootstrapping packages to fabric-x-common - #680

Open
dean-amar wants to merge 4 commits into
hyperledger:mainfrom
dean-amar:publish-common-packages
Open

[utils] Move gRPC server bootstrapping packages to fabric-x-common#680
dean-amar wants to merge 4 commits into
hyperledger:mainfrom
dean-amar:publish-common-packages

Conversation

@dean-amar

Copy link
Copy Markdown
Contributor

Type of change

  • Improvement (code reusability)
  • Test update

Description

  • Committer side of the cross-repo move of the gRPC server-bootstrapping chain into fabric-x-common.
    This PR removes the implementations from fabric-x-committer and repoints every import to its new home under github.com/hyperledger/fabric-x-common/utils/....

Packages removed from this repo (now provided by fabric-x-common):

  • utils/serve — gRPC/HTTP server lifecycle, interceptors, TLS provider, config
  • utils/connection — gRPC client dialing, endpoints, TLS, health checks
  • utils/retry — backoff/retry primitives
  • utils/channel — readiness signaling

Related issues

… by other projects.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar dean-amar changed the title * Remove common code that has been moved to fabric-x-common for reuse… * Remove common code that has been moved to fabric-x-common Jul 19, 2026
@dean-amar dean-amar changed the title * Remove common code that has been moved to fabric-x-common [utils] Remove common code that has been moved to fabric-x-common Jul 19, 2026
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar dean-amar changed the title [utils] Remove common code that has been moved to fabric-x-common [utils] Move gRPC server bootstrapping packages to fabric-x-common Jul 19, 2026
@coveralls

coveralls commented Jul 19, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 92.132% (+0.6%) from 91.575% — dean-amar:publish-common-packages into hyperledger:main

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>

const localhost = "localhost"

func TestExtractAppTLSCAsFromEnvelope(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this relevant to this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test previously lived under serve/tls_provider_test.go and depended on the utils/serialization package, which resides in the committer. To avoid a circular dependency, the test will remain in the committer. Its original location was also a mistake: it has nothing to do with the dynamic_tls mechanism and only tests ExtractAppTLSCAsFromEnvelope, which is part of the serialization package.

Comment thread utils/test/cryptogen_tls.go Outdated

// NewServiceTLSConfig creates a server TLS configuration with certificates loaded from the artifact path.
// This function constructs paths to TLS certificates for a given service within the peer organization structure.
func NewServiceTLSConfig(artifactsPath, serviceName, mode string) connection.TLSConfig {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this relevant to this PR? Was this moved from someplace else?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been changed.

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:31
@dean-amar
dean-amar requested a review from liran-funaro July 20, 2026 11:31
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