Skip to content

Allow explicit BakeLab runners in reusable Linux CI - #6

Merged
cyyever merged 2 commits into
trimfrom
ci/gitea-cuda-trim
Oct 29, 2026
Merged

cyyever merged 2 commits into
trimfrom
ci/gitea-cuda-trim

Conversation

@cyyever

@cyyever cyyever commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary (human written only)

用户请求:“开ptorch pr 来fix 核心任务要求 github.repository_owner == 'pytorch' 使用上游 EC2/ARC runner 标签”

Agent details (AI-generated)

The reusable Linux build/test jobs currently skip BakeLab/pytorch, and their default runner selection follows upstream infrastructure. Add an optional runner-labels JSON array (for example ["bb", "cuda"]) that explicitly enables these jobs for BakeLab/pytorch and overrides build prefix/runner or test matrix routing. Existing upstream defaults and the exclusion of other forks are preserved.

The PR targets trim and changes only the two reusable workflow files. A central workflow can pass the runner labels. Use a separate invocation for each hardware class: the override applies to every test shard.

Validation: git diff --check passed. lintrunner -a was attempted but unavailable; this checkout has no spin, lintrunner, or virtual environment. No live workflow or CUDA workload was run.

Scope: this does not enable the existing pull/trunk entry points, register runners, or resolve hard-coded GitHub APIs, upstream container/artifact dependencies, mirror triggers, or CUDA architecture selection. It only removes the two reusable-job admission/routing blockers. No PyTorch runtime API changes.

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.
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.
@cyyever
cyyever marked this pull request as ready for review October 29, 2026 11:44
@cyyever
cyyever merged commit 60811ba into trim Oct 29, 2026
15 checks passed
cyyever added a commit that referenced this pull request Oct 31, 2026
* 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.
cyyever added a commit that referenced this pull request Oct 31, 2026
* 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.
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