Skip to content

cleanup: replace dial with newclient - #7970

Merged
arjan-bal merged 21 commits into
grpc:masterfrom
janardhanvissa:newclient-instead-dial
Feb 28, 2025
Merged

cleanup: replace dial with newclient#7970
arjan-bal merged 21 commits into
grpc:masterfrom
janardhanvissa:newclient-instead-dial

Conversation

@janardhanvissa

Copy link
Copy Markdown
Contributor

Partially address: #7049

RELEASE NOTES: None

@codecov

codecov Bot commented Dec 26, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 57.14286% with 6 lines in your changes missing coverage. Please review.

Project coverage is 82.22%. Comparing base (52a257e) to head (63a9f8f).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
profiling/cmd/remote.go 0.00% 2 Missing ⚠️
admin/test/utils.go 50.00% 1 Missing ⚠️
balancer/grpclb/grpclb_remote_balancer.go 66.66% 1 Missing ⚠️
internal/stubserver/stubserver.go 66.66% 1 Missing ⚠️
xds/internal/test/e2e/e2e.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7970      +/-   ##
==========================================
+ Coverage   82.18%   82.22%   +0.03%     
==========================================
  Files         387      387              
  Lines       38941    38943       +2     
==========================================
+ Hits        32004    32019      +15     
+ Misses       5611     5607       -4     
+ Partials     1326     1317       -9     
Files with missing lines Coverage Δ
...ntials/alts/internal/handshaker/service/service.go 69.23% <100.00%> (ø)
resolver/manual/manual.go 100.00% <100.00%> (ø)
admin/test/utils.go 61.53% <50.00%> (ø)
balancer/grpclb/grpclb_remote_balancer.go 83.74% <66.66%> (+0.05%) ⬆️
internal/stubserver/stubserver.go 80.14% <66.66%> (+0.14%) ⬆️
xds/internal/test/e2e/e2e.go 0.00% <0.00%> (ø)
profiling/cmd/remote.go 0.00% <0.00%> (ø)

... and 23 files with indirect coverage changes

Comment thread interop/alts/client/client.go Outdated
Comment thread interop/client/client.go Outdated
Comment thread interop/grpclb_fallback/client_linux.go Outdated
Comment thread interop/http2/negative_http2_client.go Outdated
Comment thread interop/observability/client/client.go Outdated
Comment thread interop/xds/client/client.go Outdated
Comment thread interop/xds_federation/client.go Outdated
Comment thread profiling/cmd/remote.go Outdated
Comment thread resolver/manual/manual.go Outdated
Comment thread balancer/grpclb/grpclb_remote_balancer.go
@arjan-bal arjan-bal added this to the 1.70 Release milestone Dec 26, 2024
@arjan-bal arjan-bal added the Type: Internal Cleanup Refactors, etc label Dec 26, 2024
@dfawley dfawley removed their assignment Jan 9, 2025
@arjan-bal arjan-bal modified the milestones: 1.70 Release, 1.71 Release Jan 22, 2025
Comment thread admin/test/utils.go Outdated
Comment thread balancer/grpclb/grpclb_remote_balancer.go
Comment thread balancer/rls/control_channel.go
Comment thread resolver/manual/manual.go Outdated
@janardhanvissa janardhanvissa removed their assignment Feb 13, 2025
@janardhanvissa janardhanvissa removed their assignment Feb 17, 2025
@arjan-bal arjan-bal modified the milestones: 1.71 Release, 1.72 Release Feb 19, 2025
@arjan-bal arjan-bal self-assigned this Feb 25, 2025
Comment thread balancer/grpclb/grpclb_remote_balancer.go
Comment thread test/resolver_update_test.go Outdated
@janardhanvissa janardhanvissa removed their assignment Feb 27, 2025

@arjan-bal arjan-bal left a comment

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.

LGTM, please merge master for the tests to run.

Comment thread interop/xds/client/client.go Outdated
conn, err := grpc.NewClient(*server, grpc.WithTransportCredentials(creds))
if err != nil {
logger.Fatalf("Failed to create a client: %v", err)
logger.Fatalf("grpc.NewClient(%q) = %v", server, err)

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.

Should this be *server instead of server?

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.

done

Comment thread balancer/grpclb/grpclb_remote_balancer.go
@janardhanvissa janardhanvissa removed their assignment Feb 27, 2025
@dfawley dfawley assigned arjan-bal and unassigned dfawley Feb 27, 2025
@arjan-bal
arjan-bal merged commit b0f5027 into grpc:master Feb 28, 2025
purnesh42H pushed a commit to purnesh42H/grpc-go that referenced this pull request Mar 1, 2025
cds: stop child policies on resource-not-found errors (grpc#8122)

xds: simplify code handling certain error conditions in the resolver (grpc#8123)

xds, pickfirst: Enable additional addresses in xDS, set new pick_first as default (grpc#8126)

github: change test action to cover the legacy pickfirst balancer (grpc#8129)

cleanup: replace dial with newclient (grpc#7967)

cleanup: replace dial with newclient (grpc#7970)

stats/openetelemetry: refactor and make e2e test stats verification deterministic (grpc#8077)

xds: introduce simple grpc transport for generic xds clients (grpc#8066)

xds: generic xds client common configs

re-push comments

improve ServerConfig equal

easwar review round 1 on documentation

easwar comments on docstrings

easwar comments round 4

config tests

merge with previous pr

xds: add lrs client and xDS client interfaces

second pass to documentation language

change from godoc review

dfawley review 2

easwar review 1

changed to decoder struct

move authorities under xds client

easwar review 2

easwars review 4

ResourceWatcher done and LoadStore stop

grpc based transport

remove server config extension interface

add byte codec

dfawley review 1

send and recv tests with byte based test server

change to proto based server

easwar review 1

easwar review 3

xds: generic xds client ads transport channel
purnesh42H pushed a commit to purnesh42H/grpc-go that referenced this pull request Mar 1, 2025
ads: stop child policies on resource-not-found errors (grpc#8122)

xds: simplify code handling certain error conditions in the resolver (grpc#8123)

xds, pickfirst: Enable additional addresses in xDS, set new pick_first as default (grpc#8126)

github: change test action to cover the legacy pickfirst balancer (grpc#8129)

cleanup: replace dial with newclient (grpc#7967)

cleanup: replace dial with newclient (grpc#7970)

stats/openetelemetry: refactor and make e2e test stats verification deterministic (grpc#8077)

xds: introduce simple grpc transport for generic xds clients (grpc#8066)

xds: generic xds client common configs

re-push comments

improve ServerConfig equal

easwar review round 1 on documentation

easwar comments on docstrings

easwar comments round 4

config tests

merge with previous pr

xds: add lrs client and xDS client interfaces

second pass to documentation language

change from godoc review

dfawley review 2

easwar review 1

changed to decoder struct

move authorities under xds client

easwar review 2

easwars review 4

ResourceWatcher done and LoadStore stop

grpc based transport

remove server config extension interface

add byte codec

dfawley review 1

send and recv tests with byte based test server

change to proto based server

easwar review 1

easwar review 3

xds: generic xds client ads transport channel
janardhanvissa added a commit to janardhanvissa/grpc-go that referenced this pull request Mar 24, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants