-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Misc] [CI/Build] Speed up block manager CPU-only unit tests ~10x by …
…opting-out of GPU cleanup (#3783)
- Loading branch information
1 parent
7d4e1b8
commit eb69d68
Showing
3 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture() | ||
def should_do_global_cleanup_after_test() -> bool: | ||
"""Disable the global cleanup fixture for tests in this directory. This | ||
provides a ~10x speedup for unit tests that don't load a model to GPU. | ||
This requires that tests in this directory clean up after themselves if they | ||
use the GPU. | ||
""" | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters