Skip to content

OpInfo: Add DecorateInfo class similar to SkipInfo for decorators#50501

Closed
peterbell10 wants to merge 2 commits intopytorch:masterfrom
peterbell10:DecorateInfo
Closed

OpInfo: Add DecorateInfo class similar to SkipInfo for decorators#50501
peterbell10 wants to merge 2 commits intopytorch:masterfrom
peterbell10:DecorateInfo

Conversation

@peterbell10
Copy link
Copy Markdown
Collaborator

Follow up to #50435

I have confirmed this works by running

pytest test_ops.py -k test_fn_gradgrad_fft`

with normally and with PYTORCH_TEST_WITH_SLOW=1 PYTORCH_TEST_SKIP_FAST=1. In the first case all tests are skipped, in the second they all run as they should.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jan 13, 2021

💊 CI failures summary and remediations

As of commit e09b14a (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 1/2 non-CircleCI failure(s)

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_linux_xenial_py3_clang5_asan_test1 (1/1)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Jan 22 19:35:49 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:15:3 in
Jan 22 19:35:49     #7 0x563649a2970b in PyEval_EvalCode /tmp/build/80754af9/python_1599604603603/work/Python/ceval.c:731
Jan 22 19:35:49     #8 0x563649aa9573 in run_mod /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:1025
Jan 22 19:35:49     #9 0x563649aa960c in PyRun_StringFlags /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:949
Jan 22 19:35:49     #10 0x563649aa966e in PyRun_SimpleStringFlags /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:445
Jan 22 19:35:49     #11 0x563649aad472 in run_command /tmp/build/80754af9/python_1599604603603/work/Modules/main.c:301
Jan 22 19:35:49     #12 0x563649aad472 in Py_Main /tmp/build/80754af9/python_1599604603603/work/Modules/main.c:749
Jan 22 19:35:49     #13 0x56364997743d in main /tmp/build/80754af9/python_1599604603603/work/Programs/python.c:69
Jan 22 19:35:49     #14 0x7f450f22c83f in __libc_start_main /build/glibc-e6zv40/glibc-2.23/csu/../csu/libc-start.c:291
Jan 22 19:35:49     #15 0x563649a56d0a in _start /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/src/glibc-2.12.2/csu/../sysdeps/x86_64/elf/start.S:103
Jan 22 19:35:49 
Jan 22 19:35:49 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:15:3 in 
Jan 22 19:35:49 + retcode=1
Jan 22 19:35:49 + set -e
Jan 22 19:35:49 + return 1
Jan 22 19:35:49 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *-NO_AVX-* ]]
Jan 22 19:35:49 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *-NO_AVX2-* ]]
Jan 22 19:35:49 + '[' -n https://github.com/pytorch/pytorch/pull/50501 ']'
Jan 22 19:35:49 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 != *coverage* ]]
Jan 22 19:35:49 ++ mktemp
Jan 22 19:35:49 + DETERMINE_FROM=/tmp/tmp.Is5MYMYLxT
Jan 22 19:35:49 + file_diff_from_base /tmp/tmp.Is5MYMYLxT

1 job timed out:

  • pytorch_linux_xenial_py3_clang5_asan_test1

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@peterbell10 peterbell10 force-pushed the DecorateInfo branch 2 times, most recently from 4b7c3ac to ffa3eaf Compare January 13, 2021 20:58
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 14, 2021

Codecov Report

Merging #50501 (6a77ecf) into master (e34992e) will decrease coverage by 0.34%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #50501      +/-   ##
==========================================
- Coverage   80.99%   80.65%   -0.35%     
==========================================
  Files        1916     1913       -3     
  Lines      209552   208123    -1429     
==========================================
- Hits       169736   167861    -1875     
- Misses      39816    40262     +446     

@mrshenli mrshenli added module: tests Issues related to tests (not the torch.testing module) triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Jan 15, 2021
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this.

@mruberry mruberry self-requested a review January 19, 2021 08:33
Copy link
Copy Markdown
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a smart improvement, thanks @peterbell10!

The test failure is unrelated but this does need a rebase, though. Just ping me when it's ready.

@peterbell10
Copy link
Copy Markdown
Collaborator Author

@mruberry rebased and tests are all passing.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mruberry merged this pull request in 8690819.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…torch#50501)

Summary:
Follow up to pytorch#50435

I have confirmed this works by running
```
pytest test_ops.py -k test_fn_gradgrad_fft`
```
with normally and with `PYTORCH_TEST_WITH_SLOW=1 PYTORCH_TEST_SKIP_FAST=1`. In the first case all tests are skipped, in the second they all run as they should.

Pull Request resolved: pytorch#50501

Reviewed By: ezyang

Differential Revision: D25956416

Pulled By: mruberry

fbshipit-source-id: c896a8cec5f19b8ffb9b168835f3743b6986dad7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged module: tests Issues related to tests (not the torch.testing module) open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants