NVFlare icon indicating copy to clipboard operation
NVFlare copied to clipboard

Restore reliable and resource-efficient Read the Docs builds

Open IsaacYangSLA opened this issue 1 month ago • 0 comments

Problem

The main documentation build began exceeding Read the Docs' 15-minute limit at commit c4080d3. The preceding successful build took 538 seconds; the first timeout took 902 seconds. Dependency installation stayed nearly unchanged (204 vs 202 seconds), while sphinx-llm changed from 1.0.0 to 1.1.0.

The new nested-index discovery scans every document for each HTML page. Separately, .readthedocs.yaml installs .[dev], including test tooling and GPU/CUDA dependencies that documentation does not execute.

Evidence

  • Last success: https://app.readthedocs.org/projects/nvflare/builds/34646727/
  • First timeout: https://app.readthedocs.org/projects/nvflare/builds/34704861/
  • Controlled Python 3.10 builds at 9c19f63b: disabling nested indexes reduced full HTML/Markdown generation from 447.35 to 219.99 seconds.
  • CPU-only PyTorch/torchvision and xgboost-cpu reduce the isolated environment from 7.08 GiB to approximately 2.00 GiB, with no CUDA/NVIDIA packages installed.
  • Existing coverage remains unchanged: 11,340 Python objects, 10,199 rendered signatures, inheritance, 2,406 HTML pages, 1,454 Markdown pages, and curated root llms.txt targets. One verified random dashboard import-time default is normalized in comparisons.

Proposed improvement and acceptance

Restore builds under the time limit; install dedicated CPU documentation dependencies with tested runtime/build-tool constraints; preserve existing API and Markdown coverage; avoid regenerating API stubs in the Markdown child; preserve existing GPU developer environments. Record cold installation/build time, CPU, sampled memory and environment/output size for each change and validate the final revision with the Read the Docs install/build commands.

The minimal mitigation is already proposed in #5606. Further resource and reproducibility changes will be submitted separately for review.

IsaacYangSLA avatar Oct 29 '26 18:10 IsaacYangSLA