Skip to content

Remove the use-arc parameter from linux build/test/docs workflows - #189171

Closed
huydhn wants to merge 1 commit into
gh/huydhn/73/basefrom
gh/huydhn/73/head
Closed

huydhn wants to merge 1 commit into
gh/huydhn/73/basefrom
gh/huydhn/73/head

Conversation

@huydhn

@huydhn huydhn commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

With every EC2 path now deleted, use-arc no longer selects between two
jobs in _linux-build, _linux-test, _docs, and _linux-test-stable-fa3 -- it
is always the OSDC/ARC job. Drop the input from those four reusable
workflows, drop the now-constant && inputs.use-arc job guards (the
surviving job runs unconditionally for the pytorch org), and strip
use-arc: true from every call site that targeted them (~150 lines across
the caller workflows).

The runner-mapping logic is unaffected: the runs-on label expression and
the map_ec2_to_arc.py step were never gated on use-arc; they are intrinsic
to the OSDC job and keep running as before.

The use-arc input on the setup-linux composite action is intentionally
kept (it still gates real setup steps and defaults to the EC2 path), so the
use-arc: true passed to setup-linux is preserved. Fully retiring that,
plus the dead use-arc output on _runner-determinator, is left for a
follow-up.

Authored with the assistance of Claude Code.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 29 Pending, 6 Unclassified Failures

As of commit 40831d3 with merge base 6d2fbad (image):

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

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 Jul 7, 2026
@huydhn

huydhn commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'CI looks good'

@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

huydhn added a commit that referenced this pull request Jul 8, 2026
TPU tests run on the linux.google.tpuv7x.1 runners and can't use the
OSDC/ARC test path. They used to run via the EC2 test job in
_linux-test.yml (the pallas TPU test never set use-arc, so it took the
`!use-arc` branch). Removing that EC2 path (#189117) left the TPU test
gated behind `inputs.use-arc`, so it was silently skipped; then removing
the use-arc gate (#189171) made it run on the OSDC-shaped `test` job
(container: with an ARC image + --gpus all), which is wrong for TPU and
fails.

Extract the TPU test path into its own _tpu-test.yml (mirroring
_s390x-test.yml): setup-linux, the TPU docker flags / TORCH_TPU /
install_torch_tpu.sh path from the old EC2 test job, on the host docker
run/exec model. The GPU-, b200-, s390x-, and container-runner-only steps
are dropped. inductor-pallas.yml's TPU test job now calls it; the TPU
build is unchanged (it legitimately builds on OSDC).

Authored with the assistance of Claude Code.

Test Plan: exercised by the inductor-pallas workflow (ciflow/inductor)
running the pallas-tpu-py3.12-inductor test on linux.google.tpuv7x.1.

ghstack-source-id: e9d2689
Pull-Request: #189241
pytorchmergebot pushed a commit that referenced this pull request Jul 8, 2026
TPU tests run on the linux.google.tpuv7x.1 runners and can't use the
OSDC/ARC test path. They used to run via the EC2 test job in
_linux-test.yml (the pallas TPU test never set use-arc, so it took the
`!use-arc` branch). Removing that EC2 path (#189117) left the TPU test
gated behind `inputs.use-arc`, so it was silently skipped; then removing
the use-arc gate (#189171) made it run on the OSDC-shaped `test` job
(container: with an ARC image + --gpus all), which is wrong for TPU and
fails.

Extract the TPU test path into its own _tpu-test.yml (mirroring
_s390x-test.yml): setup-linux, the TPU docker flags / TORCH_TPU /
install_torch_tpu.sh path from the old EC2 test job, on the host docker
run/exec model. The GPU-, b200-, s390x-, and container-runner-only steps
are dropped. inductor-pallas.yml's TPU test job now calls it; the TPU
build is unchanged (it legitimately builds on OSDC).

Authored with the assistance of Claude Code.

Test Plan: exercised by the inductor-pallas workflow (ciflow/inductor)
running the pallas-tpu-py3.12-inductor test on linux.google.tpuv7x.1.
Pull Request resolved: #189241
Approved by: https://github.com/atalman
zxiiro added a commit that referenced this pull request Jul 13, 2026
_runner-determinator.yml checked out .github/scripts/runner_determinator.py
from github.event.pull_request.head.sha, so PRs whose branch predates a
change to the script (e.g. the "lf." -> "lf-" prefix rename, or the EC2
build-path removal in #189113/#189171) run a stale copy. That stale copy
can emit a runner-label prefix main's build workflow no longer knows how
to route (e.g. "lf.l-x86iavx512-8-64" - a dead EC2-era dotted prefix
glued onto a post-#189113 ARC-only label), leaving the job stuck
unroutable instead of just landing on the wrong fleet.

The PR-head ref was introduced in #182579 only so ci-docker-hash reflects
the PR's own .ci/docker tree, not to let PRs self-test determinator
changes. Split the checkout in two: the script now comes from the
default ref (main, or the merge commit for pull_request events, which
still includes the PR's own edits to the script), while .ci/docker
keeps using head.sha via a separate sparse checkout under pr-head/.

This also removes the --help probing for --workflow-name, since the
script is no longer stale relative to main and always supports the flag.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: Thanh Ha <[email protected]>
pytorchmergebot pushed a commit that referenced this pull request Jul 14, 2026
_runner-determinator.yml checked out .github/scripts/runner_determinator.py from github.event.pull_request.head.sha, so PRs whose branch predates a change to the script (e.g. the "lf." -> "lf-" prefix rename, or the EC2 build-path removal in #189113/#189171) run a stale copy. That stale copy can emit a runner-label prefix main's build workflow no longer knows how to route (e.g. "lf.l-x86iavx512-8-64" - a dead EC2-era dotted prefix glued onto a post-#189113 ARC-only label), leaving the job stuck unroutable instead of just landing on the wrong fleet.

The PR-head ref was introduced in #182579 only so ci-docker-hash reflects the PR's own .ci/docker tree, not to let PRs self-test determinator changes. Split the checkout in two: the script now comes from the default ref (main, or the merge commit for pull_request events, which still includes the PR's own edits to the script), while .ci/docker keeps using head.sha via a separate sparse checkout under pr-head/.

This also removes the --help probing for --workflow-name, since the script is no longer stale relative to main and always supports the flag.
Pull Request resolved: #189782
Approved by: https://github.com/huydhn, https://github.com/jeanschmidt

Co-authored-by: Claude Sonnet 5 <[email protected]>
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…torch#189171)

With every EC2 path now deleted, use-arc no longer selects between two
jobs in _linux-build, _linux-test, _docs, and _linux-test-stable-fa3 -- it
is always the OSDC/ARC job. Drop the input from those four reusable
workflows, drop the now-constant `&& inputs.use-arc` job guards (the
surviving job runs unconditionally for the pytorch org), and strip
`use-arc: true` from every call site that targeted them (~150 lines across
the caller workflows).

The runner-mapping logic is unaffected: the runs-on label expression and
the map_ec2_to_arc.py step were never gated on use-arc; they are intrinsic
to the OSDC job and keep running as before.

The `use-arc` input on the setup-linux composite action is intentionally
kept (it still gates real setup steps and defaults to the EC2 path), so the
`use-arc: true` passed to setup-linux is preserved. Fully retiring that,
plus the dead use-arc output on _runner-determinator, is left for a
follow-up.

Authored with the assistance of Claude Code.
Pull Request resolved: pytorch#189171
Approved by: https://github.com/izaitsevfb
ghstack dependencies: pytorch#189169, pytorch#189170
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…189241)

TPU tests run on the linux.google.tpuv7x.1 runners and can't use the
OSDC/ARC test path. They used to run via the EC2 test job in
_linux-test.yml (the pallas TPU test never set use-arc, so it took the
`!use-arc` branch). Removing that EC2 path (pytorch#189117) left the TPU test
gated behind `inputs.use-arc`, so it was silently skipped; then removing
the use-arc gate (pytorch#189171) made it run on the OSDC-shaped `test` job
(container: with an ARC image + --gpus all), which is wrong for TPU and
fails.

Extract the TPU test path into its own _tpu-test.yml (mirroring
_s390x-test.yml): setup-linux, the TPU docker flags / TORCH_TPU /
install_torch_tpu.sh path from the old EC2 test job, on the host docker
run/exec model. The GPU-, b200-, s390x-, and container-runner-only steps
are dropped. inductor-pallas.yml's TPU test job now calls it; the TPU
build is unchanged (it legitimately builds on OSDC).

Authored with the assistance of Claude Code.

Test Plan: exercised by the inductor-pallas workflow (ciflow/inductor)
running the pallas-tpu-py3.12-inductor test on linux.google.tpuv7x.1.
Pull Request resolved: pytorch#189241
Approved by: https://github.com/atalman
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
_runner-determinator.yml checked out .github/scripts/runner_determinator.py from github.event.pull_request.head.sha, so PRs whose branch predates a change to the script (e.g. the "lf." -> "lf-" prefix rename, or the EC2 build-path removal in pytorch#189113/pytorch#189171) run a stale copy. That stale copy can emit a runner-label prefix main's build workflow no longer knows how to route (e.g. "lf.l-x86iavx512-8-64" - a dead EC2-era dotted prefix glued onto a post-pytorch#189113 ARC-only label), leaving the job stuck unroutable instead of just landing on the wrong fleet.

The PR-head ref was introduced in pytorch#182579 only so ci-docker-hash reflects the PR's own .ci/docker tree, not to let PRs self-test determinator changes. Split the checkout in two: the script now comes from the default ref (main, or the merge commit for pull_request events, which still includes the PR's own edits to the script), while .ci/docker keeps using head.sha via a separate sparse checkout under pr-head/.

This also removes the --help probing for --workflow-name, since the script is no longer stale relative to main and always supports the flag.
Pull Request resolved: pytorch#189782
Approved by: https://github.com/huydhn, https://github.com/jeanschmidt

Co-authored-by: Claude Sonnet 5 <[email protected]>
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…torch#189171)

With every EC2 path now deleted, use-arc no longer selects between two
jobs in _linux-build, _linux-test, _docs, and _linux-test-stable-fa3 -- it
is always the OSDC/ARC job. Drop the input from those four reusable
workflows, drop the now-constant `&& inputs.use-arc` job guards (the
surviving job runs unconditionally for the pytorch org), and strip
`use-arc: true` from every call site that targeted them (~150 lines across
the caller workflows).

The runner-mapping logic is unaffected: the runs-on label expression and
the map_ec2_to_arc.py step were never gated on use-arc; they are intrinsic
to the OSDC job and keep running as before.

The `use-arc` input on the setup-linux composite action is intentionally
kept (it still gates real setup steps and defaults to the EC2 path), so the
`use-arc: true` passed to setup-linux is preserved. Fully retiring that,
plus the dead use-arc output on _runner-determinator, is left for a
follow-up.

Authored with the assistance of Claude Code.
Pull Request resolved: pytorch#189171
Approved by: https://github.com/izaitsevfb
ghstack dependencies: pytorch#189169, pytorch#189170
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…189241)

TPU tests run on the linux.google.tpuv7x.1 runners and can't use the
OSDC/ARC test path. They used to run via the EC2 test job in
_linux-test.yml (the pallas TPU test never set use-arc, so it took the
`!use-arc` branch). Removing that EC2 path (pytorch#189117) left the TPU test
gated behind `inputs.use-arc`, so it was silently skipped; then removing
the use-arc gate (pytorch#189171) made it run on the OSDC-shaped `test` job
(container: with an ARC image + --gpus all), which is wrong for TPU and
fails.

Extract the TPU test path into its own _tpu-test.yml (mirroring
_s390x-test.yml): setup-linux, the TPU docker flags / TORCH_TPU /
install_torch_tpu.sh path from the old EC2 test job, on the host docker
run/exec model. The GPU-, b200-, s390x-, and container-runner-only steps
are dropped. inductor-pallas.yml's TPU test job now calls it; the TPU
build is unchanged (it legitimately builds on OSDC).

Authored with the assistance of Claude Code.

Test Plan: exercised by the inductor-pallas workflow (ciflow/inductor)
running the pallas-tpu-py3.12-inductor test on linux.google.tpuv7x.1.
Pull Request resolved: pytorch#189241
Approved by: https://github.com/atalman
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
_runner-determinator.yml checked out .github/scripts/runner_determinator.py from github.event.pull_request.head.sha, so PRs whose branch predates a change to the script (e.g. the "lf." -> "lf-" prefix rename, or the EC2 build-path removal in pytorch#189113/pytorch#189171) run a stale copy. That stale copy can emit a runner-label prefix main's build workflow no longer knows how to route (e.g. "lf.l-x86iavx512-8-64" - a dead EC2-era dotted prefix glued onto a post-pytorch#189113 ARC-only label), leaving the job stuck unroutable instead of just landing on the wrong fleet.

The PR-head ref was introduced in pytorch#182579 only so ci-docker-hash reflects the PR's own .ci/docker tree, not to let PRs self-test determinator changes. Split the checkout in two: the script now comes from the default ref (main, or the merge commit for pull_request events, which still includes the PR's own edits to the script), while .ci/docker keeps using head.sha via a separate sparse checkout under pr-head/.

This also removes the --help probing for --workflow-name, since the script is no longer stale relative to main and always supports the flag.
Pull Request resolved: pytorch#189782
Approved by: https://github.com/huydhn, https://github.com/jeanschmidt

Co-authored-by: Claude Sonnet 5 <[email protected]>
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
…torch#189171)

With every EC2 path now deleted, use-arc no longer selects between two
jobs in _linux-build, _linux-test, _docs, and _linux-test-stable-fa3 -- it
is always the OSDC/ARC job. Drop the input from those four reusable
workflows, drop the now-constant `&& inputs.use-arc` job guards (the
surviving job runs unconditionally for the pytorch org), and strip
`use-arc: true` from every call site that targeted them (~150 lines across
the caller workflows).

The runner-mapping logic is unaffected: the runs-on label expression and
the map_ec2_to_arc.py step were never gated on use-arc; they are intrinsic
to the OSDC job and keep running as before.

The `use-arc` input on the setup-linux composite action is intentionally
kept (it still gates real setup steps and defaults to the EC2 path), so the
`use-arc: true` passed to setup-linux is preserved. Fully retiring that,
plus the dead use-arc output on _runner-determinator, is left for a
follow-up.

Authored with the assistance of Claude Code.
Pull Request resolved: pytorch#189171
Approved by: https://github.com/izaitsevfb
ghstack dependencies: pytorch#189169, pytorch#189170
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
…189241)

TPU tests run on the linux.google.tpuv7x.1 runners and can't use the
OSDC/ARC test path. They used to run via the EC2 test job in
_linux-test.yml (the pallas TPU test never set use-arc, so it took the
`!use-arc` branch). Removing that EC2 path (pytorch#189117) left the TPU test
gated behind `inputs.use-arc`, so it was silently skipped; then removing
the use-arc gate (pytorch#189171) made it run on the OSDC-shaped `test` job
(container: with an ARC image + --gpus all), which is wrong for TPU and
fails.

Extract the TPU test path into its own _tpu-test.yml (mirroring
_s390x-test.yml): setup-linux, the TPU docker flags / TORCH_TPU /
install_torch_tpu.sh path from the old EC2 test job, on the host docker
run/exec model. The GPU-, b200-, s390x-, and container-runner-only steps
are dropped. inductor-pallas.yml's TPU test job now calls it; the TPU
build is unchanged (it legitimately builds on OSDC).

Authored with the assistance of Claude Code.

Test Plan: exercised by the inductor-pallas workflow (ciflow/inductor)
running the pallas-tpu-py3.12-inductor test on linux.google.tpuv7x.1.
Pull Request resolved: pytorch#189241
Approved by: https://github.com/atalman
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
_runner-determinator.yml checked out .github/scripts/runner_determinator.py from github.event.pull_request.head.sha, so PRs whose branch predates a change to the script (e.g. the "lf." -> "lf-" prefix rename, or the EC2 build-path removal in pytorch#189113/pytorch#189171) run a stale copy. That stale copy can emit a runner-label prefix main's build workflow no longer knows how to route (e.g. "lf.l-x86iavx512-8-64" - a dead EC2-era dotted prefix glued onto a post-pytorch#189113 ARC-only label), leaving the job stuck unroutable instead of just landing on the wrong fleet.

The PR-head ref was introduced in pytorch#182579 only so ci-docker-hash reflects the PR's own .ci/docker tree, not to let PRs self-test determinator changes. Split the checkout in two: the script now comes from the default ref (main, or the merge commit for pull_request events, which still includes the PR's own edits to the script), while .ci/docker keeps using head.sha via a separate sparse checkout under pr-head/.

This also removes the --help probing for --workflow-name, since the script is no longer stale relative to main and always supports the flag.
Pull Request resolved: pytorch#189782
Approved by: https://github.com/huydhn, https://github.com/jeanschmidt

Co-authored-by: Claude Sonnet 5 <[email protected]>
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…torch#189171)

With every EC2 path now deleted, use-arc no longer selects between two
jobs in _linux-build, _linux-test, _docs, and _linux-test-stable-fa3 -- it
is always the OSDC/ARC job. Drop the input from those four reusable
workflows, drop the now-constant `&& inputs.use-arc` job guards (the
surviving job runs unconditionally for the pytorch org), and strip
`use-arc: true` from every call site that targeted them (~150 lines across
the caller workflows).

The runner-mapping logic is unaffected: the runs-on label expression and
the map_ec2_to_arc.py step were never gated on use-arc; they are intrinsic
to the OSDC job and keep running as before.

The `use-arc` input on the setup-linux composite action is intentionally
kept (it still gates real setup steps and defaults to the EC2 path), so the
`use-arc: true` passed to setup-linux is preserved. Fully retiring that,
plus the dead use-arc output on _runner-determinator, is left for a
follow-up.

Authored with the assistance of Claude Code.
Pull Request resolved: pytorch#189171
Approved by: https://github.com/izaitsevfb
ghstack dependencies: pytorch#189169, pytorch#189170
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…189241)

TPU tests run on the linux.google.tpuv7x.1 runners and can't use the
OSDC/ARC test path. They used to run via the EC2 test job in
_linux-test.yml (the pallas TPU test never set use-arc, so it took the
`!use-arc` branch). Removing that EC2 path (pytorch#189117) left the TPU test
gated behind `inputs.use-arc`, so it was silently skipped; then removing
the use-arc gate (pytorch#189171) made it run on the OSDC-shaped `test` job
(container: with an ARC image + --gpus all), which is wrong for TPU and
fails.

Extract the TPU test path into its own _tpu-test.yml (mirroring
_s390x-test.yml): setup-linux, the TPU docker flags / TORCH_TPU /
install_torch_tpu.sh path from the old EC2 test job, on the host docker
run/exec model. The GPU-, b200-, s390x-, and container-runner-only steps
are dropped. inductor-pallas.yml's TPU test job now calls it; the TPU
build is unchanged (it legitimately builds on OSDC).

Authored with the assistance of Claude Code.

Test Plan: exercised by the inductor-pallas workflow (ciflow/inductor)
running the pallas-tpu-py3.12-inductor test on linux.google.tpuv7x.1.
Pull Request resolved: pytorch#189241
Approved by: https://github.com/atalman
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
_runner-determinator.yml checked out .github/scripts/runner_determinator.py from github.event.pull_request.head.sha, so PRs whose branch predates a change to the script (e.g. the "lf." -> "lf-" prefix rename, or the EC2 build-path removal in pytorch#189113/pytorch#189171) run a stale copy. That stale copy can emit a runner-label prefix main's build workflow no longer knows how to route (e.g. "lf.l-x86iavx512-8-64" - a dead EC2-era dotted prefix glued onto a post-pytorch#189113 ARC-only label), leaving the job stuck unroutable instead of just landing on the wrong fleet.

The PR-head ref was introduced in pytorch#182579 only so ci-docker-hash reflects the PR's own .ci/docker tree, not to let PRs self-test determinator changes. Split the checkout in two: the script now comes from the default ref (main, or the merge commit for pull_request events, which still includes the PR's own edits to the script), while .ci/docker keeps using head.sha via a separate sparse checkout under pr-head/.

This also removes the --help probing for --workflow-name, since the script is no longer stale relative to main and always supports the flag.
Pull Request resolved: pytorch#189782
Approved by: https://github.com/huydhn, https://github.com/jeanschmidt

Co-authored-by: Claude Sonnet 5 <[email protected]>
@github-actions
github-actions Bot deleted the gh/huydhn/73/head branch August 7, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor-pallas 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