Skip to content

Always run EC2 route on pull requests in _linux-build/_linux-test - #183243

Closed
huydhn wants to merge 3 commits into
gh/huydhn/43/basefrom
gh/huydhn/43/head
Closed

huydhn wants to merge 3 commits into
gh/huydhn/43/basefrom
gh/huydhn/43/head

Conversation

@huydhn

@huydhn huydhn commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See #183242.

This change is to be reverted once #183242 concludes

Testing

https://github.com/pytorch/pytorch/actions/runs/25651990199

Authored by Claude.

[ghstack-poisoned]
@huydhn
huydhn requested a review from a team as a code owner May 11, 2026 02:06
@pytorch-bot

pytorch-bot Bot commented May 11, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/183243

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit ea98cb3 with merge base 4d05360 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

[ghstack-poisoned]
huydhn added a commit that referenced this pull request May 11, 2026
On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See #183242.

Authored by Claude.

ghstack-source-id: 03e323e
Pull-Request: #183243
[ghstack-poisoned]
huydhn added a commit that referenced this pull request May 11, 2026
On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See #183242.

Authored by Claude.

ghstack-source-id: a673b97
Pull-Request: #183243
@huydhn huydhn added the ciflow/trunk Trigger trunk jobs on your pull request label May 11, 2026
@huydhn

huydhn commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

huydhn added a commit to huydhn/pytorch that referenced this pull request May 12, 2026
…w tags

Two changes that together let trunk runs (via ciflow/trunk/*) execute EC2 and
OSDC test routes in parallel during the OSDC shadow-mode experiment:

1. trunk.yml: mirror the pull.yml plumbing from pytorch#183243 so the four
   _linux-test.yml callers forward the OSDC-remapped test matrix emitted by
   _linux-build.yml. Without this the test-osdc job would fall back to the EC2
   test matrix and schedule OSDC tests against non-mt- runner labels.

2. _linux-build.yml + _linux-test.yml: widen the shadow-mode guard from
   `github.event_name == 'pull_request'` to also include
   `startsWith(github.ref, 'refs/tags/ciflow/')`. This enables dual-route on
   ciflow/* tag pushes (e.g. ciflow/trunk/<PR>) while leaving direct pushes to
   main/release branches and scheduled workflows on the original single-route
   behavior gated by use-arc.

Part of pytorch#183242. To be reverted
once that experiment concludes.

Authored by Claude.
pytorchmergebot pushed a commit that referenced this pull request May 13, 2026
Similar to #183243, this is to be cleaned up once #183242 concludes

## Summary

Two changes that together let trunk runs (via `ciflow/trunk/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror #183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from #183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of #183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: #183482
Approved by: https://github.com/jeanschmidt
huydhn added a commit to huydhn/pytorch that referenced this pull request May 13, 2026
Following the trunk.yml pattern in this branch, plumb
test-matrix-osdc through every _linux-test.yml caller in the rest of
the OSDC-migrated workflows so test-osdc routes to the OSDC-remapped
runner labels under the shadow-mode experiment (pytorch#183242). The
_linux-build.yml and _linux-test.yml guard updates already on this
branch cover the ciflow/* tag-push case for these workflows too.

pull.yml is already plumbed (pytorch#183243). nightly.yml only migrates the
build side (no _linux-test.yml caller). The ROCm test job in the
operator microbenchmark workflows uses _rocm-test.yml and is left
alone.

Authored by Claude.
pytorchmergebot pushed a commit that referenced this pull request May 13, 2026
…183482)

Similar to #183243, this is to be cleaned up once #183242 concludes

## Summary

Three changes that together let workflow runs (via `ciflow/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror #183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from #183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### 3. Extend `test-matrix-osdc` plumbing to the remaining OSDC-migrated workflows

Apply the same `test-matrix-osdc: ${{ needs.<build>.outputs.test-matrix-osdc }}` pattern to every `_linux-test.yml` caller in the rest of the OSDC-migrated workflows so `test-osdc` routes to the OSDC-remapped labels for those flows too. 13 files, 27 sites: `attention_op_microbenchmark.yml`, `h100-symm-mem.yml`, `inductor-micro-benchmark.yml`, `inductor-perf-compare.yml`, `inductor-perf-test-nightly.yml`, `inductor-perf-test-nightly-h100.yml`, `inductor-unittest.yml`, `operator_microbenchmark.yml`, `operator_microbenchmark_compare.yml`, `slow.yml`, `test-b200.yml`, `test-h100.yml`, `tsan.yml`.

`pull.yml` is already plumbed (#183243). `nightly.yml` migrates only the build side (no `_linux-test.yml` caller). The ROCm test job in the operator microbenchmark workflows uses `_rocm-test.yml` and is left alone.

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of #183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Push a ciflow tag for one of the newly-plumbed workflows (e.g. `ciflow/slow/*` or `ciflow/inductor/*`) and confirm `test-osdc` runs against `mt-`-prefixed runner labels.
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: #183482
Approved by: https://github.com/jeanschmidt
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
…torch#183243)

On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See pytorch#183242.

This change is to be reverted once pytorch#183242 concludes

### Testing

https://github.com/pytorch/pytorch/actions/runs/25651990199

Authored by Claude.
Pull Request resolved: pytorch#183243
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#183244
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
…183482)

Similar to pytorch#183243, this is to be cleaned up once pytorch#183242 concludes

## Summary

Two changes that together let trunk runs (via `ciflow/trunk/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror pytorch#183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from pytorch#183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of pytorch#183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: pytorch#183482
Approved by: https://github.com/jeanschmidt
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
…ytorch#183482)

Similar to pytorch#183243, this is to be cleaned up once pytorch#183242 concludes

## Summary

Three changes that together let workflow runs (via `ciflow/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror pytorch#183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from pytorch#183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### 3. Extend `test-matrix-osdc` plumbing to the remaining OSDC-migrated workflows

Apply the same `test-matrix-osdc: ${{ needs.<build>.outputs.test-matrix-osdc }}` pattern to every `_linux-test.yml` caller in the rest of the OSDC-migrated workflows so `test-osdc` routes to the OSDC-remapped labels for those flows too. 13 files, 27 sites: `attention_op_microbenchmark.yml`, `h100-symm-mem.yml`, `inductor-micro-benchmark.yml`, `inductor-perf-compare.yml`, `inductor-perf-test-nightly.yml`, `inductor-perf-test-nightly-h100.yml`, `inductor-unittest.yml`, `operator_microbenchmark.yml`, `operator_microbenchmark_compare.yml`, `slow.yml`, `test-b200.yml`, `test-h100.yml`, `tsan.yml`.

`pull.yml` is already plumbed (pytorch#183243). `nightly.yml` migrates only the build side (no `_linux-test.yml` caller). The ROCm test job in the operator microbenchmark workflows uses `_rocm-test.yml` and is left alone.

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of pytorch#183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Push a ciflow tag for one of the newly-plumbed workflows (e.g. `ciflow/slow/*` or `ciflow/inductor/*`) and confirm `test-osdc` runs against `mt-`-prefixed runner labels.
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: pytorch#183482
Approved by: https://github.com/jeanschmidt
pytorchmergebot pushed a commit that referenced this pull request May 27, 2026
## Summary

- Reverts #183243 and #183482, ending the EC2/OSDC side-by-side shadow-mode comparison (issue #183242). `_linux-build.yml` / `_linux-test.yml` go back to a single-route model gated by `use-arc`; the EC2 route again uses `runner_prefix` directly instead of the shadow-mode strip-prefix step.
- Removes the `test-matrix-osdc:` callsite line from the 10 OSDC-migrated workflows that adopted the schema after the shadow-traffic PRs landed (`dtensor`, `dynamo-unittest`, `h100-cutlass-backend`, `inductor`, `inductor-micro-benchmark-x86`, `inductor-nightly`, `inductor-periodic`, `operator_benchmark`, `periodic`, `torchtitan`). Without this cleanup the reusable workflow would reject those callsites with "input not defined" once the schema goes away.
- Leaves #183244 (auto-label `no-runner-experiments` on `.ci/docker/` PRs) in place: that label is a general runner-experiment opt-out in `runner_determinator.py` and is not specific to shadow traffic.

After this change, we will still running 100% on OSDC with the option to dial down if needed.

## Test plan

- [ ] `pull.yml`, `trunk.yml`, `periodic.yml`, and the rest of the touched workflows validate on this PR (no "input not defined" errors).
- [ ] On this PR (a `pull_request` event with `use-arc=false`), the EC2 build/test jobs run and the OSDC ones are skipped — no shadow-mode dual run.
- [ ] After landing, push a `ciflow/trunk/*` tag and confirm only one of EC2/OSDC runs based on `use-arc` (no parallel dual route).
- [ ] After landing, confirm a direct push to `main` continues to honor `use-arc` (single route as before).

Authored by Claude.
Pull Request resolved: #185181
Approved by: https://github.com/jeanschmidt
tinglvv pushed a commit that referenced this pull request May 28, 2026
## Summary

- Reverts #183243 and #183482, ending the EC2/OSDC side-by-side shadow-mode comparison (issue #183242). `_linux-build.yml` / `_linux-test.yml` go back to a single-route model gated by `use-arc`; the EC2 route again uses `runner_prefix` directly instead of the shadow-mode strip-prefix step.
- Removes the `test-matrix-osdc:` callsite line from the 10 OSDC-migrated workflows that adopted the schema after the shadow-traffic PRs landed (`dtensor`, `dynamo-unittest`, `h100-cutlass-backend`, `inductor`, `inductor-micro-benchmark-x86`, `inductor-nightly`, `inductor-periodic`, `operator_benchmark`, `periodic`, `torchtitan`). Without this cleanup the reusable workflow would reject those callsites with "input not defined" once the schema goes away.
- Leaves #183244 (auto-label `no-runner-experiments` on `.ci/docker/` PRs) in place: that label is a general runner-experiment opt-out in `runner_determinator.py` and is not specific to shadow traffic.

After this change, we will still running 100% on OSDC with the option to dial down if needed.

## Test plan

- [ ] `pull.yml`, `trunk.yml`, `periodic.yml`, and the rest of the touched workflows validate on this PR (no "input not defined" errors).
- [ ] On this PR (a `pull_request` event with `use-arc=false`), the EC2 build/test jobs run and the OSDC ones are skipped — no shadow-mode dual run.
- [ ] After landing, push a `ciflow/trunk/*` tag and confirm only one of EC2/OSDC runs based on `use-arc` (no parallel dual route).
- [ ] After landing, confirm a direct push to `main` continues to honor `use-arc` (single route as before).

Authored by Claude.
Pull Request resolved: #185181
Approved by: https://github.com/jeanschmidt
khushi-411 pushed a commit to khushi-411/pytorch that referenced this pull request Jun 1, 2026
## Summary

- Reverts pytorch#183243 and pytorch#183482, ending the EC2/OSDC side-by-side shadow-mode comparison (issue pytorch#183242). `_linux-build.yml` / `_linux-test.yml` go back to a single-route model gated by `use-arc`; the EC2 route again uses `runner_prefix` directly instead of the shadow-mode strip-prefix step.
- Removes the `test-matrix-osdc:` callsite line from the 10 OSDC-migrated workflows that adopted the schema after the shadow-traffic PRs landed (`dtensor`, `dynamo-unittest`, `h100-cutlass-backend`, `inductor`, `inductor-micro-benchmark-x86`, `inductor-nightly`, `inductor-periodic`, `operator_benchmark`, `periodic`, `torchtitan`). Without this cleanup the reusable workflow would reject those callsites with "input not defined" once the schema goes away.
- Leaves pytorch#183244 (auto-label `no-runner-experiments` on `.ci/docker/` PRs) in place: that label is a general runner-experiment opt-out in `runner_determinator.py` and is not specific to shadow traffic.

After this change, we will still running 100% on OSDC with the option to dial down if needed.

## Test plan

- [ ] `pull.yml`, `trunk.yml`, `periodic.yml`, and the rest of the touched workflows validate on this PR (no "input not defined" errors).
- [ ] On this PR (a `pull_request` event with `use-arc=false`), the EC2 build/test jobs run and the OSDC ones are skipped — no shadow-mode dual run.
- [ ] After landing, push a `ciflow/trunk/*` tag and confirm only one of EC2/OSDC runs based on `use-arc` (no parallel dual route).
- [ ] After landing, confirm a direct push to `main` continues to honor `use-arc` (single route as before).

Authored by Claude.
Pull Request resolved: pytorch#185181
Approved by: https://github.com/jeanschmidt
@github-actions
github-actions Bot deleted the gh/huydhn/43/head branch June 12, 2026 02:32
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
…torch#183243)

On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See pytorch#183242.

This change is to be reverted once pytorch#183242 concludes

### Testing

https://github.com/pytorch/pytorch/actions/runs/25651990199

Authored by Claude.
Pull Request resolved: pytorch#183243
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#183244
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…torch#183243)

On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See pytorch#183242.

This change is to be reverted once pytorch#183242 concludes

### Testing

https://github.com/pytorch/pytorch/actions/runs/25651990199

Authored by Claude.
Pull Request resolved: pytorch#183243
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#183244
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…183482)

Similar to pytorch#183243, this is to be cleaned up once pytorch#183242 concludes

## Summary

Two changes that together let trunk runs (via `ciflow/trunk/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror pytorch#183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from pytorch#183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of pytorch#183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: pytorch#183482
Approved by: https://github.com/jeanschmidt
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…ytorch#183482)

Similar to pytorch#183243, this is to be cleaned up once pytorch#183242 concludes

## Summary

Three changes that together let workflow runs (via `ciflow/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror pytorch#183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from pytorch#183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### 3. Extend `test-matrix-osdc` plumbing to the remaining OSDC-migrated workflows

Apply the same `test-matrix-osdc: ${{ needs.<build>.outputs.test-matrix-osdc }}` pattern to every `_linux-test.yml` caller in the rest of the OSDC-migrated workflows so `test-osdc` routes to the OSDC-remapped labels for those flows too. 13 files, 27 sites: `attention_op_microbenchmark.yml`, `h100-symm-mem.yml`, `inductor-micro-benchmark.yml`, `inductor-perf-compare.yml`, `inductor-perf-test-nightly.yml`, `inductor-perf-test-nightly-h100.yml`, `inductor-unittest.yml`, `operator_microbenchmark.yml`, `operator_microbenchmark_compare.yml`, `slow.yml`, `test-b200.yml`, `test-h100.yml`, `tsan.yml`.

`pull.yml` is already plumbed (pytorch#183243). `nightly.yml` migrates only the build side (no `_linux-test.yml` caller). The ROCm test job in the operator microbenchmark workflows uses `_rocm-test.yml` and is left alone.

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of pytorch#183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Push a ciflow tag for one of the newly-plumbed workflows (e.g. `ciflow/slow/*` or `ciflow/inductor/*`) and confirm `test-osdc` runs against `mt-`-prefixed runner labels.
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: pytorch#183482
Approved by: https://github.com/jeanschmidt
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
## Summary

- Reverts pytorch#183243 and pytorch#183482, ending the EC2/OSDC side-by-side shadow-mode comparison (issue pytorch#183242). `_linux-build.yml` / `_linux-test.yml` go back to a single-route model gated by `use-arc`; the EC2 route again uses `runner_prefix` directly instead of the shadow-mode strip-prefix step.
- Removes the `test-matrix-osdc:` callsite line from the 10 OSDC-migrated workflows that adopted the schema after the shadow-traffic PRs landed (`dtensor`, `dynamo-unittest`, `h100-cutlass-backend`, `inductor`, `inductor-micro-benchmark-x86`, `inductor-nightly`, `inductor-periodic`, `operator_benchmark`, `periodic`, `torchtitan`). Without this cleanup the reusable workflow would reject those callsites with "input not defined" once the schema goes away.
- Leaves pytorch#183244 (auto-label `no-runner-experiments` on `.ci/docker/` PRs) in place: that label is a general runner-experiment opt-out in `runner_determinator.py` and is not specific to shadow traffic.

After this change, we will still running 100% on OSDC with the option to dial down if needed.

## Test plan

- [ ] `pull.yml`, `trunk.yml`, `periodic.yml`, and the rest of the touched workflows validate on this PR (no "input not defined" errors).
- [ ] On this PR (a `pull_request` event with `use-arc=false`), the EC2 build/test jobs run and the OSDC ones are skipped — no shadow-mode dual run.
- [ ] After landing, push a `ciflow/trunk/*` tag and confirm only one of EC2/OSDC runs based on `use-arc` (no parallel dual route).
- [ ] After landing, confirm a direct push to `main` continues to honor `use-arc` (single route as before).

Authored by Claude.
Pull Request resolved: pytorch#185181
Approved by: https://github.com/jeanschmidt
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…torch#183243)

On pull_request events, the reusable Linux build and test workflows now
always execute the EC2 job regardless of the use-arc input. When a caller
passes use-arc=true on a PR, the OSDC job still runs alongside, giving us
shadow-mode data on OSDC without losing EC2 signal. Pushed commits and
scheduled workflows continue to honor use-arc as before, selecting exactly
one route. See pytorch#183242.

This change is to be reverted once pytorch#183242 concludes

### Testing

https://github.com/pytorch/pytorch/actions/runs/25651990199

Authored by Claude.
Pull Request resolved: pytorch#183243
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#183244
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…183482)

Similar to pytorch#183243, this is to be cleaned up once pytorch#183242 concludes

## Summary

Two changes that together let trunk runs (via `ciflow/trunk/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror pytorch#183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from pytorch#183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of pytorch#183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: pytorch#183482
Approved by: https://github.com/jeanschmidt
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ytorch#183482)

Similar to pytorch#183243, this is to be cleaned up once pytorch#183242 concludes

## Summary

Three changes that together let workflow runs (via `ciflow/*`) execute EC2 and OSDC test routes in parallel during the OSDC shadow-mode experiment.

### 1. `trunk.yml` plumbing

Mirror pytorch#183243's `pull.yml` change so the four `_linux-test.yml` callers forward the OSDC-remapped test matrix emitted by `_linux-build.yml`. Without this, `test-osdc` falls back to the EC2 test matrix and would schedule OSDC tests against non-`mt-` runner labels. Sites touched:

- `linux-jammy-cuda13_0-py3_10-gcc11-test`
- `verify-cachebench-cpu-test`
- `linux-jammy-py3-clang18-executorch-test`
- `linux-jammy-aarch64-py3_10-gcc13-test`

### 2. Widened shadow-mode guard in `_linux-build.yml` / `_linux-test.yml`

The guard from pytorch#183243 was `github.event_name == 'pull_request'`. That excludes trunk runs, which are `push` events. Add `startsWith(github.ref, 'refs/tags/ciflow/')` so ciflow tag pushes also dual-route. Direct pushes to `main` / `release/*` / `landchecks/*` use `refs/heads/...` and are not matched, so they keep the original single-route behavior (use-arc selects one).

### 3. Extend `test-matrix-osdc` plumbing to the remaining OSDC-migrated workflows

Apply the same `test-matrix-osdc: ${{ needs.<build>.outputs.test-matrix-osdc }}` pattern to every `_linux-test.yml` caller in the rest of the OSDC-migrated workflows so `test-osdc` routes to the OSDC-remapped labels for those flows too. 13 files, 27 sites: `attention_op_microbenchmark.yml`, `h100-symm-mem.yml`, `inductor-micro-benchmark.yml`, `inductor-perf-compare.yml`, `inductor-perf-test-nightly.yml`, `inductor-perf-test-nightly-h100.yml`, `inductor-unittest.yml`, `operator_microbenchmark.yml`, `operator_microbenchmark_compare.yml`, `slow.yml`, `test-b200.yml`, `test-h100.yml`, `tsan.yml`.

`pull.yml` is already plumbed (pytorch#183243). `nightly.yml` migrates only the build side (no `_linux-test.yml` caller). The ROCm test job in the operator microbenchmark workflows uses `_rocm-test.yml` and is left alone.

### Where each event lands now

| Event | `use-arc=true` | `use-arc=false` |
|---|---|---|
| pull_request | EC2 + OSDC (unchanged) | EC2 only |
| push to ciflow/* tag | **EC2 + OSDC (new)** | EC2 only |
| push to main/release/landchecks | OSDC only | EC2 only |
| schedule / workflow_dispatch | OSDC only | EC2 only |

Part of pytorch#183242. To be reverted once that experiment concludes.

## Test plan

- [ ] Push a ciflow/trunk tag and confirm both the EC2 `build`/`test` jobs and the `build-osdc`/`test-osdc` jobs execute (not `skipped`).
- [ ] Push a ciflow tag for one of the newly-plumbed workflows (e.g. `ciflow/slow/*` or `ciflow/inductor/*`) and confirm `test-osdc` runs against `mt-`-prefixed runner labels.
- [ ] Confirm a direct merge to `main` does **not** dual-route (only one of EC2/OSDC runs based on `use-arc`).
- [ ] Confirm scheduled trunk runs and `workflow_dispatch` runs are unchanged.

Authored by Claude.
Pull Request resolved: pytorch#183482
Approved by: https://github.com/jeanschmidt
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
## Summary

- Reverts pytorch#183243 and pytorch#183482, ending the EC2/OSDC side-by-side shadow-mode comparison (issue pytorch#183242). `_linux-build.yml` / `_linux-test.yml` go back to a single-route model gated by `use-arc`; the EC2 route again uses `runner_prefix` directly instead of the shadow-mode strip-prefix step.
- Removes the `test-matrix-osdc:` callsite line from the 10 OSDC-migrated workflows that adopted the schema after the shadow-traffic PRs landed (`dtensor`, `dynamo-unittest`, `h100-cutlass-backend`, `inductor`, `inductor-micro-benchmark-x86`, `inductor-nightly`, `inductor-periodic`, `operator_benchmark`, `periodic`, `torchtitan`). Without this cleanup the reusable workflow would reject those callsites with "input not defined" once the schema goes away.
- Leaves pytorch#183244 (auto-label `no-runner-experiments` on `.ci/docker/` PRs) in place: that label is a general runner-experiment opt-out in `runner_determinator.py` and is not specific to shadow traffic.

After this change, we will still running 100% on OSDC with the option to dial down if needed.

## Test plan

- [ ] `pull.yml`, `trunk.yml`, `periodic.yml`, and the rest of the touched workflows validate on this PR (no "input not defined" errors).
- [ ] On this PR (a `pull_request` event with `use-arc=false`), the EC2 build/test jobs run and the OSDC ones are skipped — no shadow-mode dual run.
- [ ] After landing, push a `ciflow/trunk/*` tag and confirm only one of EC2/OSDC runs based on `use-arc` (no parallel dual route).
- [ ] After landing, confirm a direct push to `main` continues to honor `use-arc` (single route as before).

Authored by Claude.
Pull Request resolved: pytorch#185181
Approved by: https://github.com/jeanschmidt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants