Repository navigation
Description
🐛 Describe the bug with skip template
Cases:
op_ut,,third_party.torch-xpu-ops.test.xpu.dynamo.test_misc_xpu
Summary
test/xpu/dynamo/test_misc_xpu.py imports TestTracer from the upstream test/dynamo/test_misc.py, which no longer defines that class, so the wrapper raises ImportError during collection and the entire module is lost - the baseline passed 1021 cases in it. The fix is in the XPU wrapper's import list, which has to drop or replace TestTracer. Upstream also removed the other jit-tracing dynamo cases in this same run (test_jit_trace_errors, test_script_function_graph_break and test_tracing_flags_scriptable_dynamic_shapes all appear as vanished), so this is most likely part of the same TorchScript removal as g1 and g2.
ErrorLog
ImportError: cannot import name 'TestTracer' from 'dynamo.test_misc' (/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/dynamo/test_misc.py)
ImportError while importing test module '/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/dynamo/test_misc_xpu.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/github/home/.local/share/uv/python/cpython-3.12.15-linux-x86_64-gnu/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
dynamo/test_misc_xpu.py:29: in <module>
from dynamo.test_misc import (
E ImportError: cannot import name 'TestTracer' from 'dynamo.test_misc' (/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/dynamo/test_misc.py)
Reproduce
cd pytorch/third_party/torch-xpu-ops/test/xpu
pytest -sv test_misc_xpu.pyPytorch Version
| Category | Run | Date | torch | torch-xpu-ops | |
|---|---|---|---|---|---|
| op_ut | Last good | #42624021705 (op_ut) | 2026-11-09 | unknown | unknown |
| op_ut | First seen bad | #42822758512 (op_ut) | 2026-11-10 | unknown | unknown |
These test files did not fail their cases - they erased them. A module that will not import reports one row and its cases never run at all.
| Module | Category | In the baseline | Cases it used to pass |
|---|---|---|---|
third_party.torch-xpu-ops.test.xpu.dynamo.test_misc_xpu |
op_ut | was passing | 1021 |
Versions
Detail
collect_env output was not captured in this run's artifact.
Activity
torchxpubot commentedon Nov 10, 2026
Same root cause as #6140, #6141, split because the cases do not share a classification or a row shape.
daisyden commentedon Nov 11, 2026
label-issue: #6142
Root cause: wrapper imports
TestTracerfromdynamo.test_misc(test/xpu/dynamo/test_misc_xpu.py:35); the 2026-11-10 nightly dropped it. Current viable/strict still defines it (test/dynamo/test_misc.py:20944) -> transient nightly regression; module collection erased (1021 baseline cases lost).typeBugissue_typeempty; collectionImportErrorerasing a whole passing module is a reported defect.testtest: utmodulemodule: infrapriorityHighfunctionalityImportErrorat collection; the whole module fails to import.regressionApplied to this issue. Generated by a local
label-issuerun.