-
Notifications
You must be signed in to change notification settings - Fork 7k
[deps][ci] Creating depset for docs & updating pydantic doc ver #57947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 20 commits
1937054
d42ea10
34b078d
34b7430
4594163
bbf4906
2d514a7
a71114b
16adde9
0f977d9
ab72f73
1132033
7d80ff4
eea5391
30733c7
d8db64d
e63d4bb
06d9534
8df0368
47d1fa7
6a9601a
ab2ec89
c72eded
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,3 +47,12 @@ steps: | |
| - bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/release_multimodal_inference_benchmarks_tests.depsets.yaml --check | ||
| job_env: manylinux | ||
| depends_on: manylinux | ||
|
|
||
| - label: ":tapioca: build: raydepsets: compile doc dependencies" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should think about merging some of those into one single test job. those are rather fast checks, they do not justify the overhead of spinning up separate test job instances.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sounds good to me |
||
| key: raydepsets_compile_doc_dependencies | ||
| tags: always | ||
| instance_type: medium | ||
| commands: | ||
| - bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/docs.depsets.yaml --check | ||
| job_env: manylinux | ||
| depends_on: manylinux | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,4 +20,4 @@ sphinx: | |
| # https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
| python: | ||
| install: | ||
| - requirements: doc/requirements-doc.txt | ||
| - requirements: python/deplocks/docs/docbuild_depset_py3.12.lock | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. beautiful! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,10 +7,12 @@ FROM $DOCKER_IMAGE_RAY_DASHBOARD AS ray_dashboard | |
|
|
||
| FROM $DOCKER_IMAGE_BASE_BUILD | ||
|
|
||
| SHELL ["/bin/bash", "-ice"] | ||
|
|
||
| COPY . . | ||
|
|
||
| RUN mv python/deplocks/docs/docbuild_depset_py${PYTHON}.lock python_depset.lock | ||
|
||
|
|
||
| SHELL ["/bin/bash", "-ice"] | ||
|
|
||
| RUN --mount=type=bind,from=ray_core,target=/mnt/ray-core \ | ||
| --mount=type=bind,from=ray_dashboard,target=/mnt/ray-dashboard \ | ||
| <<EOF | ||
|
|
@@ -24,6 +26,6 @@ cp /mnt/ray-core/ray_pkg.zip /opt/ray-build/ray_pkg.zip | |
| cp /mnt/ray-core/ray_py_proto.zip /opt/ray-build/ray_py_proto.zip | ||
| cp /mnt/ray-dashboard/dashboard.tar.gz /opt/ray-build/dashboard.tar.gz | ||
|
|
||
| pip install -r doc/requirements-doc.txt | ||
| pip install -r python_depset.lock | ||
|
||
|
|
||
| EOF | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,15 +110,27 @@ _install_ray() { | |
| unzip -o -q /opt/ray-build/ray_py_proto.zip -d python | ||
| mkdir -p python/ray/dashboard/client/build | ||
| tar -xzf /opt/ray-build/dashboard.tar.gz -C python/ray/dashboard/client/build | ||
| SKIP_BAZEL_BUILD=1 pip install -e "python[all]" | ||
| SKIP_BAZEL_BUILD=1 pip install -e "python[all]" --no-deps | ||
| else | ||
| RAY_DISABLE_EXTRA_CPP=1 pip install -e "python[all]" | ||
| fi | ||
| } | ||
|
|
||
| _install_ray_no_deps() { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you changed the only two places that were using |
||
| if [[ -d /opt/ray-build ]]; then | ||
| unzip -o -q /opt/ray-build/ray_pkg.zip -d python | ||
| unzip -o -q /opt/ray-build/ray_py_proto.zip -d python | ||
| mkdir -p python/ray/dashboard/client/build | ||
| tar -xzf /opt/ray-build/dashboard.tar.gz -C python/ray/dashboard/client/build | ||
| SKIP_BAZEL_BUILD=1 pip install -e "python[all]" --no-deps | ||
| else | ||
| RAY_DISABLE_EXTRA_CPP=1 pip install -e "python[all]" --no-deps | ||
| fi | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Ray Installation Path Dependency InconsistencyThe |
||
|
|
||
| api_annotations() { | ||
| echo "--- Install Ray" | ||
| _install_ray | ||
| _install_ray_no_deps | ||
|
|
||
| echo "--- Check API annotations" | ||
| ./ci/lint/check_api_annotations.py | ||
|
|
@@ -130,7 +142,7 @@ api_policy_check() { | |
| make -C doc/ html | ||
|
|
||
| echo "--- Install Ray" | ||
| _install_ray | ||
| _install_ray_no_deps | ||
|
|
||
| echo "--- Check API/doc consistency" | ||
| bazel run //ci/ray_ci/doc:cmd_check_api_discrepancy -- /ray "$@" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| build_arg_sets: | ||
| py39: | ||
| PYTHON_VERSION: "3.9" | ||
| PYTHON_SHORT: "39" | ||
| py310: | ||
| PYTHON_VERSION: "3.10" | ||
| PYTHON_SHORT: "310" | ||
| py312: | ||
| PYTHON_VERSION: "3.12" | ||
| PYTHON_SHORT: "312" | ||
|
|
||
|
|
||
| depsets: | ||
| - name: docbuild_depset_${PYTHON_SHORT} | ||
| operation: compile | ||
| depsets: | ||
| - ray_img_depset_${PYTHON_SHORT} | ||
| requirements: | ||
| - doc/requirements-doc.txt | ||
| output: python/deplocks/docs/docbuild_depset_py${PYTHON_VERSION}.lock | ||
| append_flags: | ||
| - --python-version=${PYTHON_VERSION} | ||
| - --python-platform=linux | ||
| - --unsafe-package ray | ||
| build_arg_sets: | ||
| - py39 | ||
| - py310 | ||
| - py312 |
Uh oh!
There was an error while loading. Please reload this page.