Repository navigation
[doc] Correct redirect apply timing and document redirects for moved pages and APIs - #66743
Merged
Merged
Conversation
…workflow The redirects README said the apply step runs on each postmerge run of master. It runs only on the postmerge builds that the scheduled release-automation pipeline triggers, so a merged redirect can take longer than a few hours to go live, especially over a weekend. doc/AGENTS.md said nothing about redirects, so an agent that moved a page wasn't told to add one. Add a short section that points to doc/redirects/README.md and sets expectations about the apply delay. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the documentation regarding page and API redirects. It adds a new section to doc/AGENTS.md outlining the requirements for moving or renaming pages and APIs, and updates doc/redirects/README.md to clarify the post-merge CI process and how redirects apply to generated API reference pages. The review feedback suggests formatting improvements for both files, specifically breaking down long, dense paragraphs into structured bullet points to enhance readability and maintainability.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
ronny-anyscale
approved these changes
Oct 5, 2026
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…pages and APIs (ray-project#66743) ## Why are these changes needed? `doc/redirects/README.md` said the `doc: apply redirects` step runs "on each postmerge run of master" and that a change goes live "a few hours later." Neither is quite right. The step runs only on the postmerge builds that the scheduled release-automation pipeline triggers. A webhook-triggered postmerge build for a merge commit doesn't include it. In practice, a redirect that merges on a weekday goes live within a few hours, but one that merges late in the week can wait about two days. If the scheduled run fails before it reaches the step, the change waits for the next run. Example: ray-project#66674 merged at 16:52 UTC on 2026-10-05. Its own postmerge build didn't schedule the apply step, and the scheduled 16:00 UTC run before it failed at `init`. So the new rules weren't live on Read the Docs, and the old `/en/master/cluster/kubernetes/...` URLs still hit the previous catch-all until the next scheduled run. `doc/AGENTS.md` also said nothing about redirects. An agent that moved a page under `doc/source/` got no instruction to add a redirect. The only signal was the redirect validation check, which runs only when `doc/redirects/` already changed. Neither file said that renaming or moving an API changes the path of its generated autosummary reference page, so that page needs a redirect too. This PR does the following: - Shortens step 3 of "Adding or changing a redirect" in `doc/redirects/README.md` and adds a "When merged redirects go live" section. The new section describes when the apply step runs, what happens when a run fails or skips it, and how to check whether a merged change is live with `rtd-redirects plan`. The exact schedule lives in Buildkite, not the repo, so the README describes the timing rather than listing run times. - Adds a "Renaming, moving, or removing APIs" section to `doc/redirects/README.md`. It explains that renaming or moving an API, or the API page that lists it, changes the generated reference page path and needs a redirect. It says that a removed reference page for a deprecated or end-of-life API with a clear successor redirects to the successor's page. It also explains that `force: false` rules fire only on a 404, so they never replace a reference page that an older docs version still serves. - Adds a "Moving or renaming pages and APIs" section to `doc/AGENTS.md` that covers pages and generated API reference pages, points to the README, and sets expectations about the delay. Docs-only. No CI or behavior changes. ## Related issue number None. ## Checks - [x] I've signed off every commit (DCO). - [ ] 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 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/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
doc/redirects/README.mdsaid thedoc: apply redirectsstep runs "on each postmerge run of master" and that a change goes live "a few hours later." Neither is quite right. The step runs only on the postmerge builds that the scheduled release-automation pipeline triggers. A webhook-triggered postmerge build for a merge commit doesn't include it. In practice, a redirect that merges on a weekday goes live within a few hours, but one that merges late in the week can wait about two days. If the scheduled run fails before it reaches the step, the change waits for the next run.Example: #66674 merged at 16:52 UTC on 2026-10-05. Its own postmerge build didn't schedule the apply step, and the scheduled 16:00 UTC run before it failed at
init. So the new rules weren't live on Read the Docs, and the old/en/master/cluster/kubernetes/...URLs still hit the previous catch-all until the next scheduled run.doc/AGENTS.mdalso said nothing about redirects. An agent that moved a page underdoc/source/got no instruction to add a redirect. The only signal was the redirect validation check, which runs only whendoc/redirects/already changed. Neither file said that renaming or moving an API changes the path of its generated autosummary reference page, so that page needs a redirect too.This PR does the following:
doc/redirects/README.mdand adds a "When merged redirects go live" section. The new section describes when the apply step runs, what happens when a run fails or skips it, and how to check whether a merged change is live withrtd-redirects plan. The exact schedule lives in Buildkite, not the repo, so the README describes the timing rather than listing run times.doc/redirects/README.md. It explains that renaming or moving an API, or the API page that lists it, changes the generated reference page path and needs a redirect. It says that a removed reference page for a deprecated or end-of-life API with a clear successor redirects to the successor's page. It also explains thatforce: falserules fire only on a 404, so they never replace a reference page that an older docs version still serves.doc/AGENTS.mdthat covers pages and generated API reference pages, points to the README, and sets expectations about the delay.Docs-only. No CI or behavior changes.
Related issue number
None.
Checks
scripts/format.shto lint the changes in this PR.🤖 Generated with Claude Code