#198597·pytorch

DISABLED test_case (__main__.FilterTestCase)

Author: pytorch-bot[bot]Created Sep 25, 2026Updated Sep 25, 2026
Labelstriage reviewmodule: flaky-testsskippedoncall: pt2module: dynamobot-triaged

Platforms: dynamo

This test was disabled because it is failing in CI. See recent examples and the most recent trunk workflow logs.

Over the past 6 hours, it has been determined flaky in 7 workflow(s) with 14 failures and 7 successes.

Debugging instructions (after clicking on the recent samples link): DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs. To find relevant log snippets:

  1. Click on the workflow logs linked above
  2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
  3. Grep for test_case
  4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Sample error message
Traceback (most recent call last):
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/eval_frame.py", line 1261, in compile_wrapper
    result = fn(*args, **kwargs)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 2714, in __call__
    result = self._torchdynamo_orig_backend(
        frame, cache_entry, self.hooks, frame_state, skip=1
    )
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 2396, in __call__
    result = self._inner_convert(
        frame, cache_entry, hooks, frame_state, skip=skip + 1
    )
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 782, in __call__
    result = _compile(
        frame.f_code,
    ...<18 lines>...
        convert_frame_box=self._box,
    )
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 2245, in _compile
    raise InternalTorchDynamoError(
        f"{type(e).__qualname__}: {str(e)}"
    ).with_traceback(e.__traceback__) from None
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 2168, in _compile
    guarded_code, tracer_output = compile_inner(code, one_graph, hooks)
                                  ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_utils_internal.py", line 169, in wrapper_function
    return function(*args, **kwargs)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 1745, in compile_inner
    result = _compile_inner(code, one_graph, hooks)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 1805, in _compile_inner
    dynamo_output = compile_frame(
        code,
    ...<11 lines>...
        package=package,
    )
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 1640, in compile_frame
    bytecode, tracer_output = transform_code_object(code, transform)
                              ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/bytecode_transformation.py", line 1849, in transform_code_object
    tracer_output = transformations(instructions, code_options)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 1611, in transform
    tracer_output = trace_frame(
        code,
    ...<14 lines>...
        package=package,
    )
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 373, in _fn
    return fn(*args, **kwargs)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 972, in trace_frame
    run_tracer()
    ~~~~~~~~~~^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/convert_frame.py", line 953, in run_tracer
    tracer.run()
    ~~~~~~~~~~^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 2099, in run
    while self.step():
          ~~~~~~~~~^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1752, in step
    self.dispatch_table[inst.opcode](self, inst)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1110, in wrapper
    return inner_fn(self, inst)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 4791, in CALL
    self._call(inst)
    ~~~~~~~~~~^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 4782, in _call
    self.call_function(fn, args, kwargs)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1642, in call_function
    self.push(fn.call_function(self, args, kwargs))  # type: ignore[arg-type]
              ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/variables/lazy.py", line 707, in realize_and_forward
    return getattr(self.realize(), name)(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/variables/functions.py", line 1080, in call_function
    return super().call_function(tx, args, kwargs)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/variables/functions.py", line 670, in call_function
    return tx.inline_user_function_return(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self,
        ^^^^^
    ...<2 lines>...
        allow_nested_graph_breaks=True,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1670, in inline_user_function_return
    return InliningInstructionTranslator.inline_call(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self,
        ^^^^^
    ...<3 lines>...
        allow_nested_graph_breaks=allow_nested_graph_breaks,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 6051, in inline_call
    return tracer.inline_call_()
           ~~~~~~~~~~~~~~~~~~~^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 6289, in inline_call_
    self.run()
    ~~~~~~~~^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 2099, in run
    while self.step():
          ~~~~~~~~~^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1752, in step
    self.dispatch_table[inst.opcode](self, inst)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1110, in wrapper
    return inner_fn(self, inst)
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 4791, in CALL
    self._call(inst)
    ~~~~~~~~~~^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 4782, in _call
    self.call_function(fn, args, kwargs)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/symbolic_convert.py", line 1642, in call_function
    self.push(fn.call_function(self, args, kwargs))  # type: ignore[arg-type]
              ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/variables/lazy.py", line 707, in realize_and_forward
    return getattr(self.realize(), name)(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/variables/functions.py", line 3046, in call_function
    torch._dynamo.utils.warn_once(msg)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/opt/python-3.13-venv/lib/python3.13/site-packages/torch/_dynamo/utils.py", line 5763, in warn_once
    warnings.warn(msg, stacklevel=stacklevel + 1)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
torch._dynamo.exc.InternalTorchDynamoError: UserWarning: Dynamo detected a call to a `functools.lru_cache`-wrapped function at 'fnmatch.py:52'. Dynamo ignores the cache wrapper and directly traces the wrapped function. Silent incorrectness is only a *potential* risk, not something we have observed. Enable TORCH_LOGS=+dynamo for a DEBUG stack trace.

This call originates from:
  File "/usr/lib/python3.13/fnmatch.py", line 52, in filter
    match = _compile_pattern(pat)


from user code:
   File "/__w/pytorch/pytorch/test/cpython/v3_13/test_fnmatch.py", line 294, in test_case
    self.assertEqual(filter(['Test.py', 'Test.rb', 'Test.PL'], '*.p*'),
                     ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/fnmatch.py", line 52, in filter
    match = _compile_pattern(pat)

Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"

Test file path: cpython/v3_13/test_fnmatch.py

For all disabled tests (by GitHub issue), see https://hud.pytorch.org/disabled.

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @amjames @jataylo @azahed98