Consolidate documentation build and staging in CI

オープン
#3,600 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, python, shell
領域
ci-cd

調査の方向性

Start with build-docs.yml and the two existing build steps, then read the scripts they call, build_all_docs.sh and build_docs.sh, plus ci/tools/build_docs_for_link_check.sh. Compare staged paths before and after the change for the aggregate build, the metapackage root, and each component directory. Done means one combined step that produces the same staged layout, with release cleanup applied after staging.

索引モデルが issue の本文から書いたものです。

説明

CI/CD documentation

— codex on behalf of Ralf —

Motivation

build-docs.yml currently has separate Build all docs and Build component docs steps. Both choose between a release build and latest-only, run a builder, and stage the output under artifacts/docs. #3521 makes the release cleanup common to both. A single Build and stage docs step would make it easier to follow what gets built and what reaches deployment.

Proposed design

Put the orchestration in a workflow-owned script. Pass the selected component, the release flag, the staging destination, and the resolved bindings package root when building cuda-bindings.

  • Resolve the source directory, build command, and output destination once. For all, call the aggregate builder. For a single component, call that package’s builder. Choose the release or latest-only arguments once.
  • Preserve the staged layout. The metapackage goes at the root and the other components go under cuda-bindings/, cuda-core/, and cuda-pathfinder/. The current aggregate uses CUDA 13 bindings. An individual bindings build uses the resolved CUDA 12 or CUDA 13 root.
  • Apply #3521’s release cleanup after staging. Omit latest/, nv-versions.json, versions.json, and objects.inv at the staged component roots. Keep the versioned pages and inventory inside each version directory.
  • Preserve the input to the rendered-link checks, artifact uploads, and deployment. Keep their existing conditions and the Pages overlay behavior.

Start by calling the checked-out source’s build_all_docs.sh and build_docs.sh. These commands also serve local builds and the rendered-link checker. Consider factoring common behavior among the package builders separately, with attention to their version normalization, Sphinx options, generated files, and selector paths. Local build commands · Rendered-link build caller

Release compatibility

Take this up after the historical documentation cleanup and any selected backfills. Keep regular releases working from supported tags with the schema-v2 package registry. The workflow revision owns orchestration and staging, and the source tag supplies its build recipes and package layout. Pre-split tags can use the existing historical procedure with a compatible caller, verified artifacts, and isolated validation. If the package builders are later consolidated, use the supported registry as the compatibility boundary. Release compatibility guidance

Validation

  • Compare staged paths and contents before and after the refactor for ordinary and release builds. Cover the aggregate, the metapackage root, the named component directories, and both resolved bindings roots.
  • Check that normal staging includes the shared files, release staging preserves the versioned docs, and overlaying a release payload leaves the published shared files in place.
  • Rehearse the normal docs preview and use isolated release dry runs for supported CUDA 12 and CUDA 13 tags to exercise the workflow/source revision split.
主要言語
Cython
スター
3.4k
フォーク
353
平均マージ
2日 3時間
マージ済み PR(30日)
163

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/cuda-python のほかの issue

NVIDIA/cuda-python の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。