2021-02-18 14:19:28 -08:00
|
|
|
- label: ":ferris_wheel: Wheels and Jars"
|
|
|
|
conditions:
|
|
|
|
[
|
2021-06-30 01:12:47 +08:00
|
|
|
"RAY_CI_LINUX_WHEELS_AFFECTED",
|
|
|
|
"RAY_CI_JAVA_AFFECTED",
|
2021-02-18 14:19:28 -08:00
|
|
|
]
|
|
|
|
commands:
|
|
|
|
# Build the wheels and jars
|
2022-04-25 21:19:11 +01:00
|
|
|
- UPLOAD_WHEELS_AS_ARTIFACTS=1 LINUX_WHEELS=1 LINUX_JARS=1 ./ci/ci.sh build
|
2021-02-18 14:19:28 -08:00
|
|
|
- bash ./java/build-jar-multiplatform.sh linux
|
|
|
|
# Upload the wheels and jars
|
|
|
|
# We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
|
|
|
|
- if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
|
|
|
|
- pip install -q docker aws_requests_auth boto3
|
2021-06-04 00:48:12 -07:00
|
|
|
# Upload to branch directory.
|
2021-06-03 20:10:31 -07:00
|
|
|
- python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
|
|
|
|
- python .buildkite/copy_files.py --destination branch_jars --path ./.jar/linux
|
2021-06-04 00:48:12 -07:00
|
|
|
# Upload to latest directory.
|
|
|
|
- if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
|
|
|
|
- if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination jars --path ./.jar/linux; fi
|
2021-02-18 14:19:28 -08:00
|
|
|
|
2021-05-19 13:46:42 -07:00
|
|
|
- label: ":ferris_wheel: Post-wheel tests"
|
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2021-05-19 13:46:42 -07:00
|
|
|
--test_tag_filters=post_wheel_build
|
|
|
|
--test_env=CONDA_EXE
|
|
|
|
--test_env=CONDA_PYTHON_EXE
|
|
|
|
--test_env=CONDA_SHLVL
|
|
|
|
--test_env=CONDA_PREFIX
|
|
|
|
--test_env=CONDA_DEFAULT_ENV
|
|
|
|
--test_env=CI
|
2021-05-21 15:15:52 -07:00
|
|
|
--test_env=RAY_CI_POST_WHEEL_TESTS=True
|
2021-06-09 18:02:16 -07:00
|
|
|
python/ray/tests/... python/ray/serve/... python/ray/tune/... rllib/... doc/...
|
2021-05-19 13:46:42 -07:00
|
|
|
|
2021-08-05 17:58:19 -07:00
|
|
|
- label: ":ferris_wheel: Debug Wheels"
|
|
|
|
conditions:
|
|
|
|
[
|
|
|
|
"RAY_CI_LINUX_WHEELS_AFFECTED",
|
|
|
|
"RAY_CI_JAVA_AFFECTED",
|
|
|
|
]
|
|
|
|
commands:
|
|
|
|
# Build the debug wheels
|
2022-04-13 18:11:30 +01:00
|
|
|
- RAY_DEBUG_BUILD=debug LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-08-05 17:58:19 -07:00
|
|
|
# Upload the wheels.
|
|
|
|
# We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
|
|
|
|
- if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
|
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
# Upload to branch directory.
|
|
|
|
- python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
|
|
|
|
# Upload to latest directory.
|
|
|
|
- if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
|
|
|
|
|
2021-08-17 10:21:41 -07:00
|
|
|
# Not working now.
|
|
|
|
# - label: ":ferris_wheel: ASAN Wheels"
|
|
|
|
# conditions:
|
|
|
|
# [
|
|
|
|
# "RAY_CI_LINUX_WHEELS_AFFECTED",
|
|
|
|
# "RAY_CI_JAVA_AFFECTED",
|
|
|
|
# ]
|
|
|
|
# commands:
|
|
|
|
# # Build the asan wheels
|
2022-04-13 18:11:30 +01:00
|
|
|
# - RAY_DEBUG_BUILD=asan LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-08-17 10:21:41 -07:00
|
|
|
# # Upload the wheels.
|
|
|
|
# # We don't want to push on PRs, in fact, the copy_files will fail because unauthenticated.
|
|
|
|
# - if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then exit 0; fi
|
|
|
|
# - pip install -q docker aws_requests_auth boto3
|
|
|
|
# # Upload to branch directory.
|
|
|
|
# - python .buildkite/copy_files.py --destination branch_wheels --path ./.whl
|
|
|
|
# # Upload to latest directory.
|
|
|
|
# - if [ "$BUILDKITE_BRANCH" == "master" ]; then python .buildkite/copy_files.py --destination wheels --path ./.whl; fi
|
|
|
|
|
2021-10-26 17:32:56 -07:00
|
|
|
- label: ":docker: Build Images: py36 (1/2)"
|
2021-02-18 14:19:28 -08:00
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-06-03 20:10:31 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py36 --device-types cpu cu101 cu102 --build-type BUILDKITE --build-base
|
2021-02-18 14:19:28 -08:00
|
|
|
|
2021-10-26 17:32:56 -07:00
|
|
|
- label: ":docker: Build Images: py36 (2/2)"
|
2021-02-18 14:19:28 -08:00
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-06-03 20:10:31 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py36 --device-types cu110 cu111 cu112 --build-type BUILDKITE --build-base
|
2021-05-24 10:31:54 -07:00
|
|
|
|
2021-10-26 17:32:56 -07:00
|
|
|
- label: ":docker: Build Images: py37 (1/2)"
|
2021-05-24 10:31:54 -07:00
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-06-03 20:10:31 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py37 --device-types cpu cu101 cu102 --build-type BUILDKITE --build-base
|
2021-02-18 14:19:28 -08:00
|
|
|
|
2021-10-26 17:32:56 -07:00
|
|
|
- label: ":docker: Build Images: py37 (2/2)"
|
2021-07-22 13:38:57 -07:00
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-07-22 13:38:57 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py37 --device-types cu110 cu111 cu112 --build-type BUILDKITE --build-base
|
2021-10-26 17:32:56 -07:00
|
|
|
|
|
|
|
- label: ":docker: Build Images: py38 (1/2)"
|
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-10-26 17:32:56 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py38 --device-types cpu cu101 cu102 --build-type BUILDKITE --build-base
|
2021-10-26 17:32:56 -07:00
|
|
|
|
|
|
|
- label: ":docker: Build Images: py38 (2/2)"
|
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-10-26 17:32:56 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py38 --device-types cu110 cu111 cu112 --build-type BUILDKITE --build-base
|
2021-10-26 17:32:56 -07:00
|
|
|
|
|
|
|
- label: ":docker: Build Images: py39 (1/2)"
|
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-10-26 17:32:56 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py39 --device-types cpu cu101 cu102 --build-type BUILDKITE --build-base
|
2021-10-26 17:32:56 -07:00
|
|
|
|
|
|
|
- label: ":docker: Build Images: py39 (2/2)"
|
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2021-10-26 17:32:56 -07:00
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py39 --device-types cu110 cu111 cu112 --build-type BUILDKITE --build-base
|
2021-07-22 13:38:57 -07:00
|
|
|
|
2022-05-18 08:48:20 -07:00
|
|
|
- label: ":docker: Build Images: py310"
|
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
|
|
|
- pip install -q docker aws_requests_auth boto3
|
|
|
|
- if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then python .buildkite/copy_files.py --destination docker_login; fi
|
|
|
|
- python ./ci/build/build-docker-images.py --py-versions py310 --device-types cpu --build-type BUILDKITE --build-base
|
|
|
|
|
2021-01-29 15:48:02 -08:00
|
|
|
- label: ":book: Lint"
|
|
|
|
commands:
|
2021-02-05 12:58:07 -08:00
|
|
|
- export LINT=1
|
2022-04-13 18:11:30 +01:00
|
|
|
- ./ci/env/install-dependencies.sh
|
|
|
|
- ./ci/ci.sh lint
|
|
|
|
- ./ci/ci.sh build
|
2021-01-29 15:48:02 -08:00
|
|
|
|
2022-03-29 01:08:53 -07:00
|
|
|
- label: ":book: LinkCheck"
|
|
|
|
commands:
|
|
|
|
- export LINT=1
|
2022-04-13 18:11:30 +01:00
|
|
|
- ./ci/env/install-dependencies.sh
|
|
|
|
- ./ci/ci.sh check_sphinx_links
|
2022-03-29 10:57:03 -07:00
|
|
|
soft_fail: True
|
2022-03-29 01:08:53 -07:00
|
|
|
|
2021-01-29 15:48:02 -08:00
|
|
|
- label: ":java: Java"
|
2021-02-05 12:58:07 -08:00
|
|
|
conditions: ["RAY_CI_JAVA_AFFECTED"]
|
2021-01-29 15:48:02 -08:00
|
|
|
commands:
|
2021-10-08 02:38:37 +09:00
|
|
|
- ./java/test.sh
|
2021-01-29 15:48:02 -08:00
|
|
|
|
2022-01-19 01:26:34 -08:00
|
|
|
- label: ":cpp: Ray CPP Worker"
|
2021-10-29 16:47:54 -07:00
|
|
|
conditions: [ "RAY_CI_CPP_AFFECTED" ]
|
2021-01-29 15:48:02 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- ./ci/ci.sh test_cpp
|
2021-01-29 15:48:02 -08:00
|
|
|
|
2021-01-25 16:05:59 -08:00
|
|
|
- label: ":cpp: Tests"
|
2021-10-29 16:47:54 -07:00
|
|
|
conditions: [ "RAY_CI_CORE_CPP_AFFECTED" ]
|
2021-01-18 00:44:24 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci --config=llvm $(./ci/run/bazel_export_options)
|
2021-01-25 16:05:59 -08:00
|
|
|
--build_tests_only
|
|
|
|
-- //:all -rllib/... -core_worker_test
|
|
|
|
|
|
|
|
- label: ":cpp: Tests (ASAN)"
|
2021-10-29 16:47:54 -07:00
|
|
|
conditions: [ "RAY_CI_CORE_CPP_AFFECTED" ]
|
2021-01-18 17:20:45 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci --config=asan-clang $(./ci/run/bazel_export_options)
|
2021-01-25 16:05:59 -08:00
|
|
|
--build_tests_only
|
|
|
|
--jobs=2
|
|
|
|
-- //:all -//:core_worker_test
|
|
|
|
|
2021-08-17 10:22:03 -07:00
|
|
|
- label: ":cpp: Tests (UBSAN)"
|
2021-10-29 16:47:54 -07:00
|
|
|
conditions: [ "RAY_CI_CORE_CPP_AFFECTED" ]
|
2021-08-17 10:22:03 -07:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci --config=ubsan $(./ci/run/bazel_export_options)
|
2021-08-17 10:22:03 -07:00
|
|
|
--build_tests_only
|
|
|
|
--jobs=2
|
2022-06-05 06:06:57 +00:00
|
|
|
-- //:all -//:core_worker_test -//:logging_test -//:ray_syncer_test
|
2021-08-17 10:22:03 -07:00
|
|
|
|
2021-08-24 00:57:32 -07:00
|
|
|
- label: ":cpp: Tests (TSAN)"
|
2021-10-29 16:47:54 -07:00
|
|
|
conditions: [ "RAY_CI_CORE_CPP_AFFECTED" ]
|
2021-08-24 00:57:32 -07:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci --config=tsan-clang $(./ci/run/bazel_export_options)
|
2021-08-24 00:57:32 -07:00
|
|
|
--build_tests_only
|
|
|
|
--jobs=2
|
|
|
|
-- //:all -//:core_worker_test -//:event_test -//:gcs_actor_manager_test
|
|
|
|
-//:gcs_placement_group_manager_test -//:gcs_placement_group_scheduler_test
|
2022-03-28 21:37:24 -07:00
|
|
|
-//:gcs_server_rpc_test -//:gcs_client_test
|
2021-08-24 00:57:32 -07:00
|
|
|
-//:metric_exporter_client_test -//:stats_test -//:worker_pool_test
|
2022-04-20 14:31:24 -07:00
|
|
|
-//:ray_syncer_test
|
2021-08-24 00:57:32 -07:00
|
|
|
|
2022-03-15 16:32:30 -07:00
|
|
|
- label: ":serverless: Dashboard Tests"
|
2021-02-05 12:58:07 -08:00
|
|
|
conditions:
|
|
|
|
[
|
2021-06-30 01:12:47 +08:00
|
|
|
"RAY_CI_DASHBOARD_AFFECTED",
|
|
|
|
"RAY_CI_PYTHON_AFFECTED",
|
2021-02-05 12:58:07 -08:00
|
|
|
]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2021-02-24 20:41:52 -08:00
|
|
|
- ./dashboard/tests/run_ui_tests.sh
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options) python/ray/dashboard/...
|
2022-03-15 16:32:30 -07:00
|
|
|
- label: ":serverless: Serve Release Tests"
|
|
|
|
conditions:
|
|
|
|
[
|
|
|
|
"RAY_CI_SERVE_AFFECTED",
|
|
|
|
"RAY_CI_PYTHON_AFFECTED",
|
|
|
|
]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- TORCH_VERSION=1.6 ./ci/env/install-dependencies.sh
|
2022-03-15 16:32:30 -07:00
|
|
|
- 'git clone https://github.com/wg/wrk.git /tmp/wrk && pushd /tmp/wrk && make -j && sudo cp wrk /usr/local/bin && popd'
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2021-11-16 08:12:08 -08:00
|
|
|
--test_tag_filters=team:serve
|
|
|
|
release/...
|
2022-03-15 16:32:30 -07:00
|
|
|
- label: ":serverless: Serve Tests"
|
|
|
|
parallelism: 3
|
|
|
|
conditions:
|
|
|
|
[
|
|
|
|
"RAY_CI_SERVE_AFFECTED",
|
|
|
|
"RAY_CI_PYTHON_AFFECTED",
|
|
|
|
]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- TORCH_VERSION=1.6 ./ci/env/install-dependencies.sh
|
2022-03-15 16:32:30 -07:00
|
|
|
- 'git clone https://github.com/wg/wrk.git /tmp/wrk && pushd /tmp/wrk && make -j && sudo cp wrk /usr/local/bin && popd'
|
2022-03-28 21:37:24 -07:00
|
|
|
- >-
|
2022-03-15 16:32:30 -07:00
|
|
|
set -x;
|
2022-04-13 18:11:30 +01:00
|
|
|
python ./ci/run/bazel-sharding.py
|
2022-03-15 16:32:30 -07:00
|
|
|
--exclude_manual
|
|
|
|
--index "\${BUILDKITE_PARALLEL_JOB}" --count "\${BUILDKITE_PARALLEL_JOB_COUNT}"
|
|
|
|
python/ray/serve/...
|
|
|
|
> test_shard.txt
|
|
|
|
- cat test_shard.txt
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2022-03-15 16:32:30 -07:00
|
|
|
--test_tag_filters=-post_wheel_build
|
|
|
|
$(cat test_shard.txt)
|
|
|
|
|
2021-01-25 16:05:59 -08:00
|
|
|
|
2022-05-19 01:42:26 +09:00
|
|
|
- label: ":python: Minimal install 3.6"
|
2021-08-31 15:26:25 +02:00
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-05-19 01:42:26 +09:00
|
|
|
- ./ci/ci.sh test_minimal 3.6
|
|
|
|
|
|
|
|
- label: ":python: Minimal install 3.7"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- ./ci/ci.sh test_minimal 3.7
|
|
|
|
|
|
|
|
- label: ":python: Minimal install 3.8"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- ./ci/ci.sh test_minimal 3.8
|
|
|
|
|
|
|
|
- label: ":python: Minimal install 3.9"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- ./ci/ci.sh test_minimal 3.9
|
2021-12-09 21:14:10 +00:00
|
|
|
|
2022-03-21 22:14:41 -07:00
|
|
|
- label: ":python: Default install"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- ./ci/env/install-default.sh
|
|
|
|
- ./ci/env/env_info.sh
|
|
|
|
- bazel test --test_output=streamed --config=ci --test_env=RAY_DEFAULT=1 $(./ci/run/bazel_export_options)
|
2022-03-21 22:14:41 -07:00
|
|
|
python/ray/dashboard/test_dashboard
|
|
|
|
|
2022-02-16 17:35:02 +00:00
|
|
|
- label: ":python: Release test package unit tests"
|
2022-03-18 11:34:05 +00:00
|
|
|
conditions: ["ALWAYS"]
|
2022-02-16 17:35:02 +00:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-02-16 17:35:02 +00:00
|
|
|
- pip install -e release/
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2022-02-16 17:35:02 +00:00
|
|
|
--build_tests_only
|
|
|
|
--test_tag_filters=release_unit
|
|
|
|
release/...
|
2022-01-05 10:49:14 -08:00
|
|
|
- label: ":python: (Small & Client)"
|
2021-02-05 12:58:07 -08:00
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
2021-01-25 16:05:59 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-06-02 02:41:38 +00:00
|
|
|
- bash ./ci/ci.sh prepare_docker
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2022-01-05 10:49:14 -08:00
|
|
|
--test_tag_filters=client_tests,small_size_python_tests
|
|
|
|
-- python/ray/tests/...
|
2022-06-02 02:41:38 +00:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
|
|
|
--test_tag_filters=ray_ha
|
|
|
|
--test_env=DOCKER_HOST=tcp://docker:2376
|
|
|
|
--test_env=DOCKER_TLS_VERIFY=1
|
|
|
|
--test_env=DOCKER_CERT_PATH=/certs/client
|
|
|
|
--test_env=DOCKER_TLS_CERTDIR=/certs
|
|
|
|
-- python/ray/tests/...
|
2022-01-05 10:49:14 -08:00
|
|
|
- label: ":python: (Large)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
parallelism: 3
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- . ./ci/ci.sh test_large
|
2021-01-25 16:05:59 -08:00
|
|
|
- label: ":python: (Medium A-J)"
|
2021-02-05 12:58:07 -08:00
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
2021-01-25 16:05:59 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2021-12-11 01:03:17 -08:00
|
|
|
--test_tag_filters=-kubernetes,medium_size_python_tests_a_to_j
|
2021-01-25 16:05:59 -08:00
|
|
|
python/ray/tests/...
|
|
|
|
- label: ":python: (Medium K-Z)"
|
2021-02-05 12:58:07 -08:00
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
2021-01-25 16:05:59 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2021-12-11 01:03:17 -08:00
|
|
|
--test_tag_filters=-kubernetes,medium_size_python_tests_k_to_z
|
2021-01-25 16:05:59 -08:00
|
|
|
python/ray/tests/...
|
2022-05-19 21:46:55 -07:00
|
|
|
- label: ":redis: (External Redis) (Small & Client)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci $(./scripts/bazel_export_options)
|
|
|
|
--test_tag_filters=client_tests,small_size_python_tests
|
|
|
|
--test_env=TEST_EXTERNAL_REDIS=1
|
|
|
|
-- python/ray/tests/...
|
|
|
|
- label: ":redis: (External Redis) (Large)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
parallelism: 3
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- TEST_EXTERNAL_REDIS=1 . ./ci/ci.sh test_large
|
|
|
|
- label: ":redis: (External Redis) (Medium A-J)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci $(./scripts/bazel_export_options)
|
|
|
|
--test_tag_filters=-kubernetes,medium_size_python_tests_a_to_j
|
|
|
|
--test_env=TEST_EXTERNAL_REDIS=1
|
|
|
|
-- //python/ray/tests/...
|
|
|
|
- label: ":redis: (External Redis) (Medium K-Z)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- bazel test --config=ci $(./scripts/bazel_export_options)
|
|
|
|
--test_tag_filters=-kubernetes,medium_size_python_tests_k_to_z
|
|
|
|
--test_env=TEST_EXTERNAL_REDIS=1
|
|
|
|
-- //python/ray/tests/...
|
2021-11-03 11:58:16 -07:00
|
|
|
- label: ":python: Debug Test"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
2021-08-05 17:58:19 -07:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2021-08-05 17:58:19 -07:00
|
|
|
- pip uninstall -y ray
|
2022-04-13 18:11:30 +01:00
|
|
|
- RAY_DEBUG_BUILD=debug ./ci/ci.sh build
|
|
|
|
- bazel test --config=ci-debug $(./ci/run/bazel_export_options)
|
2021-12-11 01:03:17 -08:00
|
|
|
--test_tag_filters=-kubernetes,debug_tests
|
2021-08-05 17:58:19 -07:00
|
|
|
python/ray/tests/...
|
2021-11-03 11:58:16 -07:00
|
|
|
- label: ":python: (ASAN tests)"
|
2021-08-17 10:21:41 -07:00
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
|
|
|
- RLLIB_TESTING=1 ./ci/env/install-dependencies.sh
|
2022-05-18 18:16:39 -07:00
|
|
|
- pip install "grpcio >= 1.28.1, <= 1.43.0"
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci --config=asan $(./ci/run/bazel_export_options)
|
2021-08-17 10:21:41 -07:00
|
|
|
--config=asan-buildkite
|
2021-12-11 01:03:17 -08:00
|
|
|
--test_tag_filters=-kubernetes,asan_tests
|
2021-08-17 10:21:41 -07:00
|
|
|
--test_env=CONDA_EXE
|
|
|
|
--test_env=CONDA_PYTHON_EXE
|
|
|
|
--test_env=CONDA_SHLVL
|
|
|
|
--test_env=CONDA_PREFIX
|
|
|
|
--test_env=CONDA_DEFAULT_ENV
|
|
|
|
python/ray/tests/...
|
2022-02-17 15:34:02 -08:00
|
|
|
|
2022-05-10 13:12:22 -07:00
|
|
|
- label: ":construction: :python: (syncer) (Small & Client)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
2022-05-10 23:23:50 -07:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-05-10 13:12:22 -07:00
|
|
|
- bazel test --config=ci $(./scripts/bazel_export_options)
|
|
|
|
--test_tag_filters=client_tests,small_size_python_tests
|
|
|
|
--test_env=RAY_use_ray_syncer=true
|
|
|
|
-- python/ray/tests/...
|
|
|
|
- label: ":construction: :python: (syncer) (Large)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
parallelism: 3
|
|
|
|
commands:
|
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-05-13 13:48:14 -07:00
|
|
|
- RAY_use_ray_syncer=true . ./ci/ci.sh test_large --define=RAY_STAGING_TESTS=1
|
2022-05-10 13:12:22 -07:00
|
|
|
- label: ":construction: :python: (syncer) (Medium A-J)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
2022-05-10 23:23:50 -07:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-05-10 13:12:22 -07:00
|
|
|
- bazel test --config=ci $(./scripts/bazel_export_options)
|
|
|
|
--test_tag_filters=-kubernetes,medium_size_python_tests_a_to_j
|
2022-05-13 13:48:14 -07:00
|
|
|
--test_env=RAY_use_ray_syncer=true --define=RAY_STAGING_TESTS=1
|
|
|
|
-- python/ray/tests/... -//python/ray/tests:test_actor_resources
|
2022-05-10 13:12:22 -07:00
|
|
|
- label: ":construction: :python: (syncer) (Medium K-Z)"
|
|
|
|
conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
commands:
|
2022-05-10 23:23:50 -07:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-05-10 13:12:22 -07:00
|
|
|
- bazel test --config=ci $(./scripts/bazel_export_options)
|
|
|
|
--test_tag_filters=-kubernetes,medium_size_python_tests_k_to_z
|
2022-05-13 13:48:14 -07:00
|
|
|
--test_env=RAY_use_ray_syncer=true --define=RAY_STAGING_TESTS=1
|
2022-05-10 13:12:22 -07:00
|
|
|
python/ray/tests/...
|
|
|
|
|
|
|
|
|
2022-02-17 15:34:02 -08:00
|
|
|
# https://github.com/ray-project/ray/issues/22460
|
|
|
|
#- label: ":python: (Privileged test)"
|
|
|
|
#conditions: ["RAY_CI_PYTHON_AFFECTED"]
|
|
|
|
#commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
#- LINUX_WHEELS=1 ./ci/ci.sh build
|
2022-02-17 15:34:02 -08:00
|
|
|
#- pip install docker
|
|
|
|
#We build image ray-worker-container:nightly-py36-cpu which have installed podman,but not push it.
|
|
|
|
#And we save this image to a tarball, so that we can load it to podman image storage in the
|
|
|
|
#nested-container which run tests. And in this nested-container, Raylet will start ray worker
|
|
|
|
#process in double-nested-container.
|
2022-04-13 18:11:30 +01:00
|
|
|
#- python ./ci/build/build-docker-images.py --py-versions py36 --device-types cpu --build-type BUILDKITE --only-build-worker-container
|
2022-02-17 15:34:02 -08:00
|
|
|
#- mkdir /ray-mount/containers
|
|
|
|
#- docker save -o /ray-mount/containers/images.tar rayproject/ray-worker-container:nightly-py36-cpu
|
|
|
|
#- docker run --rm --privileged -v /ray/containers:/var/lib/containers -v /ray:/ray --entrypoint /bin/bash
|
2022-04-13 18:11:30 +01:00
|
|
|
#rayproject/ray-worker-container:nightly-py36-cpu /ray/ci/build/test-worker-in-container.sh
|
2021-01-25 16:05:59 -08:00
|
|
|
|
2021-06-16 03:50:21 +02:00
|
|
|
- label: ":octopus: Tune soft imports test"
|
|
|
|
conditions: ["RAY_CI_TUNE_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2021-06-16 03:50:21 +02:00
|
|
|
# no TUNE_TESTING=1 on purpose
|
2022-04-13 18:11:30 +01:00
|
|
|
- ./ci/env/install-dependencies.sh
|
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=soft_imports python/ray/tune/...
|
2022-02-11 10:09:00 -08:00
|
|
|
|
2022-06-08 21:34:18 -07:00
|
|
|
# Test to see if Train can be used without torch, tf, etc. installed
|
2022-02-11 10:09:00 -08:00
|
|
|
- label: ":steam_locomotive: Train minimal install"
|
|
|
|
conditions: ["RAY_CI_TRAIN_AFFECTED"]
|
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-06-08 21:34:18 -07:00
|
|
|
- TRAIN_MINIMAL_INSTALL=1 ./ci/env/install-minimal.sh
|
2022-04-13 18:11:30 +01:00
|
|
|
- ./ci/env/env_info.sh
|
|
|
|
- python ./ci/env/check_minimal_install.py
|
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=minimal python/ray/train/...
|
2022-02-24 13:11:38 -08:00
|
|
|
|
|
|
|
- label: ":kubernetes: operator"
|
2022-03-23 18:18:48 -07:00
|
|
|
conditions: ["RAY_CI_LINUX_WHEELS_AFFECTED"]
|
2022-02-24 13:11:38 -08:00
|
|
|
commands:
|
2022-04-13 18:11:30 +01:00
|
|
|
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
|
2022-04-27 18:02:12 -07:00
|
|
|
- echo "--- Setting up Python 3.7 environment."
|
|
|
|
- PYTHON=3.7 ./ci/env/install-dependencies.sh
|
|
|
|
# Specifying PYTHON=3.7 above somehow messes up the Ray install.
|
|
|
|
# Uninstall and re-install Ray so that we can use Ray Client.
|
|
|
|
# (Remove thirdparty_files to sidestep an issue with psutil.)
|
|
|
|
- pip uninstall -y ray && rm -rf /ray/python/ray/thirdparty_files
|
|
|
|
- pip install -e /ray/python
|
2022-04-21 14:54:37 -07:00
|
|
|
- echo "--- Setting up local kind cluster."
|
2022-04-13 18:11:30 +01:00
|
|
|
- ./ci/k8s/prep-k8s-environment.sh
|
2022-04-21 14:54:37 -07:00
|
|
|
- echo "--- Building py37-cpu Ray image for the test."
|
2022-04-13 18:11:30 +01:00
|
|
|
- LINUX_WHEELS=1 ./ci/ci.sh build
|
2022-03-23 18:18:48 -07:00
|
|
|
- pip install -q docker
|
2022-04-13 18:11:30 +01:00
|
|
|
- python ci/build/build-docker-images.py --py-versions py37 --device-types cpu --build-type LOCAL --build-base
|
2022-03-23 18:18:48 -07:00
|
|
|
# Tag the image built in the last step. We want to be sure to distinguish the image from the real Ray nightly.
|
|
|
|
- docker tag rayproject/ray:nightly-py37-cpu ray-ci:kuberay-test
|
|
|
|
# Load the image into the kind node.
|
|
|
|
- kind load docker-image ray-ci:kuberay-test
|
2022-04-21 14:54:37 -07:00
|
|
|
- echo "--- Running the test."
|
2022-04-13 18:11:30 +01:00
|
|
|
- bazel test --config=ci $(./ci/run/bazel_export_options)
|
2022-03-23 18:18:48 -07:00
|
|
|
--test_tag_filters=kuberay_operator
|
|
|
|
--test_env=RAY_IMAGE=docker.io/library/ray-ci:kuberay-test
|
2022-04-21 14:54:37 -07:00
|
|
|
--test_env=PULL_POLICY=IfNotPresent
|
2022-03-23 18:18:48 -07:00
|
|
|
--test_env=KUBECONFIG=/root/.kube/config
|
|
|
|
python/ray/tests/...
|