Skip to content

Add a dedicated _tpu-test workflow for the pallas TPU tests - #189241

Closed
huydhn wants to merge 2 commits into
gh/huydhn/78/basefrom
gh/huydhn/78/head
Closed

huydhn wants to merge 2 commits into
gh/huydhn/78/basefrom
gh/huydhn/78/head

Conversation

@huydhn

@huydhn huydhn commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

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-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 18faa07 with merge base 1c6fd72 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@huydhn
huydhn requested a review from georgehong July 8, 2026 06:56
@huydhn
huydhn marked this pull request as ready for review July 8, 2026 06:56
@huydhn
huydhn requested a review from a team as a code owner July 8, 2026 06:56
[ghstack-poisoned]
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
@huydhn

huydhn commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'TPU jobs are working now'

@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

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
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
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
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
@github-actions
github-actions Bot deleted the gh/huydhn/78/head branch August 8, 2026 02:20
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