Skip to content

Conversation

NicolasHug
Copy link
Contributor

We have a "slow" test that takes >1 minute to complete. I got a bit tired of having to always manually specify -k "not slow" in my test options, so I made it the default: the tests that are marked as 'slow' are now skipped by default. We always run them in the CI though.

Similarly, I always find myself having to add -v, so it's now the default. I hope this isn't controversial.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 30, 2025
- name: Run Python tests
run: |
pytest test -vvv
pytest --override-ini="addopts=-v" test
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the CI continue to use maximum verbosity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We've been using -v only for the CUDA tests already. Personally I find -vvv too versbose and thus difficult to debug, because the traceback is really long. Thank you for the review - I'll merge as-is, but I'm happy to put back -vvv if you prefer.

Copy link
Contributor

@Dan-Flores Dan-Flores left a comment

Choose a reason for hiding this comment

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

Looks good! It might take me some time remember to stop calling pytest test 😄 .

@NicolasHug NicolasHug merged commit f93d222 into meta-pytorch:main Jul 31, 2025
45 checks passed
@NicolasHug NicolasHug deleted the pytestops branch July 31, 2025 13:43
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