Skip to content

Conversation

@vinothkumarr227
Copy link
Contributor

@vinothkumarr227 vinothkumarr227 commented Oct 15, 2025

Addresses: #8381

RELEASE NOTES: None

@codecov
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

❌ Patch coverage is 84.04255% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.94%. Comparing base (ae62635) to head (8077a78).
⚠️ Report is 13 commits behind head on master.

Files with missing lines Patch % Lines
...xds/xdsclient/xdsresource/cluster_resource_type.go 77.41% 2 Missing and 5 partials ⚠️
internal/xds/resolver/xds_resolver.go 33.33% 0 Missing and 2 partials ⚠️
...s/xdsclient/xdsresource/endpoints_resource_type.go 90.90% 0 Missing and 2 partials ⚠️
...dsclient/xdsresource/route_config_resource_type.go 90.90% 0 Missing and 2 partials ⚠️
internal/xds/balancer/cdsbalancer/cdsbalancer.go 50.00% 0 Missing and 1 partial ⚠️
...ternal/xds/balancer/cdsbalancer/cluster_watcher.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8652      +/-   ##
==========================================
+ Coverage   81.21%   82.94%   +1.72%     
==========================================
  Files         416      416              
  Lines       41002    32240    -8762     
==========================================
- Hits        33298    26740    -6558     
+ Misses       6226     4110    -2116     
+ Partials     1478     1390      -88     
Files with missing lines Coverage Δ
.../balancer/clusterresolver/resource_resolver_eds.go 66.66% <100.00%> (ø)
internal/xds/resolver/watch_service.go 100.00% <100.00%> (+2.85%) ⬆️
internal/xds/server/listener_wrapper.go 69.59% <ø> (+16.11%) ⬆️
internal/xds/server/rds_handler.go 74.64% <100.00%> (-0.64%) ⬇️
internal/xds/xdsclient/client.go 50.00% <ø> (ø)
internal/xds/xdsclient/resource_types.go 100.00% <100.00%> (ø)
...ds/xdsclient/xdsresource/listener_resource_type.go 96.15% <100.00%> (+49.21%) ⬆️
...nternal/xds/xdsclient/xdsresource/resource_type.go 0.00% <ø> (-21.74%) ⬇️
internal/xds/balancer/cdsbalancer/cdsbalancer.go 84.98% <50.00%> (+1.06%) ⬆️
...ternal/xds/balancer/cdsbalancer/cluster_watcher.go 66.66% <50.00%> (-33.34%) ⬇️
... and 4 more

... and 352 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vinothkumarr227 vinothkumarr227 removed their assignment Oct 16, 2025
@easwars easwars self-assigned this Oct 16, 2025
Copy link
Contributor

@easwars easwars left a comment

Choose a reason for hiding this comment

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

Looks mostly good. Just some minor nits this time around.

@easwars easwars assigned vinothkumarr227 and unassigned easwars Oct 16, 2025
@vinothkumarr227 vinothkumarr227 removed their assignment Oct 17, 2025
@dfawley dfawley changed the title xds/internal:remove Generic resource Decoder and added concrete functions xds/internal: remove Generic resource Decoder and add concrete functions Oct 17, 2025
}

func (c *clientImpl) WatchResourceV2(typeURL, resourceName string, watcher xdsclient.ResourceWatcher) (cancel func()) {
func (c *clientImpl) WatchResource(typeURL, resourceName string, watcher xdsclient.ResourceWatcher) (cancel func()) {
Copy link
Member

Choose a reason for hiding this comment

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

I think it is safe to just remove this method all together since this just calls the XDSClient method with the same signature and XDSClient is embedded in clientImpl so the call to WatchResource should implicitly call the function on XDSClient. Let me know if it is not the case and I am missing something.

Copy link
Contributor

Choose a reason for hiding this comment

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

You are right. This can be completely removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@easwars easwars left a comment

Choose a reason for hiding this comment

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

LGTM, modulo the one comment from Eshita.

}

func (c *clientImpl) WatchResourceV2(typeURL, resourceName string, watcher xdsclient.ResourceWatcher) (cancel func()) {
func (c *clientImpl) WatchResource(typeURL, resourceName string, watcher xdsclient.ResourceWatcher) (cancel func()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You are right. This can be completely removed.

@easwars easwars assigned vinothkumarr227 and unassigned easwars Oct 28, 2025
@vinothkumarr227 vinothkumarr227 removed their assignment Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: xDS Includes everything xDS related, including LB policies used with xDS. Type: Internal Cleanup Refactors, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants