Skip to content

Conversation

@mollyxu
Copy link
Contributor

@mollyxu mollyxu commented Jan 7, 2026

Fixes a bug where tests with @pytest.mark.skipif(cond, ...) were being incorrectly excluded in internal CI even when cond was False.

The issue is that pytest markers are always present regardless of whether the condition is true or false.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 7, 2026
@mollyxu mollyxu changed the title address edge case Fix skipif marker handling Jan 7, 2026
@mollyxu mollyxu marked this pull request as ready for review January 8, 2026 05:43
Copy link
Contributor

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @mollyxu !

mollyxu and others added 2 commits January 8, 2026 10:11
Co-authored-by: Nicolas Hug <[email protected]>
@mollyxu mollyxu merged commit 2b43b2a into meta-pytorch:main Jan 9, 2026
64 checks passed
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 Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants