From ad262c196896b3fed966ce08f71762b55b0c8e85 Mon Sep 17 00:00:00 2001 From: Yi Cheng <74173148+iycheng@users.noreply.github.com> Date: Fri, 29 Jul 2022 20:53:40 +0000 Subject: [PATCH] [ci] Fix test_gcs_ha_e2e.py (#27263) This PR fix the broken test. The test failed because it's not installing the latest wheel. Signed-off-by: Yi Cheng --- ci/ci.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/ci.sh b/ci/ci.sh index ee494f3b3..5928d3b3a 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -133,11 +133,13 @@ test_core() { } prepare_docker() { + rm "${WORKSPACE_DIR}"/python/dist/* ||: pushd "${WORKSPACE_DIR}/python" python setup.py bdist_wheel tmp_dir="/tmp/prepare_docker_$RANDOM" mkdir -p $tmp_dir cp "${WORKSPACE_DIR}"/python/dist/*.whl $tmp_dir + wheel=$(ls "${WORKSPACE_DIR}"/python/dist/) base_image=$(python -c "import sys; print(f'rayproject/ray-deps:nightly-py{sys.version_info[0]}{sys.version_info[1]}-cpu')") echo " FROM $base_image @@ -147,7 +149,7 @@ prepare_docker() { COPY ./*.whl / EXPOSE 8000 EXPOSE 10001 - RUN pip install ray[serve] --find-links=/ && pip install redis + RUN pip install /$wheel[serve] RUN sudo apt update && sudo apt install curl -y " > $tmp_dir/Dockerfile