Repository navigation
Fix missing code in unstable tutorials: clean up docs/unstable in worker builds - #3995
vishalhabib99 wants to merge 1 commit into
Conversation
The worker cleanup in .jenkins/build.sh still listed docs/prototype, but the section is built into docs/unstable. Each worker kept its code-stripped copy of every unstable tutorial, and the manager merge let a later worker's stripped page overwrite the executed one, so only tutorials on the last shard kept their code on the site.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3995
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:
Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
Hi, just checking whether this one is on your radar. Most unstable tutorials are still published without their code and output (#3523), because the worker cleanup searches |
Fixes #3523
Description
Most
.pytutorials underunstable_source/are published without their code and output: the MaskedTensor overview, advanced semantics and Adagrad pages, nestedtensor, vmap_recipe and gpu_quantization_torchao_tutorial. Onlymaskedtensor_sparsityrenders normally.Cause: in Step 4 of the worker job,
.jenkins/build.shdeletes the pages a worker did not run, but it still searchesdocs/prototype(anddocs/.doctrees/prototype), whileconf.pybuilds that section intodocs/unstable. So every worker uploads its own copy of every unstable tutorial, built from the code-stripped source thatget_files_to_run.pyleaves for files outside its shard. The manager copies worker outputs in order 1..15, so the last worker's stripped copy overwrites the executed page, except for tutorials that run on shard 15.That matches the live site exactly. With the current 15 shards and
metadata.json, the unstable.pytutorials land on shards 6, 7, 10, 11, 12, 13, 14 and 15. Onlymaskedtensor_sparsity(shard 15) has code and output on docs.pytorch.org; the other six run tutorials have no output blocks (gpu_direct_storageis inNOT_RUN).This change points the Step 4 cleanup at
docs/unstableanddocs/.doctrees/unstable, and addsdocs/_sources/unstableto the.rst.txtcleanup, so unstable pages are handled like the other sections. The gh-pages cleanup list in Step 7 still namesprototype; I left it alone, since changing what gets deleted from gh-pages seemed like a separate call.Testing
The CI build needs the GPU shards, so I did not run it. I simulated two workers and the manager merge in a temp directory, running the Step 4 HTML loop taken from
build.sh:maskedtensor_overview.htmlis the stripped copy from the later worker.maskedtensor_sparsity.htmlis unchanged.Checklist