Skip to content

[inductor][CI] Fix cpp-wrapper CI failures#176745

Closed
desertfire wants to merge 2 commits intogh/desertfire/667/basefrom
gh/desertfire/667/head
Closed

[inductor][CI] Fix cpp-wrapper CI failures#176745
desertfire wants to merge 2 commits intogh/desertfire/667/basefrom
gh/desertfire/667/head

Conversation

@desertfire
Copy link
Copy Markdown
Contributor

@desertfire desertfire commented Mar 6, 2026

Stack from ghstack (oldest at bottom):

Summary:

  1. [Inductor] User kernel unary epilogue fusion #173662 added more tests to test/inductor/test_triton_kernels.py, and [inductor] Add lazy Triton kernel compilation for cpp-wrapper #175416 enable cpp-wrapper test on test/inductor/test_triton_kernels.py. So there was a land race and [Inductor] User kernel unary epilogue fusion #173662 didn't have the failing CI signal at the landing time.

Forward fix by updating the code checking target for cpp-wrapper.

  1. Fix AOTI incorrect loads from bool tensor pointers in user-defined Triton kernels #176353 also had land race. Skip now and the fix is coming later.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo

Summary: #173662 added more tests to test/inductor/test_triton_kernels.py, and #175416 enable cpp-wrapper test on test/inductor/test_triton_kernels.py. So there was a land race and #173662 didn't have the failing CI signal at the landing time.

Forward fix by updating the code checking target for cpp-wrapper.

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

pytorch-bot Bot commented Mar 6, 2026

🔗 Helpful Links

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

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

⏳ 2 Pending, 3 Unrelated Failures

As of commit b05cccb with merge base dc49385 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was 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.

desertfire added a commit that referenced this pull request Mar 6, 2026
Summary: #173662 added more tests to test/inductor/test_triton_kernels.py, and #175416 enable cpp-wrapper test on test/inductor/test_triton_kernels.py. So there was a land race and #173662 didn't have the failing CI signal at the landing time.

Forward fix by updating the code checking target for cpp-wrapper.

ghstack-source-id: 5244ba6
Pull Request resolved: #176745
@desertfire desertfire requested review from eellison and zou3519 March 6, 2026 20:41
Summary:
1. #173662 added more tests to test/inductor/test_triton_kernels.py, and #175416 enable cpp-wrapper test on test/inductor/test_triton_kernels.py. So there was a land race and #173662 didn't have the failing CI signal at the landing time.

Forward fix by updating the code checking target for cpp-wrapper.

2. #176353 also had land race. Skip now and the fix is coming later.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Mar 6, 2026
Summary:
1. #173662 added more tests to test/inductor/test_triton_kernels.py, and #175416 enable cpp-wrapper test on test/inductor/test_triton_kernels.py. So there was a land race and #173662 didn't have the failing CI signal at the landing time.

Forward fix by updating the code checking target for cpp-wrapper.

2. #176353 also had land race. Skip now and the fix is coming later.

ghstack-source-id: c856a94
Pull Request resolved: #176745
@desertfire
Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "cpp-wrapper tests are green"

@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

pytorchmergebot pushed a commit that referenced this pull request Mar 10, 2026
…ngs (#176796)

With autotune_at_compile_time=False, the Triton kernel source is
embedded in a C++ raw string inside the outer Python r"""..."""
wrapper. If a user-defined Triton kernel contains """ (e.g. a
docstring), it prematurely terminates the outer string, causing a
SyntaxError. Fixed by adding backslash.

Authored with Claude.

Pull Request resolved: #176796
Approved by: https://github.com/Skylion007, https://github.com/mlazos
ghstack dependencies: #176745
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
Summary:
1. pytorch#173662 added more tests to test/inductor/test_triton_kernels.py, and pytorch#175416 enable cpp-wrapper test on test/inductor/test_triton_kernels.py. So there was a land race and pytorch#173662 didn't have the failing CI signal at the landing time.

Forward fix by updating the code checking target for cpp-wrapper.

2. pytorch#176353 also had land race. Skip now and the fix is coming later.
Pull Request resolved: pytorch#176745
Approved by: https://github.com/AmesingFlank, https://github.com/zou3519
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
…ngs (pytorch#176796)

With autotune_at_compile_time=False, the Triton kernel source is
embedded in a C++ raw string inside the outer Python r"""..."""
wrapper. If a user-defined Triton kernel contains """ (e.g. a
docstring), it prematurely terminates the outer string, causing a
SyntaxError. Fixed by adding backslash.

Authored with Claude.

Pull Request resolved: pytorch#176796
Approved by: https://github.com/Skylion007, https://github.com/mlazos
ghstack dependencies: pytorch#176745
@github-actions github-actions Bot deleted the gh/desertfire/667/head branch April 7, 2026 02:22
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.

4 participants