Skip to content

Handle FakeScriptObject in save_graph_repro#175765

Closed
aorenste wants to merge 3 commits intogh/aorenste/194/basefrom
gh/aorenste/194/head
Closed

Handle FakeScriptObject in save_graph_repro#175765
aorenste wants to merge 3 commits intogh/aorenste/194/basefrom
gh/aorenste/194/head

Conversation

@aorenste
Copy link
Copy Markdown
Contributor

@aorenste aorenste commented Feb 25, 2026

Stack from ghstack (oldest at bottom):

Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

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

Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Feb 25, 2026

🔗 Helpful Links

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

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

✅ You can merge normally! (4 Unrelated Failures)

As of commit f76fb3f with merge base e69df34 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Feb 25, 2026

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@aorenste
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 Feb 26, 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

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@aorenste
Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@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

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge failed

Reason: Command git -C /home/runner/work/pytorch/pytorch cherry-pick -x ed5dc94bd8e54ce46ec45fefed7765109deebe1d returned non-zero exit code 1

Auto-merging torch/_dynamo/debug_utils.py
CONFLICT (content): Merge conflict in torch/_dynamo/debug_utils.py
Auto-merging torch/_dynamo/repro/after_aot.py
error: could not apply ed5dc94bd8e... Handle FakeScriptObject in save_graph_repro
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

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

[ghstack-poisoned]
@aorenste
Copy link
Copy Markdown
Contributor Author

@pytorchbot drci

@aorenste
Copy link
Copy Markdown
Contributor Author

Mac failure is a trunk flaky
@pytorchbot merge -i

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 3 checks: trunk / linux-jammy-rocm-py3.10 / test (default, 4, 6, linux.rocm.gpu.gfx950.1), trunk / macos-py3-arm64 / test (mps, 1, 1, macos-m1-14), trunk / linux-jammy-cuda13.0-py3.10-gcc11 / test (default, 1, 5, linux.g6.4xlarge.experimental.nvidia.gpu)

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

@jeanschmidt
Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "Need to revert in order to revert #175555 - see D94699609" -c ghfirst

@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 Feb 27, 2026
This reverts commit 2958025.

Reverted #175765 on behalf of https://github.com/jeanschmidt due to Need to revert in order to revert #175555 - see D94699609 ([comment](#175765 (comment)))
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@aorenste your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Feb 27, 2026
Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

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

[ghstack-poisoned]
aorenste added a commit that referenced this pull request Feb 28, 2026
Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

ghstack-source-id: cbbd720
Pull Request resolved: #175765
@aorenste
Copy link
Copy Markdown
Contributor Author

aorenste commented Mar 1, 2026

@pytorchbot merge

@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

sandy-gags pushed a commit to sandy-gags/pytorch that referenced this pull request Mar 12, 2026
Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

ghstack-source-id: 929d3d0
Pull Request resolved: pytorch/pytorch#175765
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

Pull Request resolved: pytorch#175765
Approved by: https://github.com/angelayi
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
This reverts commit 2958025.

Reverted pytorch#175765 on behalf of https://github.com/jeanschmidt due to Need to revert in order to revert pytorch#175555 - see D94699609 ([comment](pytorch#175765 (comment)))
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
Previously, FakeScriptObject inputs to AOT graphs fell through to
writer.unsupported(), making the generated repro scripts incomplete.
Add an opaque() method to the reader/writer protocols that records
the script class name, so repro scripts can at least reference
opaque objects instead of silently dropping them.

Authored with Claude.

Pull Request resolved: pytorch#175765
Approved by: https://github.com/angelayi
@github-actions github-actions Bot deleted the gh/aorenste/194/head branch April 1, 2026 02:23
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/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: dynamo Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants