[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 <chengyidna@gmail.com>
This commit is contained in:
Yi Cheng 2022-07-29 20:53:40 +00:00 committed by GitHub
parent 1bcd3e41d1
commit ad262c1968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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