Skip to content

[doc] Remove the vendored PyTorch tuning tutorial and its hash test - #66808

Merged
dstrodtman merged 1 commit into
masterfrom
djs-261007-delete-doc-external
Oct 14, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
djs-261007-delete-doc-external

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Why are these changes needed?

doc/external/ held a vendored copy of the PyTorch Hyperparameter tuning with Ray Tune tutorial, plus test_external_hashes. That test only asserted the copy's sha256 so that edits would flag drift from the PyTorch page. The canonical tutorial lives in pytorch/tutorials and has since been rewritten there, so the copy here no longer matches it. Sphinx never rendered the copy because it sits outside doc/source/, so it has no docs.ray.io URL and needs no redirect. It's the last item in the tree with its own one-off CI routing.

This PR removes the following:

  • The doc/external/ directory.
  • The test_external_hashes target in doc/BUILD.bazel, along with the ci_require load that only that target used. Buildifier drops the load.
  • The doc/external/ routing in .buildkite/test.rules.txt and its expectations in .buildkite/test.rules.test.txt.
  • The two doc/external/ pre-commit excludes.
  • The doc/external/ entry in DOC_EXAMPLE_PREFIXES in ci/ray_ci/doc/doc_example_targets.py.

Stacked on #66806, which rewrites the same doc/external/ routing lines. Merge that first. This PR's base is its branch.

Related issue number

None.

Duplicate check

gh pr list --state open --search "doc/external" returns only #66806, which this PR stacks on. No other open PR removes this directory.

Tests run

  • rayci -buildkite-dir .buildkite test-rules: all 180 expectations pass. As a negative control, an appended wrong expectation fails, so the check is live.
  • pytest ci/ray_ci/doc/test_doc_example_targets.py: 8 passed.
  • pre-commit run on the changed files: passes, including buildifier and buildifier-lint.
  • git grep -n "doc/external\|test_external_hashes" returns nothing.

AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line.

🤖 Generated with Claude Code

@dstrodtman
dstrodtman marked this pull request as ready for review October 7, 2026 14:14
@dstrodtman
dstrodtman requested review from a team as code owners October 7, 2026 14:14

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes the 'doc/external/' directory, which contained a vendored PyTorch hyperparameter tuning tutorial and its associated hash-guard test ('test_hashes.py'). All references to this directory and its tests have been cleaned up across Buildkite test rules, pre-commit configurations, CI scripts, and Bazel build files. There are no review comments, so I have no feedback to provide.

@ray-gardener ray-gardener Bot added tune Tune-related issues docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Oct 7, 2026
@dstrodtman
dstrodtman force-pushed the doc-1704-docs-example-test-optin branch from 29386bf to 091d8bb Compare October 13, 2026 13:10
@dstrodtman
dstrodtman requested a review from a team as a code owner October 13, 2026 13:10
@dstrodtman
dstrodtman force-pushed the djs-261007-delete-doc-external branch from 8d5b17b to b5289b0 Compare October 13, 2026 13:13
Base automatically changed from doc-1704-docs-example-test-optin to master October 13, 2026 18:03
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 13, 2026
doc/external/ held a copy of the PyTorch "Hyperparameter tuning with Ray
Tune" tutorial plus test_external_hashes, which only asserted the copy's
sha256 to flag drift. The canonical tutorial lives in pytorch/tutorials and
has diverged from this copy, which Sphinx never rendered.

Remove the directory, its BUILD target and the now-unused ci_require load,
its test.rules routing and expectations, its pre-commit excludes, and its
entry in DOC_EXAMPLE_PREFIXES.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the djs-261007-delete-doc-external branch from b5289b0 to 9e85e59 Compare October 13, 2026 19:00
@dstrodtman
dstrodtman merged commit 759a603 into master Oct 14, 2026
6 checks passed
@dstrodtman
dstrodtman deleted the djs-261007-delete-doc-external branch October 14, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core docs An issue or change related to documentation go add ONLY when ready to merge, run all tests tune Tune-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants