8000 DISABLED test_fake_registration (__main__.TestOpProfiles) · Issue #151301 · pytorch/pytorch · GitHub 10000
[go: up one dir, main page]

Skip to content

DISABLED test_fake_registration (__main__.TestOpProfiles) #151301

@pytorch-bot

Description

@pytorch-bot

Platforms: asan, linux, mac, macos, rocm, slow, win, windows

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

Over the past 3 hours, it has been determined flaky in 37 workflow(s) with 74 failures and 37 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_fake_registration
  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 "/var/lib/jenkins/workspace/test/test_custom_ops.py", line 4500, in test_fake_registration
    torch.library.define(
  File "/opt/conda/envs/py_3.10/lib/python3.10/functools.py", line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/library.py", line 555, in define
    lib.define(name + schema, alias_analysis="", tags=tags)
  File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/library.py", line 172, in define
    result = self.m.define(schema, alias_analysis, tuple(tags))
RuntimeError: Tried to register an operator (mylib::foo(Tensor a, Tensor b) -> Tensor) with the same name and overload name multiple times. Each overload's schema should only be registered with a single call to def(). Duplicate registration: registered at /dev/null:135. Original registration: registered at /dev/null:212

To execute this test, run the following from the base repo dir:
    python test/test_custom_ops.py TestOpProfiles.test_fake_registration

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

Test file path: test_custom_ops.py

cc @clee2000 @chauhang @penguinwu @zou3519 @bdhirsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: custom-operatorscustom operators, custom ops, custom-operators, custom-opsmodule: flaky-testsProblem is a flaky test in CImodule: pt2-dispatcherPT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,oncall: pt2skippedDenotes a (flaky) test currently skipped in CI.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0