CI: Include submodules in the release source archive
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- git, github-actions, python
- 領域
- build-system, release
調査の方向性
Read .github/workflows/release-upload.yml and the linked conda-forge/cuda-core-feedstock#34 pull request to understand how release archives are built and consumed. Reproduce the archive step with submodules checked out, then verify the archive includes the CCCL files at cuda_core/third_party/cccl and remains byte-for-byte reproducible. Done when the release source archive builds cuda-core without a separately pinned CCCL download.
索引モデルが issue の本文から書いたものです。
説明
Since cuda-core 1.3.0, building cuda_core from source requires the CCCL submodule at cuda_core/third_party/cccl: _get_cccl_include_dirs() treats a missing submodule as a build error, by design. The source archive attached to each release is a plain git archive (release-upload.yml), which leaves submodules empty, so that archive alone can no longer build cuda-core.
Downstream packagers now have to fetch CCCL separately and hard-code the submodule commit, as the conda-forge recipe does in conda-forge/cuda-core-feedstock#34. That pin has to be kept in sync by hand: the conda-forge bot bumps the version and re-hashes the sources, but the CCCL URL doesn't depend on the version, so its version-bump PRs would keep building against the old CCCL commit.
Proposal: check out with submodules: true and append each submodule to the tarball, e.g.:
export OUT="${PWD}/release"
git archive --format=tar --prefix="${ARCHIVE_NAME}/" -o "${OUT}/${ARCHIVE_NAME}.tar" "${GIT_TAG}"
git submodule foreach --quiet --recursive '
git archive --format=tar --prefix="${ARCHIVE_NAME}/${displaypath}/" -o "${OUT}/sub.tar" HEAD
tar -Af "${OUT}/${ARCHIVE_NAME}.tar" "${OUT}/sub.tar" && rm "${OUT}/sub.tar"'
gzip -n "${OUT}/${ARCHIVE_NAME}.tar"
The result is byte-for-byte reproducible. At cuda-core-v1.3.0, the archive grows from 6.0 MB to 19.0 MB, or to 7.4 MB if only libcudacxx/include and the licenses are included. The 1.3.0 asset stays as is; once a release ships the submodule, the feedstock can go back to a single source.
Related: #2715
-- Leo's bot
- 主要言語
- Cython
- スター
- 3.4k
- フォーク
- 353
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 163
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA/cuda-python のほかの issue
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raises対応中かも @Iamsohungrynow が 5 日前に担当しました。 オープンbug cuda.core P1
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
NVIDIA/cuda-python#3505 · コメント 3 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte countオープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
NVIDIA/cuda-python#3468 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
NVIDIA/cuda-python#3409 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRs再び着手できるかも @rwgk が 48 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
NVIDIA/cuda-python#2952 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookup対応中かも @rwgk が 62 日前に担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NVIDIA/cuda-python#2646 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
NVIDIA/cuda-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
layer5io/blowhorn-site#781 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
[Fix Package]: glad対応中かも @luadebug が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
xmake-io/xmake-repo#11342 ·
メンテナーはふだん 1 日以内に返信