Skip to content

[Testcase Refactoring] Label BackwardHigherOrderOpTests in test_backward_higher_order_ops.py GENERIC - #204722

Closed
AbigailFernandes wants to merge 1 commit into
pytorch:mainfrom
amazon-contributing:upstream-test-backward-hoo
Closed

AbigailFernandes wants to merge 1 commit into
pytorch:mainfrom
amazon-contributing:upstream-test-backward-hoo

Conversation

@AbigailFernandes

@AbigailFernandes AbigailFernandes commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Linked issue or supporting maintainer

Part of #185590

BC-breaking?

No

Summary (human written only)

Labels BackwardHigherOrderOpTests as GENERIC per test/REVIEW.md (#202723) and removes test/dynamo/test_backward_higher_order_ops.py from tools/linter/adapters/test_linter_allowlist.json.

Agent details (if applicable)

AI-assisted (Claude Code); I reviewed the change and this text.

  • Its tests trace and compile CPU tensors; the only device reference is the expected-output string device(type='cpu').
  • Only a class attribute and the allowlist entry change; no test logic changes.

Test plan:

python3 tools/linter/adapters/test_linter.py test/dynamo/test_backward_higher_order_ops.py
lintrunner test/dynamo/test_backward_higher_order_ops.py tools/linter/adapters/test_linter_allowlist.json
python3 -m py_compile test/dynamo/test_backward_higher_order_ops.py
=> no issues

lintrunner was run with PYFMT and TEST_HAS_MAIN skipped, since they need a libcst build that was not available locally. The tests were not executed locally.

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

…ard_higher_order_ops.py GENERIC

Part of pytorch#185590. Follows test/REVIEW.md (pytorch#202723).

BackwardHigherOrderOpTests does not use any device: its tests trace and compile CPU tensors, and the only device reference is the expected-output string device(type='cpu'). It is labeled
HardwareClassification.GENERIC, and the file is removed from
test_linter_allowlist.json.

Test Plan:

```
python3 tools/linter/adapters/test_linter.py test/dynamo/test_backward_higher_order_ops.py
lintrunner test/dynamo/test_backward_higher_order_ops.py tools/linter/adapters/test_linter_allowlist.json
python3 -m py_compile test/dynamo/test_backward_higher_order_ops.py
=> no issues
```

lintrunner was run with PYFMT and TEST_HAS_MAIN skipped, since they need a
libcst build that was not available locally. The tests were not executed; the
change adds a class attribute and removes an allowlist entry.

This change was authored with an AI assistant (Claude Code) and reviewed by
the author.
@pytorch-bot

pytorch-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

✅ AUTOMATED REVIEW - Ready for human review:

The PR marks BackwardHigherOrderOpTests in
test/dynamo/test_backward_higher_order_ops.py as HardwareClassification.GENERIC
and removes that file from tools/linter/adapters/test_linter_allowlist.json; the
review found no issues. Recommendation: Approve, as nothing blocks approval.

Reviewed commit: 27f3da3

Review run

🐛 Report a bad review

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/204722

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 27f3da3 with merge base 0a5eb11 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot

pytorch-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@AbigailFernandes
AbigailFernandes marked this pull request as ready for review November 14, 2026 16:56
@github-actions
github-actions Bot requested a review from fffrog November 14, 2026 16:58
@github-actions github-actions Bot added bot-triaged This is a label only to be used by the auto triage bot triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Nov 14, 2026
@pytorch-bot pytorch-bot Bot added the in progress PR is being worked on by the author, until the automated review accepts it label Nov 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review of 27f3da3: nothing blocking; ready for human review.

The PR marks BackwardHigherOrderOpTests in test/dynamo/test_backward_higher_order_ops.py as HardwareClassification.GENERIC and removes that file from tools/linter/adapters/test_linter_allowlist.json; the review found no issues. Recommendation: Approve, as nothing blocks approval.

This review is AI-generated and advisory. Each new automated review replaces the previous one. Report a bad review

@pytorch-bot pytorch-bot Bot added ready for review Automated review passed, ready for a final review by a maintainer. and removed in progress PR is being worked on by the author, until the automated review accepts it labels Nov 14, 2026

@fffrog fffrog left a comment

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.

SGTM

@fffrog fffrog moved this from Backlog to Ready for Merge in PyTorch Test Refactoring Nov 17, 2026
@AbigailFernandes

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 18, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@github-project-automation github-project-automation Bot moved this from Ready for Merge to Done in PyTorch Test Refactoring Nov 19, 2026

This branch was previously deployed

1 inactive deployment
bedrock — 27f3da37 Deployed Nov 14, 2026 by AbigailFernandes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot-triaged This is a label only to be used by the auto triage bot ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: dynamo open source ready for review Automated review passed, ready for a final review by a maintainer. topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants