Skip to content

Wrap up OSDC/EC2 shadow-traffic experiment - #185181

Closed
huydhn wants to merge 1 commit into
pytorch:mainfrom
huydhn:revert-shadow-traffic
Closed

huydhn wants to merge 1 commit into
pytorch:mainfrom
huydhn:revert-shadow-traffic

Conversation

@huydhn

@huydhn huydhn commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

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.

Reverts the two PRs that ran EC2 and OSDC in parallel as a
shadow-mode comparison (issue pytorch#183242), now that side-by-side data is
no longer needed:

- Revert "Run EC2 and OSDC in parallel on all workflows via ciflow tag
  pushes (pytorch#183482)"
- Revert "Always run EC2 route on pull requests in _linux-build/_linux-test
  (pytorch#183243)"

`_linux-build.yml` and `_linux-test.yml` go back to a single-route model
where `use-arc` selects either the EC2 build/test job or the OSDC one,
and the EC2 route again uses `runner_prefix` directly instead of the
shadow-mode strip-prefix step.

Since pytorch#183243 also introduced the `test-matrix-osdc` input/output schema
on the reusable workflows, this PR also strips the `test-matrix-osdc:`
plumbing 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 that cleanup the reusable workflow would reject
those callsites with "input not defined".

PR pytorch#183244 (auto-label `no-runner-experiments` on `.ci/docker/` PRs) is
intentionally left in place: the `no-runner-experiments` label is a
general runner-experiment opt-out in `runner_determinator.py`, not
specific to the shadow-traffic experiment.

Test Plan:
- ``grep -rn 'test-matrix-osdc\|shadow-mode\|183242' .github/workflows/``
  returns no matches.
- ``git diff upstream/main`` on `_linux-build.yml` / `_linux-test.yml`
  matches the inverse of pytorch#183243 + pytorch#183482; the 10 follow-up workflows
  each lose exactly their `test-matrix-osdc:` lines and nothing else.
- Push the resulting branch as a PR and confirm `pull` / `trunk` /
  `periodic` etc. validate (no "input not defined" errors) and run the
  expected single route based on `use-arc`.

Authored by Claude.
@huydhn
huydhn requested a review from a team as a code owner May 26, 2026 01:47
@pytorch-bot

pytorch-bot Bot commented May 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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:

✅ You can merge normally! (6 Unrelated Failures)

As of commit 6658c92 with merge base cc94599 (image):

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.

@jeanschmidt

Copy link
Copy Markdown
Contributor

This is a much needed cleanup.

@huydhn

huydhn commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'Go go go'

@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

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
huydhn added a commit that referenced this pull request Jul 7, 2026
The OSDC/EC2 shadow-traffic experiment (#185181) is wrapped up, so the
legacy EC2 build job is no longer needed. Remove it and promote the
OSDC/ARC job (build-osdc) to be the sole build job named `build`.

The `use-arc` input and its `use-arc: true` call sites are intentionally
left in place for a follow-up cleanup. s390x, which cannot run on ARC,
will be moved to a dedicated build workflow in a separate change; until
then its callers (s390.yml, s390x-periodic.yml) do not set use-arc and
so no longer trigger a build here.

Authored with the assistance of Claude Code.

Test Plan:
Static validation only (workflow change):

    python3 -c "import yaml; yaml.safe_load(open('.github/workflows/_linux-build.yml'))"
    grep -rn build-osdc .github/   # no matches

Full validation is via CI on the PR (ciflow tags exercising the OSDC build path).


ghstack-source-id: ada496c
Pull-Request: #189113
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
## 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants