Skip to content

Synchronize test files after upstream TorchScript removal - #6178

Open
pbielak wants to merge 1 commit into
mainfrom
sync-upstream-torchjitscript
Open

pbielak wants to merge 1 commit into
mainfrom
sync-upstream-torchjitscript

Conversation

@pbielak

@pbielak pbielak commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

The upstream PR pytorch/pytorch#203621 removed the deprecated public TorchScript APIs and their tests, which broke collection of two of our wrappers:

dynamo/test_misc_xpu.py

  • upstream removed the TestTracer class from test/dynamo/test_misc.py
  • the wrapper added nothing over the upstream file (XPUImportCtx(False) applies no patches, and upstream already instantiates MiscTestsDevice for XPU), so remove it
  • move its skip_list_common.py entry to the upstreamed tests section as dynamo/test_misc.py

test_cpp_api_parity_xpu.py

  • upstream retired the C++ API parity driver, deleting test/test_cpp_api_parity.py and the test/cpp_api_parity/ helper package the wrapper imports, so remove it
  • remove its entry from skip_list_common.py
  • remove its entry from the tools/fixheaders/pytorch.yaml exclude list

Fixes #6142
Fixes #6143

The upstream PR pytorch/pytorch#203621 removed the deprecated public
TorchScript APIs and their tests, which broke collection of two of our
wrappers:

**dynamo/test_misc_xpu.py**
- upstream removed the `TestTracer` class from `test/dynamo/test_misc.py`
- the wrapper added nothing over the upstream file (`XPUImportCtx(False)` applies no patches, and upstream already instantiates `MiscTestsDevice` for XPU), so remove it
- move its `skip_list_common.py` entry to the upstreamed tests section as `dynamo/test_misc.py`

**test_cpp_api_parity_xpu.py**
- upstream retired the C++ API parity driver, deleting `test/test_cpp_api_parity.py` and the `test/cpp_api_parity/` helper package the wrapper imports, so remove it
- remove its entry from `skip_list_common.py`
- remove its entry from the `tools/fixheaders/pytorch.yaml` exclude list

Fixes #6142
Fixes #6143
@pbielak pbielak added disable_e2e Disable all e2e test jobs for the PR disable_distributed Disable distributed UT test jobs for the PR disable_auto Disable auto label workflow for PR labels Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disable_auto Disable auto label workflow for PR disable_distributed Disable distributed UT test jobs for the PR disable_e2e Disable all e2e test jobs for the PR

Projects

None yet

1 participant