From fb16dd5265b6231e64adc1ca381c48bca74ce0fd Mon Sep 17 00:00:00 2001 From: Simon Mo Date: Mon, 18 Jan 2021 17:20:45 -0800 Subject: [PATCH] Add Dashboard Python Test to Buildkite (#13530) --- .buildkite/Dockerfile | 3 ++- .buildkite/pipeline.yml | 3 +++ ci/travis/install-dependencies.sh | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.buildkite/Dockerfile b/.buildkite/Dockerfile index 6efb6c6a6..2f52fb92d 100644 --- a/.buildkite/Dockerfile +++ b/.buildkite/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive ENV TZ=America/Los_Angeles ENV BUILDKITE=true ENV CI=true +ENV PYTHON=3.6 RUN apt-get update -qq RUN apt-get install -y -qq \ @@ -25,4 +26,4 @@ WORKDIR /ray # Below should be re-run each time COPY . . RUN ./ci/travis/ci.sh init -RUN ./ci/travis/ci.sh build +RUN bash --login -i ./ci/travis/ci.sh build diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 0fc4508d9..91c673d52 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,3 +1,6 @@ - label: "Ray Core Tests (:buildkite: Experimental)" commands: - bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only -- //:all -rllib/... +- label: "Ray Dashboard Tests" + commands: + - bazel test --config=ci $(./scripts/bazel_export_options) python/ray/new_dashboard/... diff --git a/ci/travis/install-dependencies.sh b/ci/travis/install-dependencies.sh index 0ea2f9fe6..8c42f694c 100755 --- a/ci/travis/install-dependencies.sh +++ b/ci/travis/install-dependencies.sh @@ -216,8 +216,10 @@ install_upgrade_pip() { } install_node() { - if [ "${OSTYPE}" = msys ]; then + if [ "${OSTYPE}" = msys ] ; then { echo "WARNING: Skipping running Node.js due to incompatibilities with Windows"; } 2> /dev/null + elif [ -n "${BUILDKITE-}" ] ; then + { echo "WARNING: Skipping running Node.js on buildkite because it's already there"; } 2> /dev/null else # Install the latest version of Node.js in order to build the dashboard. (