Skip to content

[doc] Correct redirect apply timing and document redirects for moved pages and APIs - #66743

Merged
dstrodtman merged 3 commits into
masterfrom
djs-261005-redirect-apply-timing
Oct 5, 2026
Merged

dstrodtman merged 3 commits into
masterfrom
djs-261005-redirect-apply-timing

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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: #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

🤖 Generated with Claude Code

dstrodtman and others added 2 commits October 5, 2026 13:24
…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]>
@dstrodtman
dstrodtman requested review from a team as code owners October 5, 2026 17:25

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

Comment thread doc/AGENTS.md Resolved
Comment thread doc/redirects/README.md Resolved
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 5, 2026
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Oct 5, 2026
@dstrodtman
dstrodtman merged commit ddf9bb1 into master Oct 5, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the djs-261005-redirect-apply-timing branch October 5, 2026 19:05
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]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants