Skip to content

[executorch][devtools] Reset profiler state in ETDump tests - #21410

Merged
meta-codesync[bot] merged 2 commits into
gh/SS-JIA/579/basefrom
gh/SS-JIA/579/head
Jul 28, 2026
Merged

[executorch][devtools] Reset profiler state in ETDump tests#21410
meta-codesync[bot] merged 2 commits into
gh/SS-JIA/579/basefrom
gh/SS-JIA/579/head

Conversation

@SS-JIA

@SS-JIA SS-JIA commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Reinitialize the global profiler state before each ETDumpGenTest while initializing the runtime once per suite. This prevents profile blocks from leaking across XCTest cases, exhausting the fixed block pool, and causing assertion failures or process crashes. This fixes nine TestInfra signals. This commit was authored with Claude.

Differential Revision: D113810097

[ghstack-poisoned]
@SS-JIA
SS-JIA requested a review from JacobSzwejbka as a code owner July 27, 2026 19:45
@pytorch-bot

pytorch-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 Cancelled Job

As of commit 3b2fc27 with merge base 16b780b (image):

CANCELLED JOB - The following job was cancelled. Please retry:

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

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 27, 2026
[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request Jul 27, 2026
Pull Request resolved: #21410

Reinitialize the global profiler state before each `ETDumpGenTest` while initializing the runtime once per suite. This prevents profile blocks from leaking across XCTest cases, exhausting the fixed block pool, and causing assertion failures or process crashes. This fixes nine TestInfra signals. This commit was authored with Claude.
ghstack-source-id: 407467887
@exported-using-ghexport

Differential Revision: [D113810097](https://our.internmc.facebook.com/intern/diff/D113810097/)
@meta-codesync
meta-codesync Bot merged commit 862ddb6 into gh/SS-JIA/579/base Jul 28, 2026
182 of 185 checks passed
@meta-codesync
meta-codesync Bot deleted the gh/SS-JIA/579/head branch July 28, 2026 18:27
@meta-codesync
meta-codesync Bot temporarily deployed to cherry-pick-bot July 28, 2026 18:27 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants