Skip to content

Conversation

@MortalHappiness
Copy link
Member

@MortalHappiness MortalHappiness commented Mar 11, 2025

Why are these changes needed?

Real implementation for #50988. Add doc test for the "RayCluster Quickstart" doc.

doc links:

Related issue number

ray-project/kuberay#3157

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@MortalHappiness MortalHappiness added the go add ONLY when ready to merge, run all tests label Mar 11, 2025
@MortalHappiness MortalHappiness force-pushed the feature/kuberay-doctest-raycluster-quickstart branch 3 times, most recently from a4820f9 to c077002 Compare March 11, 2025 15:24
@MortalHappiness MortalHappiness marked this pull request as ready for review March 11, 2025 22:48
@MortalHappiness MortalHappiness force-pushed the feature/kuberay-doctest-raycluster-quickstart branch 4 times, most recently from a365e4f to 15318f7 Compare March 12, 2025 11:51
@kevin85421
Copy link
Member

cc @rueian Would you mind taking the first pass at the review?

@MortalHappiness MortalHappiness force-pushed the feature/kuberay-doctest-raycluster-quickstart branch from 15318f7 to a713127 Compare March 13, 2025 08:07
Signed-off-by: Chi-Sheng Liu <[email protected]>
Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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"
Copy link
Member

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.

Copy link
Member Author

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

replace: KUBERAY-OPERATOR-POD-NAME

[raycluster-head-pod-name]
regex: raycluster-kuberay-workergroup-worker-[a-z0-9]{5}
Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

Choose a reason for hiding this comment

The 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.

"cell_type": "markdown",
"id": "2248a2d8-bd70-4ac3-8fa8-7beeb4a2a8ae",
"metadata": {
"collapsed": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this mean?

Copy link
Member Author

@MortalHappiness MortalHappiness Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I don't know. Maybe some hidden cells or metadata added by Jupyter Notebook? I edited this file with Jupyter Lab and didn't notice this cell. But it's not important since it doesn't show up in the doc or affect the tests.

@@ -0,0 +1,42 @@
(kuberay-operator-deploy)=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc requires doc team to review cc @angelinalg.

@kevin85421
Copy link
Member

cc @jjyao @edoakes would you mind merging this PR? Thanks!

Copy link
Collaborator

@jjyao jjyao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need doc team review. cc @dayshah


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
Copy link
Collaborator

Choose a reason for hiding this comment

The 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?

Copy link
Member Author

Choose a reason for hiding this comment

The 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 .ipynb files under the current directory and check whether their kernel is bash_kernel to find those that contain doc tests.

@jjyao jjyao merged commit 5e05c2f into ray-project:master Mar 24, 2025
5 checks passed
dentiny pushed a commit to dentiny/ray that referenced this pull request Mar 25, 2025
dhakshin32 pushed a commit to dhakshin32/ray that referenced this pull request Mar 27, 2025
srinathk10 pushed a commit that referenced this pull request Mar 28, 2025
Signed-off-by: Chi-Sheng Liu <[email protected]>
Signed-off-by: Srinath Krishnamachari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-backlog go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants