Skip to content
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

Mark slow tests as such in PyTest. #280

Merged
merged 1 commit into from
Nov 7, 2022
Merged

Mark slow tests as such in PyTest. #280

merged 1 commit into from
Nov 7, 2022

Conversation

alexreinking
Copy link
Contributor

@alexreinking alexreinking commented Nov 7, 2022

This is just a developer convenience.

Run pytest with pytest -m "not slow" to run only the fast tests. With this, the whole test suite takes about a minute on my laptop. Works well with -n $(nproc) for parallelism. Does NOT work well with --update-golden because all golden outputs should typically be updated at once.

Run pytest with `pytest -m "not slow"` to run only the fast tests.
With this, the whole test suite takes about a minute on my laptop.
Works well with `-n $(nproc)` for parallelism. Does NOT work well
with `--update-golden` because all golden outputs should typically
be updated at once.
@alexreinking alexreinking mentioned this pull request Nov 7, 2022
3 tasks
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2022

Codecov Report

Merging #280 (a70dfef) into master (233c060) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   87.86%   87.83%   -0.04%     
==========================================
  Files          72       72              
  Lines       15537    15542       +5     
==========================================
- Hits        13652    13651       -1     
- Misses       1885     1891       +6     
Impacted Files Coverage Δ
tests/pldi22/test_gemmini_conv_ae.py 100.00% <100.00%> (ø)
tests/test_apps.py 100.00% <100.00%> (ø)
tests/test_x86.py 98.36% <0.00%> (-1.64%) ⬇️
src/exo/LoopIR_compiler.py 94.31% <0.00%> (-0.57%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@yamaguchi1024 yamaguchi1024 left a comment

Choose a reason for hiding this comment

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

@alexreinking This looks great! This still runs Gemmini tests by default, right?

@alexreinking
Copy link
Contributor Author

@yamaguchi1024 - yes, it's all opt-in and doesn't change how anything currently works. Does not affect CI at all. This just adds a label to the tests that take more than 30 seconds on my machine so that they can be manually excluded.

@alexreinking alexreinking merged commit c30eba9 into master Nov 7, 2022
@alexreinking alexreinking deleted the mark-slow-tests branch November 7, 2022 14:12
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.

None yet

3 participants