diff --git a/.buildkite/Dockerfile.gpu b/.buildkite/Dockerfile.gpu index ee083f48ae04..04e8eb6cfa38 100644 --- a/.buildkite/Dockerfile.gpu +++ b/.buildkite/Dockerfile.gpu @@ -6,13 +6,14 @@ ARG REMOTE_CACHE_URL ARG BUILDKITE_PULL_REQUEST ARG BUILDKITE_COMMIT ARG BUILDKITE_PULL_REQUEST_BASE_BRANCH +ARG PYTHON=3.7 ENV DEBIAN_FRONTEND=noninteractive ENV TZ=America/Los_Angeles ENV BUILDKITE=true ENV CI=true -ENV PYTHON=3.6 +ENV PYTHON=$PYTHON ENV RAY_USE_RANDOM_PORTS=1 ENV RAY_DEFAULT_BUILD=1 ENV RAY_INSTALL_JAVA=1 @@ -61,6 +62,8 @@ COPY . . RUN ./ci/travis/ci.sh init RUN bash --login -i ./ci/travis/ci.sh build +RUN bash --login -i ./ci/travis/install-dependencies.sh + # Run determine test to run RUN bash --login -i -c "python ./ci/travis/determine_tests_to_run.py --output=json > affected_set.json" RUN cat affected_set.json diff --git a/.buildkite/pipeline.gpu.large.yml b/.buildkite/pipeline.gpu.large.yml index 7aa3a3b098ff..e26b1fcc220e 100644 --- a/.buildkite/pipeline.gpu.large.yml +++ b/.buildkite/pipeline.gpu.large.yml @@ -2,7 +2,9 @@ conditions: ["RAY_CI_TRAIN_AFFECTED"] commands: - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/travis/upload_build_info.sh; fi }; trap cleanup EXIT - - TRAIN_TESTING=1 TUNE_TESTING=1 INSTALL_HOROVOD=1 ./ci/travis/install-dependencies.sh + - PYTHON=3.6 TRAIN_TESTING=1 TUNE_TESTING=1 INSTALL_HOROVOD=1 ./ci/travis/install-dependencies.sh + # Because Python version changed, we need to re-install Ray here + - rm -rf ./python/ray/thirdparty_files; rm -rf ./python/ray/pickle5_files; ./ci/travis/ci.sh build - pip install -Ur ./python/requirements_ml_docker.txt - ./ci/travis/env_info.sh - bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=gpu,gpu_only python/ray/train/... @@ -11,9 +13,7 @@ conditions: ["RAY_CI_TRAIN_AFFECTED"] commands: - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/travis/upload_build_info.sh; fi }; trap cleanup EXIT - - TRAIN_TESTING=1 DATA_PROCESSING_TESTING=1 PYTHON=3.7 ./ci/travis/install-dependencies.sh - # Because Python version changed, we need to re-install Ray here - - rm -rf ./python/ray/thirdparty_files; rm -rf ./python/ray/pickle5_files; ./ci/travis/ci.sh build + - PYTHON=3.7 TRAIN_TESTING=1 DATA_PROCESSING_TESTING=1 ./ci/travis/install-dependencies.sh - pip install -Ur ./python/requirements_ml_docker.txt - ./ci/travis/env_info.sh - bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=datasets_train doc/... @@ -22,9 +22,7 @@ conditions: ["RAY_CI_RLLIB_AFFECTED"] commands: - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/travis/upload_build_info.sh; fi }; trap cleanup EXIT - - RLLIB_TESTING=1 PYTHON=3.7 ./ci/travis/install-dependencies.sh - # Because Python version changed, we need to re-install Ray here - - rm -rf ./python/ray/thirdparty_files; rm -rf ./python/ray/pickle5_files; ./ci/travis/ci.sh build + - PYTHON=3.7 RLLIB_TESTING=1 ./ci/travis/install-dependencies.sh - pip install -Ur ./python/requirements_ml_docker.txt - ./ci/travis/env_info.sh # --jobs 2 is necessary as we only need to have at least 2 gpus on the machine diff --git a/.buildkite/pipeline.gpu.yml b/.buildkite/pipeline.gpu.yml index 1ee1118e003f..a2392e53eee9 100644 --- a/.buildkite/pipeline.gpu.yml +++ b/.buildkite/pipeline.gpu.yml @@ -12,9 +12,7 @@ conditions: ["RAY_CI_RLLIB_AFFECTED"] commands: - cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/travis/upload_build_info.sh; fi }; trap cleanup EXIT - - RLLIB_TESTING=1 PYTHON=3.7 ./ci/travis/install-dependencies.sh - # Because Python version changed, we need to re-install Ray here - - rm -rf ./python/ray/thirdparty_files; rm -rf ./python/ray/pickle5_files; ./ci/travis/ci.sh build + - PYTHON=3.7 RLLIB_TESTING=1 ./ci/travis/install-dependencies.sh - pip install -Ur ./python/requirements_ml_docker.txt - ./ci/travis/env_info.sh # --jobs 1 is necessary as we only have 1 GPU on the machine and running tests in parallel