From d683f331cd4f67a2c304b806bb99cd9d438f4d11 Mon Sep 17 00:00:00 2001 From: Bo Zhou <2466956298@qq.com> Date: Tue, 2 Jun 2020 20:03:25 +0800 Subject: [PATCH] ping the master before connection (#278) * ping the master before connection * yapf * fix comments * remove the useless library * install ping for the docker environment * remove protobuf intallation * remove evokit test --- .teamcity/Dockerfile | 5 ++--- .teamcity/build.sh | 14 ------------- parl/algorithms/fluid/impala/vtrace.py | 2 +- parl/remote/client.py | 10 +++++++-- parl/remote/tests/ping_master_test.py | 29 ++++++++++++++++++++++++++ parl/utils/communication.py | 27 +++++++++++++++++++++++- 6 files changed, 66 insertions(+), 21 deletions(-) create mode 100644 parl/remote/tests/ping_master_test.py diff --git a/.teamcity/Dockerfile b/.teamcity/Dockerfile index e16d09d..67e20af 100644 --- a/.teamcity/Dockerfile +++ b/.teamcity/Dockerfile @@ -23,6 +23,5 @@ RUN apt-get install -y libgflags-dev libgoogle-glog-dev libomp-dev unzip RUN apt-get install -y libgtest-dev && cd /usr/src/gtest && mkdir build \ && cd build && cmake .. && make && cp libgtest*.a /usr/local/lib -RUN wget https://github.com/google/protobuf/releases/download/v2.4.1/protobuf-2.4.1.tar.gz \ - && tar -zxvf protobuf-2.4.1.tar.gz \ - && cd protobuf-2.4.1 && ./configure && make && make install +RUN apt-get update +RUN apt-get install -y iputils-ping diff --git a/.teamcity/build.sh b/.teamcity/build.sh index 09d9982..3a76f48 100755 --- a/.teamcity/build.sh +++ b/.teamcity/build.sh @@ -134,19 +134,6 @@ EOF rm -rf ${REPO_ROOT}/build } -function run_evo_kit_test { - cd ${REPO_ROOT}/evo_kit - - cat <