Skip to content

[Release Portal] Check the RC docs build and published docs (step 2.12) . Add 2.17.0 config - #9688

Open
atalman wants to merge 2 commits into
mainfrom
atalman/docs-rc-check
Open

atalman wants to merge 2 commits into
mainfrom
atalman/docs-rc-check

Conversation

@atalman

@atalman atalman commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Makes step 2.12 "Docs build for the RC" a real check: docs-build.yml green on the RC, and the versioned docs present in pytorch/docs (site/{minor}).

Agent details

AI-generated (Claude Code)

  • Before: step 2.12 was informational and only probed docs-preview.pytorch.org/pytorch/pytorch/{minor}. That URL is shared across RCs, so it could not tell which build it showed.
  • New docs_build check type, collected by tools/analytics/nightly_scan.py for the newest RC (RC-scoped, like rc_binaries):
    • Run lookup: an RC tag doesn't start docs-build.yml; pushing the tag's commit to release/X.Y does. So the check reads push runs of docs-build.yml whose head is the tag's commit. For 2.16.0-rc2 that is cc109da7f09, run 47003332777.
    • Docs lookup: checks that {minor} exists on branch site of pytorch/docs (e.g. site/2.16).
    • States:
      • in progress: the run is still going, or it is green but the docs directory is missing.
      • blocked: the run failed.
      • done: the run is green and the docs directory exists.
    • Cancelled and skipped runs are ignored.
    • Matching by commit instead of taking the latest run on the release branch means a later cherry-pick can't change an older RC's result.
  • Config: step 2.12 in steps.yml now uses the new check and is no longer informational. CHECK_TYPES and the validator know about docs_build. The README has a row for it in the check-type table and a short section on how it is read.
  • Tests: new cases in test_nightly_scan.py. test_url_exists_scan.py used the real step 2.12 as its RC-scoped url_exists fixture; it now builds that fixture explicitly, so its coverage is unchanged.

Test plan

cd tools
python -m unittest torchci.tests.test_nightly_scan torchci.tests.test_url_exists_scan \
    torchci.tests.test_release_portal_config torchci.tests.test_release_in_flight
python torchci/release_portal_config.py
  • Tests: 228 pass on Python 3.11, and every release config validates.
  • Live dry run (read-only GitHub calls, nothing written) for 2.16.0:
    • Found rc2 at cc109da7f0, docs-build.yml run 47003332777 succeeded, and site/2.16 exists, so the step is done.
    • site/2.17 is reported absent.

Step 2.12 "Docs build for the RC" was informational: it probed the docs preview URL,
which is shared across RCs and cannot identify a particular build. It now checks that
docs-build.yml is green on the newest release candidate and that the release's docs are
on the docs site (pytorch/docs, branch site, directory {minor}).

The RC tag does not start docs-build.yml; the push of its commit to release/X.Y does. So
the new docs_build check in nightly_scan.py reads the push runs of docs-build.yml whose
head is the tag's commit (for 2.16.0-rc2, cc109da7f09 -> run 47003332777), reusing the
newest-candidate lookup that rc_binaries already does. The step is in progress while the
run is going or the docs directory is missing, blocked when the run failed, and done when
both hold. It is RC-scoped, so a new candidate starts it again.

Matching the run by commit rather than taking the latest run on the release branch
keeps a later cherry-pick from marking an older RC's docs as green or red.

Test Plan:

```
cd tools
python -m unittest torchci.tests.test_nightly_scan torchci.tests.test_url_exists_scan \
    torchci.tests.test_release_portal_config torchci.tests.test_release_in_flight
python torchci/release_portal_config.py
```

228 tests pass and every release config validates. A read-only run against GitHub for
2.16.0 found rc2 (cc109da7f0), docs-build.yml run 47003332777 success, and
pytorch/docs site/2.16 present, so the step is done; site/2.17 is reported absent.

This change was written with the help of Claude Code.
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
torchci Ignored Ignored Dec 3, 2026 7:52pm UTC

Request Review

@atalman
atalman requested review from jewelkm89 and subinz1 and removed request for subinz1 December 3, 2026 20:00
@atalman
atalman marked this pull request as ready for review December 3, 2026 20:00
Planned dates from the 2.17 release milestones schedule: branch cut 2027-02-01, final RC
2027-02-16 (moved off Presidents' Day, Feb 15), release day 2027-02-24. 2.17.0 ships
triton 3.10.0; torchvision and torchaudio are not decided yet and are left out.

Test Plan:

```
cd tools
python torchci/release_portal_config.py
python -m unittest torchci.tests.test_release_portal_config torchci.tests.test_release_in_flight \
    torchci.tests.test_nightly_scan torchci.tests.test_url_exists_scan torchci.tests.test_index_listing_scan
```

The config validates (48 shared steps, 4 release files) and the tests pass.

This change was written with the help of Claude Code.
@atalman atalman changed the title [Release Portal] Check the RC docs build and published docs (step 2.12) [Release Portal] Check the RC docs build and published docs (step 2.12) . Add 2.17.0 config Dec 3, 2026

@mtarsel mtarsel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants