Skip to content

Rename test/custom_operator/test_out_variant to test/test_out_tag - #181098

Closed
zou3519 wants to merge 1 commit into
gh/zou3519/4/basefrom
gh/zou3519/4/head
Closed

zou3519 wants to merge 1 commit into
gh/zou3519/4/basefrom
gh/zou3519/4/head

Conversation

@zou3519

@zou3519 zou3519 commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

test/custom_operator/** tests are not actually run in CI (except for one
of them...)

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 3 New Failures

As of commit 9f77f15 with merge base b72c0ac (image):

NEW FAILURES - The following jobs have failed:

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

@angelayi angelayi 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.

seems like those tests arent being run because it's being blocklisted here. Wonder if we should just create a test/custom_operator_py/ and move all the python test cases in test/custom_operator/ there, since test/custom_operator/test_infer_schema_annotation.py is probably also not being tested in CI right now. Or create a test/custom_operator_cpp/ and blocklist that folder instead?

@zou3519

zou3519 commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

seems like those tests arent being run because it's being blocklisted here. Wonder if we should just create a test/custom_operator_py/ and move all the python test cases in test/custom_operator/ there, since test/custom_operator/test_infer_schema_annotation.py is probably also not being tested in CI right now. Or create a test/custom_operator_cpp/ and blocklist that folder instead?

I don't really want to deal with nested folders right now.. They need some sort of setup that is finicky

@zou3519

zou3519 commented Apr 22, 2026

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 Apr 22, 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

@pytorch-auto-revert

Copy link
Copy Markdown

@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert

This PR is attributed to have caused regression in:

Note: This revert was accelerated by the AI advisor: AI advisor: revert (confidence=0.93)

Please investigate and fix the issues.
@claude Can you please read this revert comment, follow the links and read the errors, to then give a brief diagnostics on the cause of the error? If you judge the error to be legitimate reason for a revert, please provide brief guidance on how the author could fix it.

@claude

claude Bot commented Apr 23, 2026 •

Copy link
Copy Markdown

Claude finished @pytorch-auto-revert[bot]'s task in 2m 12s —— View job


Revert Diagnostics for PR #181098

  • Read revert comment and gather context
  • Follow CI failure links and read error logs
  • Diagnose the cause of the error
  • Provide fix guidance

Diagnosis

The revert is legitimate, but the failures are not caused by a code bug in this PR. The PR only renames test/custom_operator/test_out_variant.py to test/test_out_tag.py (a pure file move, +0/-0 lines changed). The issue is that by moving the test out of the test/custom_operator/ directory, it started being discovered and run by CI for the first time.

The test/custom_operator/ directory is blocklisted in tools/testing/discover_tests.py:77, so the tests there were never actually executed in CI. The rename exposed pre-existing test failures that were silently hidden:

Failing tests (consistently):

  1. test_out_tag.py::TestOutVariant::test_compile_out_functionalized_graph — IndexError: list index out of range at line 356 (backend.fw_graphs[0] is empty)
  2. test_out_tag.py::TestOutVariant::test_compile_out_uses_v2_hop_when_config_off — IndexError: list index out of range at line 378 (backend.fw_graphs[0] is empty)

Both failures are the same root cause: AotEagerAndRecordGraphs() backend's fw_graphs list is empty after compilation, suggesting the graph recording mechanism isn't capturing the forward graph for these custom operator tests. This is likely caused by a separate change to the invoke_subgraph/auto-functionalization infrastructure (note the CI run also includes a revert of "[dynamo] Inline single-use invoke_subgraph HOPs").

How to Fix

@zou3519 — To re-land this rename, you need to fix the two failing tests first:

  1. Investigate why backend.fw_graphs is empty — The AotEagerAndRecordGraphs backend isn't recording forward graphs for these auto_functionalized_v2 test cases. This may be related to recent changes in the auto-functionalization or invoke_subgraph HOP infrastructure. Run PYTORCH_TEST_WITH_DYNAMO=1 python test/test_out_tag.py TestOutVariant.test_compile_out_functionalized_graph locally to reproduce.

  2. If the tests are expected to break due to upstream changes (e.g., the invoke_subgraph revert), update the expected inline graphs or skip the tests with an appropriate @skip/@expectedFailure annotation until the underlying infrastructure is fixed.

  3. Alternative: Land the rename alongside the test fixes in the same PR stack, so the tests pass in CI as soon as they become visible.

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Apr 23, 2026
…_tag (#181098)"

This reverts commit de32ca8.

Reverted #181098 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#181098 (comment)))
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@zou3519 your PR has been successfully reverted.

@zou3519

zou3519 commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

tried alternative solution

@zou3519 zou3519 closed this Apr 27, 2026
@github-actions
github-actions Bot deleted the gh/zou3519/4/head branch May 28, 2026 02:27
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
…_tag (pytorch#181098)"

This reverts commit de32ca8.

Reverted pytorch#181098 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#181098 (comment)))
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…_tag (pytorch#181098)"

This reverts commit de32ca8.

Reverted pytorch#181098 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#181098 (comment)))
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…_tag (pytorch#181098)"

This reverts commit de32ca8.

Reverted pytorch#181098 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#181098 (comment)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/trunk Trigger trunk jobs on your pull request Merged Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants