Skip to content

Run EC2 and OSDC in parallel on all workflows via ciflow tag pushes - #183482

Closed
huydhn wants to merge 2 commits into
pytorch:mainfrom
huydhn:huydo/trunk-osdc-shadow-mode
Closed

huydhn wants to merge 2 commits into
pytorch:mainfrom
huydhn:huydo/trunk-osdc-shadow-mode

Conversation

@huydhn

@huydhn huydhn commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

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.

@huydhn
huydhn requested a review from a team as a code owner May 12, 2026 22:43
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label May 12, 2026
@pytorch-bot

pytorch-bot Bot commented May 12, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 57 Pending

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

UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:

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

@huydhn huydhn added the ciflow/trunk Trigger trunk jobs on your pull request label 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.
@huydhn
huydhn force-pushed the huydo/trunk-osdc-shadow-mode branch from b073e6e to 00806fe Compare May 12, 2026 22:58
@huydhn huydhn changed the title Wire test-matrix-osdc through trunk.yml for OSDC shadow mode Run EC2 and OSDC in parallel on trunk via ciflow tag pushes May 12, 2026
@huydhn

huydhn commented May 12, 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

huydhn commented May 13, 2026 •

Copy link
Copy Markdown
Contributor Author

@pytorchbot revert -m 'Let do this for all workflows for completeness' -c weird

@huydhn huydhn changed the title Run EC2 and OSDC in parallel on trunk via ciflow tag pushes Run EC2 and OSDC in parallel on all workflows via ciflow tag pushes May 13, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Halting the revert as the revert comment has been edited.

@huydhn

huydhn commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot revert -m 'Let do this for all workflows for parity between EC2 and OSDC' -c weird

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request May 13, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@huydhn your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels 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.
@huydhn huydhn removed the ci-no-td Do not run TD on this PR label May 13, 2026
@huydhn

huydhn commented May 13, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'CI only tweaks, lint jobs have passed'

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

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
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 20, 2026
## Summary

Remove `xfailIf(IS_ARM64 and IS_CPU_CAPABILITY_SVE256)` from `test_sdpa_rewriter_14_cpu` in `test/inductor/test_fused_attention.py`.

The new OSDC aarch64 runner (`mt-l-arm64g3-16-62`, enabled trunk-wide via #183482) reports `IS_CPU_CAPABILITY_SVE256=True` but does not reproduce the numerical mismatch from #177244. The decorator now flips passing runs to `FAILED CONSISTENTLY` via "Unexpected success" whenever target determination pulls the file into the shard.

Failure first surfaced at `07734446eb` on `trunk / linux-jammy-aarch64-py3.10 / test-osdc (default, 4, 5, mt-l-arm64g3-16-62)` and has been consistent across every subsequent main commit whose TD scope selected `test_fused_attention.py`.

Closes #177244 (if the issue still applies to the older `m7g.4xlarge` runner family, we can re-narrow the gate later).

## Test plan

- [ ] `pull / trunk` aarch64 OSDC test-osdc shard 4/5 turns green on this branch.
- [ ] No regressions on x86 or other aarch64 shards.

Pull Request resolved: #184451
Approved by: https://github.com/huydhn

Co-authored-by: Huy Do <[email protected]>
pytorchmergebot pushed a commit to weishi-deng/pytorch that referenced this pull request May 21, 2026
## Summary

Remove `xfailIf(IS_ARM64 and IS_CPU_CAPABILITY_SVE256)` from `test_sdpa_rewriter_14_cpu` in `test/inductor/test_fused_attention.py`.

The new OSDC aarch64 runner (`mt-l-arm64g3-16-62`, enabled trunk-wide via pytorch#183482) reports `IS_CPU_CAPABILITY_SVE256=True` but does not reproduce the numerical mismatch from pytorch#177244. The decorator now flips passing runs to `FAILED CONSISTENTLY` via "Unexpected success" whenever target determination pulls the file into the shard.

Failure first surfaced at `07734446eb` on `trunk / linux-jammy-aarch64-py3.10 / test-osdc (default, 4, 5, mt-l-arm64g3-16-62)` and has been consistent across every subsequent main commit whose TD scope selected `test_fused_attention.py`.

Closes pytorch#177244 (if the issue still applies to the older `m7g.4xlarge` runner family, we can re-narrow the gate later).

## Test plan

- [ ] `pull / trunk` aarch64 OSDC test-osdc shard 4/5 turns green on this branch.
- [ ] No regressions on x86 or other aarch64 shards.

Pull Request resolved: pytorch#184451
Approved by: https://github.com/huydhn

Co-authored-by: Huy Do <[email protected]>
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
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
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

Remove `xfailIf(IS_ARM64 and IS_CPU_CAPABILITY_SVE256)` from `test_sdpa_rewriter_14_cpu` in `test/inductor/test_fused_attention.py`.

The new OSDC aarch64 runner (`mt-l-arm64g3-16-62`, enabled trunk-wide via pytorch#183482) reports `IS_CPU_CAPABILITY_SVE256=True` but does not reproduce the numerical mismatch from pytorch#177244. The decorator now flips passing runs to `FAILED CONSISTENTLY` via "Unexpected success" whenever target determination pulls the file into the shard.

Failure first surfaced at `07734446eb` on `trunk / linux-jammy-aarch64-py3.10 / test-osdc (default, 4, 5, mt-l-arm64g3-16-62)` and has been consistent across every subsequent main commit whose TD scope selected `test_fused_attention.py`.

Closes pytorch#177244 (if the issue still applies to the older `m7g.4xlarge` runner family, we can re-narrow the gate later).

## Test plan

- [ ] `pull / trunk` aarch64 OSDC test-osdc shard 4/5 turns green on this branch.
- [ ] No regressions on x86 or other aarch64 shards.

Pull Request resolved: pytorch#184451
Approved by: https://github.com/huydhn

Co-authored-by: Huy Do <[email protected]>
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
…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
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

Remove `xfailIf(IS_ARM64 and IS_CPU_CAPABILITY_SVE256)` from `test_sdpa_rewriter_14_cpu` in `test/inductor/test_fused_attention.py`.

The new OSDC aarch64 runner (`mt-l-arm64g3-16-62`, enabled trunk-wide via pytorch#183482) reports `IS_CPU_CAPABILITY_SVE256=True` but does not reproduce the numerical mismatch from pytorch#177244. The decorator now flips passing runs to `FAILED CONSISTENTLY` via "Unexpected success" whenever target determination pulls the file into the shard.

Failure first surfaced at `07734446eb` on `trunk / linux-jammy-aarch64-py3.10 / test-osdc (default, 4, 5, mt-l-arm64g3-16-62)` and has been consistent across every subsequent main commit whose TD scope selected `test_fused_attention.py`.

Closes pytorch#177244 (if the issue still applies to the older `m7g.4xlarge` runner family, we can re-narrow the gate later).

## Test plan

- [ ] `pull / trunk` aarch64 OSDC test-osdc shard 4/5 turns green on this branch.
- [ ] No regressions on x86 or other aarch64 shards.

Pull Request resolved: pytorch#184451
Approved by: https://github.com/huydhn

Co-authored-by: Huy Do <[email protected]>
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 Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants