Reenable python bazel tests

pull/18872/head
Richard Belleville 6 years ago
parent afdc59712d
commit 4de4a7da7b
  1. 4
      examples/python/wait_for_ready/wait_for_ready_example.py
  2. 13
      tools/internal_ci/linux/grpc_python_bazel_test_in_docker.sh

@ -22,8 +22,8 @@ import threading
import grpc
from examples.protos import helloworld_pb2
from examples.protos import helloworld_pb2_grpc
from examples import helloworld_pb2
from examples import helloworld_pb2_grpc
_LOGGER = logging.getLogger(__name__)
_LOGGER.setLevel(logging.INFO)

@ -23,10 +23,9 @@ git clone /var/local/jenkins/grpc /var/local/git/grpc
(cd /var/local/jenkins/grpc/ && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
#TODO(yfen): temporarily disabled all python bazel tests due to incompatibility with bazel 0.23.2
#cd /var/local/git/grpc/test
#bazel test --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //src/python/...
#bazel test --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //examples/python/...
#bazel clean --expunge
#bazel test --config=python3 --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //src/python/...
#bazel test --config=python3 --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //examples/python/...
cd /var/local/git/grpc/test
bazel test --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //src/python/...
bazel test --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //examples/python/...
bazel clean --expunge
bazel test --config=python3 --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //src/python/...
bazel test --config=python3 --spawn_strategy=standalone --genrule_strategy=standalone --test_output=errors //examples/python/...

Loading…
Cancel
Save