Skip to content

Commit 21ffca5

Browse files
committed
Merge branch 'master' into fix-detached-actor-killed-on-owner-exit
2 parents 3f91689 + 0e53e1d commit 21ffca5

File tree

1,732 files changed

+63172
-22891
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,732 files changed

+63172
-22891
lines changed

.buildkite/BUILD.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("@rules_python//python:defs.bzl", "py_binary")
2+
load("@py_deps_buildkite//:requirements.bzl", ci_require = "requirement")
3+
4+
py_binary(
5+
name = "copy_files",
6+
srcs = ["copy_files.py"],
7+
visibility = ["//visibility:private"],
8+
deps = [
9+
ci_require("boto3"),
10+
ci_require("aws_requests_auth"),
11+
],
12+
)

.buildkite/build.rayci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ steps:
33
- label: ":tapioca: build: wheel {{matrix}} (x86_64)"
44
key: linux_wheels
55
tags:
6+
- release_wheels
67
- linux_wheels
78
- oss
89
instance_type: large
@@ -22,7 +23,7 @@ steps:
2223
tags:
2324
- linux_wheels
2425
- oss
25-
instance_type: medium
26+
instance_type: large
2627
commands:
2728
- bazel run //ci/ray_ci:build_in_docker -- wheel --build-type debug --upload
2829
depends_on:
@@ -55,6 +56,7 @@ steps:
5556
- skip-on-premerge
5657

5758
- label: ":tapioca: build: ray py{{matrix}} docker (x86_64)"
59+
key: ray_images
5860
tags:
5961
- python_dependencies
6062
- docker
@@ -126,3 +128,16 @@ steps:
126128
- docker run -ti --rm rayproject/ray:dev python -c "import ray; print(ray.__version__)"
127129
depends_on:
128130
- forge
131+
132+
- label: ":tapioca: generate nightly indexes"
133+
instance_type: small
134+
tags:
135+
- docker
136+
- oss
137+
- skip-on-premerge
138+
commands:
139+
- bazel run //ci/ray_ci/automation:generate_index -- --prefix nightly
140+
depends_on:
141+
- ray_images
142+
- ray_images_aarch64
143+
- forge

.buildkite/core.rayci.yml

Lines changed: 72 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,20 @@ steps:
5656
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... //python/ray/_common/tests/... //python/ray/dag/... //python/ray/autoscaler/v2/... core
5757
--install-mask all-ray-libraries
5858
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
59-
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,use_all_core,multi_gpu
59+
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,multi_gpu,spark_on_ray,ray_client,compiled_graphs,dask
60+
--install-mask all-ray-libraries
61+
62+
- label: ":ray: core: cgraph python tests"
63+
tags:
64+
- compiled_graphs
65+
instance_type: large
66+
commands:
67+
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/dag/... core
68+
--install-mask all-ray-libraries
69+
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
70+
--only-tags compiled_graphs
71+
--except-tags multi_gpu
6072
--install-mask all-ray-libraries
61-
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... //python/ray/dag/... //python/ray/autoscaler/v2/... core
62-
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}"
63-
--only-tags use_all_core --skip-ray-installation
6473

6574
- label: ":ray: core: python {{matrix.python}} tests ({{matrix.worker_id}})"
6675
if: build.pull_request.labels includes "continuous-build" || pipeline.id == "0189e759-8c96-4302-b6b5-b4274406bf89" || pipeline.id == "018f4f1e-1b73-4906-9802-92422e3badaa"
@@ -73,18 +82,23 @@ steps:
7382
--install-mask all-ray-libraries
7483
--workers 4 --worker-id "{{matrix.worker_id}}" --parallelism-per-worker 3
7584
--python-version {{matrix.python}}
76-
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,use_all_core,multi_gpu
77-
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... //python/ray/dag/... //python/ray/autoscaler/v2/... core
78-
--install-mask all-ray-libraries
79-
--workers 4 --worker-id "{{matrix.worker_id}}" --parallelism-per-worker 3
80-
--python-version {{matrix.python}}
81-
--only-tags use_all_core --skip-ray-installation
85+
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,multi_gpu,spark_on_ray,ray_client,dask
8286
depends_on: corebuild-multipy
8387
matrix:
8488
setup:
8589
python: ["3.12"]
8690
worker_id: ["0", "1", "2", "3"]
8791

