Skip to content

[CI] Let the repository own its CUDA build environment - #10

Merged
cyyever merged 1 commit into
trimfrom
ci/repo-owned-cuda-env
Oct 30, 2026
Merged

cyyever merged 1 commit into
trimfrom
ci/repo-owned-cuda-env

Conversation

@cyyever

@cyyever cyyever commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Linked issue or supporting maintainer

Requested by the BakeLab maintainer: “我们只需要保证workflow的docker操作能跑” and “删除?”

BC-breaking?

No product API change; changes the fork-only CI environment.

Summary (human written only)

“我们只需要保证workflow的docker操作能跑”
“删除?”

Agent details (AI-generated)

Remove the Breadkernel cuda-env dependency. The Gitea workflow selects its Docker image from this repository's binary build matrix, installs development requirements, builds the triggering commit with an editable install, verifies the imported source SHA and CUDA availability, and runs the existing test_cuda.py through its native runner. Reports are bind-mounted out of the container and uploaded.

BB supplies Docker and GPU access. The workflow owns its Python/build dependencies, without a shared Dockerfile, cross-repository checkout, wheel bundle cache or release upload. The event SHA remains explicit; no older PyTorch wheel substitutes for it. Companion cleanup: Breadkernel #118 and vLLM #30.

Validation:

  • Targeted lintrunner -a --take GHA,ACTIONLINT,NEWLINE, YAML parsing, host/container bash -n, ShellCheck and git diff --check passed.
  • Executed the actual matrix selection: pytorch/manylinux2_28-builder:cuda13.3.
  • Known blocker: docker buildx imagetools inspect pytorch/manylinux2_28-builder:cuda13.3 returns not found. The repository's image must be published or its matrix corrected before this lane can pass. No fallback image/version was added. Keep draft.
  • A separate BB RTX 5080 sandbox passed Docker buildx, GPU run/exec, bind mounts and a CUDA kernel check. Full PyTorch source build/tests have not run with this change.

No competing open PR exists for this branch. AI assistance: Codex. Supporting human instructions are quoted above.

@cyyever
cyyever marked this pull request as ready for review October 30, 2026 07:03
@cyyever
cyyever merged commit 9cebbe7 into trim Oct 30, 2026
17 checks passed
cyyever added a commit that referenced this pull request Oct 31, 2026
cyyever added a commit that referenced this pull request Oct 31, 2026
[CI] Test triggering trim commit through shared CUDA infrastructure (#9)

Assisted-by: Codex

Signed-off-by: cyy <[email protected]>

[CI] Use the repository CUDA image instead of shared build infrastructure (#10)

Assisted-by: Codex

Signed-off-by: cyy <[email protected]>
cyyever added a commit that referenced this pull request Oct 31, 2026
Allow explicit BakeLab runners in reusable Linux CI (#6)

* Allow explicit BakeLab runners in reusable Linux CI

The reusable Linux jobs reject BakeLab because they only admit the pytorch
organization, and the test job always uses upstream matrix runner labels.
Allow BakeLab/pytorch when the caller explicitly supplies runner-labels and
use those labels for scheduling. Preserve existing upstream defaults.

Authored with an AI assistant at the repository maintainer's request.

Test Plan
```sh
git diff --check
lintrunner -a
```
The whitespace check passed. lintrunner could not run because it is not
installed; spin and a local virtual environment are also absent. No live
GitHub/Gitea workflow or GPU task was executed.

* Remove BakeLab CI documentation at maintainer request

Keep this PR focused on the two reusable Linux workflow changes.
Authored with an AI assistant.

Test Plan
```sh
git diff --check
lintrunner -a
```
Whitespace validation passed. lintrunner remains unavailable in this checkout.

Run trim CUDA CI in the repository build image

[CI] Test triggering trim commit through shared CUDA infrastructure (#9)

Assisted-by: Codex

Signed-off-by: cyy <[email protected]>

[CI] Use the repository CUDA image instead of shared build infrastructure (#10)

Assisted-by: Codex

Signed-off-by: cyy <[email protected]>
cyyever added a commit that referenced this pull request Oct 31, 2026
Allow explicit BakeLab runners in reusable Linux CI (#6)

* Allow explicit BakeLab runners in reusable Linux CI

The reusable Linux jobs reject BakeLab because they only admit the pytorch
organization, and the test job always uses upstream matrix runner labels.
Allow BakeLab/pytorch when the caller explicitly supplies runner-labels and
use those labels for scheduling. Preserve existing upstream defaults.

Authored with an AI assistant at the repository maintainer's request.

Test Plan
```sh
git diff --check
lintrunner -a
```
The whitespace check passed. lintrunner could not run because it is not
installed; spin and a local virtual environment are also absent. No live
GitHub/Gitea workflow or GPU task was executed.

* Remove BakeLab CI documentation at maintainer request

Keep this PR focused on the two reusable Linux workflow changes.
Authored with an AI assistant.

Test Plan
```sh
git diff --check
lintrunner -a
```
Whitespace validation passed. lintrunner remains unavailable in this checkout.

Run trim CUDA CI in the repository build image

[CI] Test triggering trim commit through shared CUDA infrastructure (#9)

Assisted-by: Codex

Signed-off-by: cyy <[email protected]>

[CI] Use the repository CUDA image instead of shared build infrastructure (#10)

Assisted-by: Codex

Signed-off-by: cyy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant