Skip to content

xDS interop: Python LB tests build and use the python server (v1.49.x backport)#34002

Merged
ejona86 merged 1 commit intogrpc:v1.49.xfrom
sergiitk:backport-1.49-xds-interop-py-lb-tests-use-py-server
Aug 7, 2023
Merged

xDS interop: Python LB tests build and use the python server (v1.49.x backport)#34002
ejona86 merged 1 commit intogrpc:v1.49.xfrom
sergiitk:backport-1.49-xds-interop-py-lb-tests-use-py-server

Conversation

@sergiitk
Copy link
Copy Markdown
Member

@sergiitk sergiitk commented Aug 7, 2023

Backport of #30637 to v1.49.x.

Undoes #27096.
While we lost context why py tests were used pinned cpp server,
we think this is due to lack of support of the set_not_serving RPC
in the python server, see #30635.

This RPC is only used in two tests, and for them we added a
temporary override of the test server to the reference Java server,
see #30636.

All other LB tests should work with the python server just fine.

)

Undoes grpc#27096.
While we lost context why py tests were used pinned cpp server,
we think this is due to lack of support of the set_not_serving RPC
in the python server, see grpc#30635.

This RPC is only used in two tests, and for them we added a
temporary override of the test server to the reference Java server,
see grpc#30636.

All other LB tests should work with the python server just fine.
@sergiitk sergiitk added release notes: no Indicates if PR should not be in release notes area/psm interop labels Aug 7, 2023
@sergiitk sergiitk requested a review from eugeneo August 7, 2023 22:31
@sergiitk
Copy link
Copy Markdown
Member Author

sergiitk commented Aug 7, 2023

For posterity - this backport was missing. We discovered it because of an image vulnerability report referring to this specific tag: gcr.io/grpc-testing/xds-interop/cpp-server:13171a8b293837517c0446ec0e149e9d10ea3d10.

@sergiitk
Copy link
Copy Markdown
Member Author

sergiitk commented Aug 7, 2023

Correctness check: after applying this backport, the difference between v1.49.x and v1.50.x is

diff --git a/tools/internal_ci/linux/grpc_xds_k8s_lb_python.sh b/tools/internal_ci/linux/grpc_xds_k8s_lb_python.sh
index 431449925f..81d9fd2358 100755
--- a/tools/internal_ci/linux/grpc_xds_k8s_lb_python.sh
+++ b/tools/internal_ci/linux/grpc_xds_k8s_lb_python.sh
@@ -174,7 +174,7 @@ main() {
   # Run tests
   cd "${TEST_DRIVER_FULL_DIR}"
   local failed_tests=0
-  test_suites=("api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test" "outlier_detection_test")
+  test_suites=("api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test")
   for test in "${test_suites[@]}"; do
     run_test $test || (( ++failed_tests ))
   done

This means the patch was applied correctly, and there are no other unexpected changes.

@sergiitk sergiitk requested a review from ejona86 August 7, 2023 22:38
@ejona86 ejona86 merged commit dcaa2f2 into grpc:v1.49.x Aug 7, 2023
@sergiitk sergiitk deleted the backport-1.49-xds-interop-py-lb-tests-use-py-server branch August 7, 2023 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/psm interop release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants