Skip to content

[tests] Fix how compiler mixin classes are used #11680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 9, 2025

Conversation

sayakpaul
Copy link
Member

What does this PR do?

The way compiler test mixin classes were added to the actual model test classes was flawed as it was making the non-compilation tests dependent on the flags required to be True by the compiler test mixins.

If we run pytest tests/models/unets/test_models_unet_2d_condition.py -k "device_map", for example, from the main it will be entirely skipped. This shouldn't happen.

This PR fixes this behavior.

@sayakpaul sayakpaul requested a review from DN6 June 9, 2025 03:40
@sayakpaul sayakpaul merged commit 7c6e9ef into main Jun 9, 2025
12 checks passed
@sayakpaul sayakpaul deleted the fix-compiler-tester-mixins branch June 9, 2025 03:54
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