92+
- label: ":ray: core: ray client tests"
93+
tags:
94+
- ray_client
95+
instance_type: large
96+
commands:
97+
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core
98+
--install-mask all-ray-libraries
99+
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
100+
--only-tags ray_client
101+
88102
- label: ":ray: core: redis tests"
89103
tags:
90104
- python
@@ -97,10 +111,7 @@ steps:
97111
--install-mask all-ray-libraries
98112
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3
99113
--test-env=TEST_EXTERNAL_REDIS=1
100-
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,use_all_core,multi_gpu
101-
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... //python/ray/dag/... //python/ray/autoscaler/v2/... core
102-
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}"
103-
--only-tags use_all_core --skip-ray-installation
114+
--except-tags debug_tests,asan_tests,post_wheel_build,ha_integration,mem_pressure,tmpfs,container,manual,multi_gpu,spark_on_ray,ray_client,dask
104115

105116
- label: ":ray: core: memory pressure tests"
106117
tags:
@@ -176,8 +187,12 @@ steps:
176187
--except-tags gpu
177188
--skip-ray-installation
178189

179-
- label: ":ray: core: data tests"
180-
tags: python
190+
- label: ":ray: core: dask & modin tests"
191+
tags:
192+
# These tests are only triggered on premerge if there are changes under
193+
# `ray/util/dask/`. This is not technically related to modin, but modin tests can
194+
# run postmerge-only and are too small for their own build.
195+
- dask
181196
instance_type: medium
182197
commands:
183198
- bazel run //ci/ray_ci:test_in_docker --
@@ -202,8 +217,10 @@ steps:
202217
"$${RAYCI_WORK_REPO}":"$${RAYCI_BUILD_ID}"-corebuild /bin/bash -iecuo pipefail
203218
"./python/ray/dashboard/tests/run_ui_tests.sh"
204219

205-
- label: ":ray: core: debug test"
206-
tags: python
220+
- label: ":ray: core: debug tests"
221+
tags:
222+
- python
223+
- skip-on-premerge
207224
instance_type: medium
208225
commands:
209226
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core
@@ -216,6 +233,7 @@ steps:
216233
- label: ":ray: core: asan tests"
217234
tags:
218235
- python
236+
- skip-on-premerge
219237
instance_type: large
220238
commands:
221239
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core
@@ -306,12 +324,21 @@ steps:
306324
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --except-tags=cgroup --build-type clang
307325
--cache-test-results --parallelism-per-worker 2
308326

327+
# block on premerge and microcheck
328+
- block: "run cpp sanitizer tests"
329+
if: build.env("BUILDKITE_PIPELINE_ID") == "0189942e-0876-4b8f-80a4-617f988ec59b" || build.env("BUILDKITE_PIPELINE_ID") == "018f4f1e-1b73-4906-9802-92422e3badaa"
330+
key: block-core-cpp-sanitizer-tests
331+
depends_on: []
332+
309333
- label: ":ray: core: cpp asan tests"
310334
tags: core_cpp
311335
instance_type: medium
312336
commands:
313337
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core --except-tags=cgroup
314338
--build-type asan-clang --cache-test-results --parallelism-per-worker 2
339+
depends_on:
340+
- block-core-cpp-sanitizer-tests
341+
- corebuild
315342

316343
- label: ":ray: core: cpp ubsan tests"
317344
tags: core_cpp
@@ -320,6 +347,9 @@ steps:
320347
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core
321348
--build-type ubsan --except-tags no_ubsan,cgroup
322349
--cache-test-results --parallelism-per-worker 2
350+
depends_on:
351+
- block-core-cpp-sanitizer-tests
352+
- corebuild
323353

