Skip to content

A75: Add missing E2E test cases for xDS aggregate cluster - #9278

Merged
easwars merged 10 commits into
grpc:masterfrom
mswierq:a75/aggregate-cluster-e2e-tests
Sep 10, 2026
Merged

A75: Add missing E2E test cases for xDS aggregate cluster#9278
easwars merged 10 commits into
grpc:masterfrom
mswierq:a75/aggregate-cluster-e2e-tests

Conversation

@mswierq

@mswierq mswierq commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Add end-to-end test cases for xDS aggregate clusters:

  1. LRS Load Reporting (TestAggregateCluster_LRS): Verifies that when an aggregate cluster (Root -> [PrimaryEDS, SecondaryEDS]) has LRS enabled on both leaf clusters, load is initially reported only for the primary cluster, and dynamically shifts to the secondary cluster upon primary failover.
  2. Telemetry Labels (TestTelemetryLabels_AggregateCluster): Verifies that CSM telemetry labels from CDS cluster metadata reflect the active leaf cluster receiving traffic and switch to the secondary cluster's labels when failing over.

This PR is part of A75 implementation. However, these test cases work for both the legacy and new LB policy tree.

RELEASE NOTES: n/a

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.53%. Comparing base (2cb3789) to head (fba7181).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9278      +/-   ##
==========================================
- Coverage   87.53%   87.53%   -0.01%     
==========================================
  Files         429      430       +1     
  Lines       30642    30678      +36     
==========================================
+ Hits        26824    26853      +29     
- Misses       3818     3824       +6     
- Partials        0        1       +1     

see 29 files with indirect coverage changes

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

@Pranjali-2501 Pranjali-2501 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.

Hi @mswierq , This PR mostly looks good. Have some minor comments, PTAL.

Comment thread test/xds/xds_telemetry_labels_test.go
Comment thread test/xds/xds_telemetry_labels_test.go Outdated
Comment thread test/xds/xds_telemetry_labels_test.go Outdated
Comment thread test/xds/xds_telemetry_labels_test.go Outdated
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
@mswierq
mswierq requested a review from Pranjali-2501 August 28, 2026 11:38
@Pranjali-2501 Pranjali-2501 assigned easwars and unassigned mswierq Aug 31, 2026
@Pranjali-2501
Pranjali-2501 requested a review from easwars August 31, 2026 05:19
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
Comment thread internal/xds/balancer/cdsbalancer/e2e_test/aggregate_cluster_test.go Outdated
Comment thread test/xds/xds_telemetry_labels_test.go Outdated
Comment thread test/xds/xds_telemetry_labels_test.go Outdated
Comment thread test/xds/xds_telemetry_labels_test.go Outdated
@eshitachandwani eshitachandwani assigned easwars and unassigned mswierq Sep 7, 2026
@easwars
easwars merged commit 3b0f758 into grpc:master Sep 10, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants