mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[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:
parent
1bcd3e41d1
commit
ad262c1968
1 changed files with 3 additions and 1 deletions
4
ci/ci.sh
4
ci/ci.sh
|
@ -133,11 +133,13 @@ test_core() {
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_docker() {
|
prepare_docker() {
|
||||||
|
rm "${WORKSPACE_DIR}"/python/dist/* ||:
|
||||||
pushd "${WORKSPACE_DIR}/python"
|
pushd "${WORKSPACE_DIR}/python"
|
||||||
python setup.py bdist_wheel
|
python setup.py bdist_wheel
|
||||||
tmp_dir="/tmp/prepare_docker_$RANDOM"
|
tmp_dir="/tmp/prepare_docker_$RANDOM"
|
||||||
mkdir -p $tmp_dir
|
mkdir -p $tmp_dir
|
||||||
cp "${WORKSPACE_DIR}"/python/dist/*.whl $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')")
|
base_image=$(python -c "import sys; print(f'rayproject/ray-deps:nightly-py{sys.version_info[0]}{sys.version_info[1]}-cpu')")
|
||||||
echo "
|
echo "
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
@ -147,7 +149,7 @@ prepare_docker() {
|
||||||
COPY ./*.whl /
|
COPY ./*.whl /
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
EXPOSE 10001
|
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
|
RUN sudo apt update && sudo apt install curl -y
|
||||||
" > $tmp_dir/Dockerfile
|
" > $tmp_dir/Dockerfile
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue