Skip to content

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

Merged
cyyever merged 1 commit into
trimfrom
ci/trim-cuda-source
Oct 30, 2026
Merged

cyyever merged 1 commit into
trimfrom
ci/trim-cuda-source

Conversation

@cyyever

@cyyever cyyever commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Linked issue or supporting maintainer

Requested by the BakeLab maintainer in the working session: “不对,vllm和pytorch trim的ci需要跑最新的commits” and “做更合理的边界”.

BC-breaking?

No; this adds a fork-only Gitea CI lane.

Summary (human written only)

“不对,vllm和pytorch trim的ci需要跑最新的commits”
“开pr修改ci?”
“做更合理的边界”

Agent details (AI-generated)

Add a thin CUDA workflow for the private Gitea mirror. It passes the triggering PyTorch SHA to Breadkernel's shared dependency action, then runs the existing test/test_cuda.py through PyTorch's native test runner against the resulting installed wheel. Test invocation runs outside the source root and writes XML reports.

Dependency builds, toolchain setup, exact wheel cache validation and framework constraints belong to BakeLab/breadkernel#117. This fork contains no extra dependency-build script or Dockerfile. The workflow pins infrastructure to 551bee53ff70429c7abb8e83e5e280bd9a63211a, records the event SHA and dependency provenance, and uploads reports even on test failure. Add the BB CUDA labels to actionlint's existing runner list.

The job runs only on Gitea, using [self-hosted, linux, x64, bb, cuda]. Merge/mirror the pinned infrastructure first and allow owner-level Actions read access to breadkernel, pytorch, vision and triton. No new PAT, repository variables or release uploads. The shared action resolves vision/Triton trim heads once and builds on exact cache misses; cache storage remains scoped to this repository.

Validation:

  • lintrunner -a --take GHA,ACTIONLINT,NEWLINE -- .github/workflows/cuda-ci.yml .github/actionlint.yaml .ci/RELEASE.md passed; git diff --check passed.
  • spin lint initialized its tools but stopped during version generation because the temporary environment lacks packaging; the targeted lintrunner checks above completed afterward. This is not a full repository lint pass.
  • Shared dependency pipeline: 45 offline tests passed locally and the companion PR's GitHub check passed.
  • Full CUDA source build and test_cuda.py have not run with this change. Keep draft until the BB GPU sandbox lane passes; this is not the full upstream CUDA matrix.

No competing open PR exists for this branch. AI assistance: Codex. The human request is quoted above; implementation and this section are AI-assisted.

@cyyever
cyyever marked this pull request as ready for review October 30, 2026 05:22
@cyyever
cyyever merged commit db636a1 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