-
Notifications
You must be signed in to change notification settings - Fork 7k
[Test][KubeRay] Add doctest for RayCluster Quickstart doc #51249
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 2 commits
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "--- Setup k8s environment" | ||
| SKIP_CREATE_KIND_CLUSTER=1 bash ci/k8s/prep-k8s-environment.sh | ||
|
|
||
| echo "--- Install Python dependencies" | ||
| pip install -c python/requirements_compiled.txt pytest nbval bash_kernel | ||
| python -m bash_kernel.install | ||
| pip install "ray[default]==2.43.0" | ||
|
|
||
| echo "--- Run doc tests" | ||
| cd doc/source/cluster/kubernetes | ||
| py.test --nbval getting-started/raycluster-quick-start.ipynb --nbval-kernel-name bash --sanitize-with doc_sanitize.cfg | ||
|
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. What's the test plan for kuberay doc test? Are we going to manually add each doc file to this?
Member
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. Currently, yes. I haven't found a good way to identify which files contain doc tests yet. Maybe we can search all |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| [kuberay-operator-pod-name] | ||
| regex: kuberay-operator-[a-z0-9]{10}-[a-z0-9]{5} | ||
| replace: KUBERAY-OPERATOR-POD-NAME | ||
|
|
||
| [raycluster-head-pod-name] | ||
| regex: raycluster-kuberay-workergroup-worker-[a-z0-9]{5} | ||
|
Member
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. For KubeRay v1.4.0, the naming changes a bit. This may require some updates in the future.
Member
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. Yes we need to go back to change this doc after 1.4.0 release. But for now let's keep the naming here. |
||
| replace: RAYCLUSTER-HEAD-POD-NAME | ||
|
|
||
| [raycluster-worker-pod-name] | ||
| regex: raycluster-kuberay-head-[a-z0-9]{5} | ||
| replace: RAYCLUSTER-WORKER-POD-NAME | ||
|
|
||
| [rayjob-submit-name] | ||
| regex: raysubmit_[a-zA-Z0-9]{16} | ||
| replace: RAYJOB-SUBMIT-NAME | ||
|
|
||
| [time-duration] | ||
| regex: \d+m\d+s|\d+m|\d+s | ||
| replace: TIME-DURATION | ||
|
|
||
| [python-logger-prefix] | ||
| regex: \d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2},\d{3}\s+[A-Z]+\s+[\w\.]+:\d+\s+-- | ||
| replace: PYTHON-LOGGER-PREFIX | ||
|
|
||
| [ray-cluster-resources-object-store-memory] | ||
| regex: 'object_store_memory'\s*:\s*\d+(?:\.\d+)?\} | ||
| replace: RAY-CLUSTER-RESOURCES-OBJECT-STORE-MEMORY | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to use the same version as the Ray images in the Ray documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to 2.41.0