324354
- label: ":ray: core: cpp tsan tests"
325355
tags: core_cpp
@@ -328,17 +358,23 @@ steps:
328358
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core
329359
--build-type tsan-clang --except-tags no_tsan,cgroup
330360
--cache-test-results --parallelism-per-worker 2
361+
depends_on:
362+
- block-core-cpp-sanitizer-tests
363+
- corebuild
331364

332365
- label: ":ray: core: flaky cpp tests"
333366
key: core_flaky_cpp_tests
334367
tags:
335368
- python
369+
- flaky
336370
- skip-on-premerge
337371
instance_type: large
338372
soft_fail: true
339373
commands:
340374
- bazel run //ci/ray_ci:test_in_docker -- //:all //src/... core
341375
--run-flaky-tests --build-type clang
376+
depends_on:
377+
- corebuild
342378

343379
- label: ":ray: core: flaky tests"
344380
key: core_flaky_tests
@@ -353,6 +389,8 @@ steps:
353389
--install-mask all-ray-libraries
354390
--run-flaky-tests
355391
--except-tags multi_gpu
392+
depends_on:
393+
- corebuild
356394

357395
- label: ":ray: core: flaky gpu tests"
358396
key: core_flaky_gpu_tests
@@ -417,6 +455,21 @@ steps:
417455
- raycpubase
418456
- corebuild
419457

458+
- label: ":core: core: spark-on-ray tests"
459+
tags:
460+
- spark_on_ray
461+
instance_type: medium
462+
commands:
463+
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core
464+
--build-type debug
465+
--test-env=RAY_ON_SPARK_BACKGROUND_JOB_STARTUP_WAIT=1
466+
--test-env=RAY_ON_SPARK_RAY_WORKER_NODE_STARTUP_INTERVAL=5
467+
--parallelism-per-worker 3
468+
--only-tags spark_on_ray
469+
--except-tags kubernetes
470+
depends_on:
471+
- corebuild
472+
420473
# block on premerge and microcheck
421474
- block: "run multi gpu tests"
422475
if: build.env("BUILDKITE_PIPELINE_ID") == "0189942e-0876-4b8f-80a4-617f988ec59b" || build.env("BUILDKITE_PIPELINE_ID") == "018f4f1e-1b73-4906-9802-92422e3badaa"
@@ -426,7 +479,7 @@ steps:
426479
- label: ":ray: core: multi gpu tests"
427480
key: core-multi-gpu-tests
428481
tags:
429-
- accelerated_dag
482+
- compiled_graphs
430483
- gpu
431484
instance_type: gpu-large
432485
# we're running some cgraph doc tests here as well since they need gpus

.buildkite/lint.rayci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ steps:
2424
- test_coverage
2525
- documentation_style
2626

27+
- label: ":lint-roller: pre-commit pydoclint"
28+
key: pydoclint-small
29+
tags:
30+
- oss
31+
- lint
32+
- always
33+
depends_on:
34+
- forge
35+
commands:
36+
- ./ci/lint/lint.sh pre_commit_pydoclint
37+
2738
- label: ":lint-roller: lint: {{matrix}}"
2839
tags:
2940
- oss

.buildkite/linux_aarch64.rayci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ steps:
5959
- label: ":tapioca: build: wheel {{matrix}} (aarch64)"
6060
tags:
6161
- linux_wheels
62+
- release_wheels
6263
- oss
6364
instance_type: medium-arm64
6465
commands:
@@ -75,6 +76,7 @@ steps:
7576
job_env: forge-aarch64
7677

7778
- label: ":tapioca: build: ray py{{matrix}} docker (aarch64)"
79+
key: ray_images_aarch64
7880
tags:
7981
- python_dependencies
8082
- docker

.buildkite/macos/macos.rayci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ steps:
1212
tags:
1313
- macos_wheels
1414
- python_dependencies
15+
- release_wheels
1516
job_env: MACOS
1617
instance_type: macos
1718
commands:
@@ -23,6 +24,7 @@ steps:
2324
tags:
2425
- macos_wheels
2526
- python_dependencies
27+
- release_wheels
2628
job_env: MACOS
2729
instance_type: macos-arm64
2830
commands:

.buildkite/ml.rayci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ steps:
148148
commands:
149149
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/tune/... ml
150150
--parallelism-per-worker 3
151-
--except-tags soft_imports,gpu_only,rllib
151+
--except-tags doctest,soft_imports,gpu_only,rllib
152152
depends_on: [ "mlbuild", "forge" ]
153153

154154
- label: ":train: ml: tune soft import tests"
@@ -166,7 +166,7 @@ steps:
166166
commands:
167167
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/air/... ml
168168
--parallelism-per-worker 3
169-
--except-tags gpu
169+
--except-tags gpu,doctest
170170
- bazel run //ci/ray_ci:test_in_docker -- //python/ray/data/... ml
171171
--parallelism-per-worker 3
172172
--only-tags ray_air

.buildkite/others.rayci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ steps:
7878
- bazel run //ci/ray_ci/automation:determine_microcheck_tests -- {{matrix}} 100 --test-prefix windows:__ --consider-master-branch --production
7979
matrix:
8080
- "core"
81-
- "serverless"
8281
- "serve"
8382
- "data"
8483
- "ml"

.buildkite/release-automation/forge_arm64.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ apt-get install -y curl zip clang-12
1515

1616
ln -s /usr/bin/clang-12 /usr/bin/clang
1717

18-
# Install miniconda
19-
curl -sfL https://repo.anaconda.com/miniconda/Miniconda3-py311_24.4.0-0-Linux-aarch64.sh > /tmp/miniconda.sh
20-
bash /tmp/miniconda.sh -b -u -p /usr/local/bin/miniconda3
21-
rm /tmp/miniconda.sh
22-
/usr/local/bin/miniconda3/bin/conda init bash
18+
# Install miniforge3
19+
curl -sfL https://github.com/conda-forge/miniforge/releases/download/25.3.0-1/Miniforge3-25.3.0-1-Linux-aarch64.sh > /tmp/miniforge3.sh
20+
bash /tmp/miniforge3.sh -b -u -p /usr/local/bin/miniforge3
21+
rm /tmp/miniforge3.sh
22+
/usr/local/bin/miniforge3/bin/conda init bash
2323

2424
# Install Bazelisk
2525
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-arm64 --output /usr/local/bin/bazelisk

.buildkite/release-automation/forge_x86_64.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ addgroup --gid 993 docker
1919

2020
ln -s /usr/bin/clang-12 /usr/bin/clang
2121

22-
# Install miniconda
23-
curl -sfL https://repo.anaconda.com/miniconda/Miniconda3-py311_24.4.0-0-Linux-x86_64.sh > /tmp/miniconda.sh
24-
bash /tmp/miniconda.sh -b -u -p /usr/local/bin/miniconda3
25-
rm /tmp/miniconda.sh
26-
/usr/local/bin/miniconda3/bin/conda init bash
22+
# Install miniforge3
23+
curl -sfL https://github.com/conda-forge/miniforge/releases/download/25.3.0-1/Miniforge3-25.3.0-1-Linux-x86_64.sh > /tmp/miniforge3.sh
24+
bash /tmp/miniforge3.sh -b -u -p /usr/local/bin/miniforge3
25+
rm /tmp/miniforge3.sh
26+
/usr/local/bin/miniforge3/bin/conda init bash
2727

2828
# Install Bazelisk
2929
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 --output /usr/local/bin/bazelisk

.buildkite/release-automation/verify-linux-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ fi
1414

1515
export PYTHON_VERSION
1616

17-
export PATH="/usr/local/bin/miniconda3/bin:${PATH}"
18-
source "/usr/local/bin/miniconda3/etc/profile.d/conda.sh"
17+
export PATH="/usr/local/bin/miniforge3/bin:${PATH}"
18+
source "/usr/local/bin/miniforge3/etc/profile.d/conda.sh"
1919

2020
conda create -n rayio python="${PYTHON_VERSION}" -y
2121

0 commit comments

Comments
 (0)