Skip to content

Fix build_with_debinfo for non-torch_python sources - #192729

Closed
malfet wants to merge 1 commit into
gh/malfet/1013/basefrom
gh/malfet/1013/head
Closed

malfet wants to merge 1 commit into
gh/malfet/1013/basefrom
gh/malfet/1013/head

Conversation

@malfet

@malfet malfet commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

#186780 introduced number of regressions to the logic, namely it only rebuilded one file and assumed its part of torch_python, rendering the tool useless for ATen changes (torch_cpu, torch_cuda) and also compile .metal shaders with line information.

Build the plan from Ninja's command graph and transitively run every command that consumes the requested source's outputs. This restores rebuilding through intermediate libraries and custom steps, including Metal commands, while limiting debug flags to the requested source compilation.

Extend test accordingly

Authored with the assistance of Codex (OpenAI).

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

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

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

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

Thanks!

@atalman

atalman commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "all looks good"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

ankitbhrdwj pushed a commit to ankitbhrdwj/pytorch that referenced this pull request Aug 12, 2026
pytorch#186780 introduced number of regressions to the logic, namely it only rebuilded one file and assumed its part of torch_python, rendering the tool useless for ATen changes (torch_cpu, torch_cuda) and also compile .metal shaders with line information.

Build the plan from Ninja's command graph and transitively run every command that consumes the requested source's outputs. This restores rebuilding through intermediate libraries and custom steps, including Metal commands, while limiting debug flags to the requested source compilation.

Extend test accordingly

Authored with the assistance of Codex (OpenAI).
Pull Request resolved: pytorch#192729
Approved by: https://github.com/atalman, https://github.com/albanD
ghstack dependencies: pytorch#192349
@github-actions
github-actions Bot deleted the gh/malfet/1013/head branch November 2, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants