@@ -285,7 +285,9 @@ def unit_prerelease(session):
285285def install_systemtest_dependencies (session , * constraints ):
286286
287287 # Use pre-release gRPC for system tests.
288- session .install ("--pre" , "grpcio" )
288+ # Exclude version 1.49.0rc1 which has a known issue.
289+ # See https://github.com/grpc/grpc/pull/30642
290+ session .install ("--pre" , "grpcio!=1.49.0rc1" )
289291
290292 session .install (* SYSTEM_TEST_STANDARD_DEPENDENCIES , * constraints )
291293
@@ -430,7 +432,8 @@ def prerelease_deps(session):
430432
431433 # Install all dependencies
432434 session .install ("-e" , ".[all, tests, tracing]" )
433- session .install (* UNIT_TEST_STANDARD_DEPENDENCIES )
435+ unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
436+ session .install (* unit_deps_all )
434437 system_deps_all = (
435438 SYSTEM_TEST_STANDARD_DEPENDENCIES
436439 + SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -459,18 +462,13 @@ def prerelease_deps(session):
459462
460463 session .install (* constraints_deps )
461464
462- if os .path .exists ("samples/snippets/requirements.txt" ):
463- session .install ("-r" , "samples/snippets/requirements.txt" )
464-
465- if os .path .exists ("samples/snippets/requirements-test.txt" ):
466- session .install ("-r" , "samples/snippets/requirements-test.txt" )
467-
468465 prerel_deps = [
469466 "protobuf" ,
470467 # dependency of grpc
471468 "six" ,
472469 "googleapis-common-protos" ,
473- "grpcio" ,
470+ # Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
471+ "grpcio!=1.49.0rc1" ,
474472 "grpcio-status" ,
475473 "google-api-core" ,
476474 "proto-plus" ,
@@ -501,11 +499,19 @@ def prerelease_deps(session):
501499 system_test_folder_path = os .path .join ("tests" , "system" )
502500
503501 # Only run system tests if found.
504- if os .path .exists (system_test_path ) or os .path .exists (system_test_folder_path ):
505- session .run ("py.test" , "tests/system" )
506-
507- snippets_test_path = os .path .join ("samples" , "snippets" )
508-
509- # Only run samples tests if found.
510- if os .path .exists (snippets_test_path ):
511- session .run ("py.test" , "samples/snippets" )
502+ if os .path .exists (system_test_path ):
503+ session .run (
504+ "py.test" ,
505+ "--verbose" ,
506+ f"--junitxml=system_{ session .python } _sponge_log.xml" ,
507+ system_test_path ,
508+ * session .posargs ,
509+ )
510+ if os .path .exists (system_test_folder_path ):
511+ session .run (
512+ "py.test" ,
513+ "--verbose" ,
514+ f"--junitxml=system_{ session .python } _sponge_log.xml" ,
515+ system_test_folder_path ,
516+ * session .posargs ,
517+ )
0 commit comments