Skip to content

[AUTOGENERATED] [release/2.11] [Inductor] Fix flaky epilogue fusion tests by adding missing tearDown…#3246

Closed
rocm-repo-management-api-6[bot] wants to merge 1 commit into
release/2.11from
autogenerated/release/2.11_cherry-pick_pr-3244
Closed

[AUTOGENERATED] [release/2.11] [Inductor] Fix flaky epilogue fusion tests by adding missing tearDown…#3246
rocm-repo-management-api-6[bot] wants to merge 1 commit into
release/2.11from
autogenerated/release/2.11_cherry-pick_pr-3244

Conversation

@rocm-repo-management-api-6
Copy link
Copy Markdown

Cherry-pick of #3244

#3244)

…Class (pytorch#180736)

TestPrologueFusion and TestEpilogueFusionStaticAnalysis both use
ExitStack in setUpClass to apply config.patch(), but neither defined
tearDownClass to close the stack. When TestPrologueFusion runs before
TestEpilogueFusionStaticAnalysis in the same process, config values like
max_autotune_gemm_backends="TRITON" leak through, removing the aten
kernel choice from autotuning and causing test failures.

Fixes pytorch#179693

Pull Request resolved: pytorch#180736
Approved by: https://github.com/Skylion007

## Motivation

<!-- Explain the purpose of this PR and the goals it aims to achieve.
-->

## Technical Details

<!-- Explain the changes along with any relevant GitHub links. -->

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

Co-authored-by: NikhilAPatel <nikhilap@meta.com>
@rocm-repo-management-api
Copy link
Copy Markdown

rocm-repo-management-api Bot commented May 20, 2026

Jenkins build for 0a6a1e37a918906be1007c0ec1900153935a8b9d commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants