Skip to content

Commit

Permalink
Refresh Ray to v2.9.2 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archana-Shinde1 authored Apr 16, 2024
1 parent 453e688 commit 053e66b
Show file tree
Hide file tree
Showing 17 changed files with 414 additions and 539 deletions.
4 changes: 2 additions & 2 deletions config/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
c_compiler_version:
- 8.* #[x86_64]
- 11.2.* #[x86_64]
cxx_compiler_version:
- 8.* #[x86_64]
- 11.2.* #[x86_64]
2 changes: 1 addition & 1 deletion recipe/build-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export SKIP_THIRDPARTY_INSTALL=1
grep -lR ELF build/ | xargs chmod +w

# now install the thing so conda could pick it up
"${PYTHON}" setup.py install
"${PYTHON}" setup.py install --single-version-externally-managed --root=/

# now clean everything up so subsequent builds (for potentially
# different Python version) do not stumble on some after-effects
Expand Down
11 changes: 11 additions & 0 deletions recipe/build-default.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -xe

cd python/ray/dashboard/client
npm install
npm ci
npm run build
# not sure why this seems to get copied on windows but not linux...
mkdir -p $SP_DIR/ray/dashboard/client # [not win]
cp -R ./build $SP_DIR/ray/dashboard/client/build # [not win]

60 changes: 25 additions & 35 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "2.6.3" %}
{% set version = "2.9.2" %}

package:
name: ray-packages
Expand All @@ -8,16 +8,18 @@ source:
git_url: https://github.com/ray-project/ray
git_rev: ray-{{ version }}
patches:
- patches/0002-Redis-deps-now-build-but-do-not-link.patch
- patches/0001-add-name-attribute-for-googletest.patch
- patches/0002-patch-redis-for-ar-ranlib.patch
- patches/0007-Update-skylib-commit.patch
- patches/0003-Disable-making-non-core-entry-scripts.patch
- patches/0004-Remove-all-dependencies-from-setup.py.patch
- patches/0005-Ignore-warnings-in-event.cc-and-logging.cc.patch
- patches/0006-Add-bazel-linkopts-libs.patch
- patches/0009-fixed-grpc-issue.patch
- patches/0010-Use-rules_perl-which-is-fixed-for-ppc.patch
- patches/0011-Fixed-compilation-error.patch
- patches/0012-Changed-min-bazel-version-to-5.3.patch
- patches/0013-Added-patch-for-rules_python-on-ppc64le.patch #[ppc64le]
- patches/0014-allow-builds-with-root-user.patch #[ppc64le]
# - patches/0014-allow-builds-with-root-user.patch #[ppc64le]

build:
number: 1
Expand All @@ -35,8 +37,8 @@ outputs:
- python {{ python }}
run:
- python {{ python }}
- pydantic {{ pydantic }}
- {{ pin_subpackage('ray-air', exact=True) }}
- ray-dashboard =={{ version }}=*_{{ PKG_BUILDNUM }}
- {{ pin_subpackage('ray-default', exact=True) }}
- {{ pin_subpackage('ray-client', exact=True) }}
- {{ pin_subpackage('ray-data', exact=True) }}
Expand Down Expand Up @@ -110,6 +112,7 @@ outputs:
- python {{ python }}
run:
- python {{ python }}
- fsspec {{ fsspec }}
- {{ pin_subpackage('ray-data', exact=True) }}
- {{ pin_subpackage('ray-serve', exact=True) }}
- {{ pin_subpackage('ray-train', exact=True) }}
Expand All @@ -119,27 +122,30 @@ outputs:
- ray.air

- name: ray-default
script: build-default.sh # [not win]
requirements:
build:
- nodejs
host:
- nodejs
- python {{ python }}
run:
- python {{ python }}
- {{ pin_subpackage('ray-core', exact=True) }}
- ray-dashboard =={{ version }}=*_{{ PKG_BUILDNUM }}
- aiohttp >=3.7
- aiohttp-cors
- colorful
# gpustat-0.6.0 has a dependency which does not exist on Windows;
# skip it there until gpustat is fixed as it is optional
- gpustat # [not win]
- jsonschema
- requests {{ requests }}
- opencensus
- prometheus_client >=0.7.1
- requests {{ requests }}
- smart_open
- py-spy >=0.2.0
- pydantic
- pydantic {{ pydantic }}
- typing-extensions {{ typing_extensions }}
- virtualenv >=20.0.24,<20.21.1

test:
Expand All @@ -149,30 +155,6 @@ outputs:
# init-code seemingly depends on platform or other ambient things;
# the following doesn't get triggered in CI, but was a problem in
# https://github.com/conda-forge/ray-packages-feedstock/issues/16
- ray._private.metrics_agent

- name: ray-dashboard
build:
script:
- cd python/ray/dashboard/client
- npm install
- npm ci
- npm run build
# not sure why this seems to get copied on windows but not linux...
- mkdir -p $SP_DIR/ray/dashboard/client # [not win]
- cp -R ./build $SP_DIR/ray/dashboard/client/build # [not win]
requirements:
build:
- nodejs
host:
- nodejs
- python {{ python }}
run:
- python {{ python }}
- {{ pin_subpackage('ray-core', exact=True) }}
- typing-extensions {{ typing_extensions }}
test:
imports:
- ray.dashboard
commands:
- python -c "import ray; ray.init(include_dashboard=True)"
Expand Down Expand Up @@ -201,7 +183,7 @@ outputs:
- pandas
- numpy {{ numpy }}
- pyarrow {{ arrow }}
- fsspec
- fsspec {{ fsspec }}
test:
imports:
- ray.data
Expand All @@ -225,8 +207,13 @@ outputs:
- tensorflow-base {{ tensorflow }}
- keras {{ keras }}
- rich
- openblas {{ openblas }}
- typer
- ml_dtypes {{ ml_dtypes }}
test:
requires:
- scipy {{ scipy }}
- openblas {{ openblas }}
imports:
- ray.rllib
commands:
Expand All @@ -245,9 +232,10 @@ outputs:
- {{ pin_subpackage('ray-default', exact=True) }}
- uvicorn
- requests {{ requests }}
- starlette 0.25.0
- fastapi
- starlette ==0.25.0
- fastapi ==0.92.0
- aiorwlock
- fsspec {{ fsspec }}
test:
imports:
- ray.serve
Expand All @@ -262,6 +250,7 @@ outputs:
run:
- python {{ python }}
- {{ pin_subpackage('ray-default', exact=True) }}
- fsspec {{ fsspec }}
- pandas
- requests {{ requests }}
- pyarrow {{ arrow }}
Expand All @@ -275,6 +264,7 @@ outputs:
host:
- python
run:
- fsspec {{ fsspec }}
- python
- {{ pin_subpackage('ray-tune', exact=True) }}
test:
Expand Down
32 changes: 0 additions & 32 deletions recipe/patches/0001-Do-not-force-pickle5-in-sys.path.patch

This file was deleted.

24 changes: 24 additions & 0 deletions recipe/patches/0001-add-name-attribute-for-googletest.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 84b18ff1a2b5c6b83e6763425d428d7a40b4230a Mon Sep 17 00:00:00 2001
From: ArchanaShinde1 <archana.shinde2504@gmail.com>
Date: Wed, 13 Mar 2024 07:06:58 +0000
Subject: [PATCH] add name attribute for googletest

---
bazel/ray_deps_setup.bzl | 1 +
1 file changed, 1 insertion(+)

diff --git a/bazel/ray_deps_setup.bzl b/bazel/ray_deps_setup.bzl
index f91eb303c4..25e2d412c1 100644
--- a/bazel/ray_deps_setup.bzl
+++ b/bazel/ray_deps_setup.bzl
@@ -173,6 +173,7 @@ def ray_deps_setup():
)

auto_http_archive(
+ name = "com_google_googletest",
url = "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz",
sha256 = "ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363",
)
--
2.40.1

Loading

0 comments on commit 053e66b

Please sign in to comment.