Skip to content

Commit

Permalink
[Release] Fix release tests (ray-project#9976)
Browse files Browse the repository at this point in the history
* In Progress.

* Fix torch version.

* Fix asan run.sh

* Addressed code review.
  • Loading branch information
rkooo567 authored Aug 7, 2020
1 parent 5d5643e commit 2293461
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
22 changes: 12 additions & 10 deletions ci/asan_tests/run_asan_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,28 @@ set -euxo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)"

asan_install() {
(cd "${ROOT_DIR}"/../python && pip install -e . --verbose)
echo "installing"
(cd "${ROOT_DIR}"/../ray/python && pip install -e . --verbose)
}

asan_setup() {
echo "Setting up the environment"
pip uninstall -y ray || true
conda uninstall -y wrapt || true
pip install wrapt || true
pip install -r ray-project/requirements.txt
pip install -U pytest==5.4.3

echo "Installing cython example"
(cd "${ROOT_DIR}"/../doc/examples/cython && python setup.py install --user)
(cd "${ROOT_DIR}"/../ray/doc/examples/cython && python setup.py install --user)

echo "Settting up the shell"
echo "build --config=asan" >> ~/.bazelrc # Setup cache
echo "LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/7/libasan.so" >> ~/.bashrc
echo "ASAN_OPTIONS=detect_leaks=0" >> ~/.bashrc

echo "Compiling ray"
cd "${ROOT_DIR}"/../ray/
git fetch
git pull origin master
asan_install || true
Expand All @@ -32,16 +37,13 @@ asan_run() {
export LD_PRELOAD="/usr/lib/gcc/x86_64-linux-gnu/7/libasan.so"
export ASAN_OPTIONS="detect_leaks=0"

cd "${ROOT_DIR}"/../..

# async plasma test
python -m pytest -v --durations=5 --timeout=300 python/ray/tests/test_async.py
cd "${ROOT_DIR}"/../ray

# Ray tests
bazel test --test_tag_filters=-jenkins_only python/ray/serve/...
bazel test --test_tag_filters=-jenkins_only python/ray/dashboard/...
bazel test --test_tag_filters=-jenkins_only python/ray/tests/...
bazel test --test_tag_filters=-jenkins_only python/ray/tune/...
bazel test --test_tag_filters=-jenkins_only --test_output=streamed python/ray/serve/...
bazel test --test_tag_filters=-jenkins_only --test_output=streamed python/ray/dashboard/...
bazel test --test_tag_filters=-jenkins_only --test_output=streamed python/ray/tests/...
bazel test --test_tag_filters=-jenkins_only --test_output=streamed python/ray/tune/...
)
}

Expand Down
1 change: 1 addition & 0 deletions ci/long_running_tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ echo "workload: $workload"
wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ray_version-cp36-cp36m-manylinux1_x86_64.whl"

pip install -U pip
unset RAY_ADDRESS
source activate tensorflow_p36 && pip install -q -U "$wheel" Click
source activate tensorflow_p36 && pip install -q "ray[all]" "gym[atari]"
source activate tensorflow_p36 && python "workloads/$workload.py"
Expand Down
1 change: 1 addition & 0 deletions ci/microbenchmark/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ wget "https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ray
pip uninstall -y -q ray
pip install -U "ray-$ray_version-cp36-cp36m-manylinux1_x86_64.whl"

unset RAY_ADDRESS
OMP_NUM_THREADS=64 ray microbenchmark
2 changes: 1 addition & 1 deletion ci/regression_test/rllib_regresssion_tests/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

source activate tensorflow_p36 && pip install torch torchvision
source activate tensorflow_p36 && pip install torch==1.4 torchvision
source activate tensorflow_p36 && rllib train -f compact-regression-test.yaml
2 changes: 1 addition & 1 deletion ci/regression_test/stress_tests/ray-project/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ setup_commands:
# - git clone https://github.com/ray-project/ray || true
# - ray/ci/travis/install-bazel.sh
- pip install -U pip
- conda uninstall -y terminado
- conda uninstall -y terminado || true
- pip install terminado
- pip install boto3==1.4.8 cython==0.29.0
# - cd ray/python; git checkout master; git pull; pip install -e . --verbose
Expand Down
2 changes: 1 addition & 1 deletion ci/regression_test/stress_tests/test_dead_actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

ray.init(address="localhost:6379")
ray.init(address="auto")

# These numbers need to correspond with the autoscaler config file.
# The number of remote nodes in the autoscaler should upper bound
Expand Down
2 changes: 1 addition & 1 deletion ci/regression_test/stress_tests/test_many_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

ray.init(address="localhost:6379")
ray.init(address="auto")

# These numbers need to correspond with the autoscaler config file.
# The number of remote nodes in the autoscaler should upper bound
Expand Down

0 comments on commit 2293461

Please sign in to comment.