Repository navigation
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
atalman
requested review from
jewelkm89 and
subinz1
and removed request for
subinz1
December 3, 2026 20:00
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.
This branch has not been deployed
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.
Makes step 2.12 "Docs build for the RC" a real check:
docs-build.ymlgreen on the RC, and the versioned docs present inpytorch/docs(site/{minor}).Agent details
AI-generated (Claude Code)
docs-preview.pytorch.org/pytorch/pytorch/{minor}. That URL is shared across RCs, so it could not tell which build it showed.docs_buildcheck type, collected bytools/analytics/nightly_scan.pyfor the newest RC (RC-scoped, likerc_binaries):docs-build.yml; pushing the tag's commit torelease/X.Ydoes. So the check reads push runs ofdocs-build.ymlwhose head is the tag's commit. For 2.16.0-rc2 that iscc109da7f09, run 47003332777.{minor}exists on branchsiteofpytorch/docs(e.g. site/2.16).steps.ymlnow uses the new check and is no longer informational.CHECK_TYPESand the validator know aboutdocs_build. The README has a row for it in the check-type table and a short section on how it is read.test_nightly_scan.py.test_url_exists_scan.pyused the real step 2.12 as its RC-scopedurl_existsfixture; it now builds that fixture explicitly, so its coverage is unchanged.Test plan
cc109da7f0,docs-build.ymlrun 47003332777 succeeded, andsite/2.16exists, so the step isdone.site/2.17is reported absent.