File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,10 @@ if [ -f "./secrets-export.sh" ]; then
31
31
fi
32
32
33
33
# List the packages.
34
- PIP_QUIET=0 uv run ${UV_ARGS} --with pip pip list
34
+ uv sync ${UV_ARGS}
35
+ uv pip list
35
36
36
37
# Start the test runner.
37
- uv run ${UV_ARGS} .evergreen/scripts/run_tests.py " $@ "
38
+ uv run .evergreen/scripts/run_tests.py " $@ "
38
39
39
40
popd
Original file line number Diff line number Diff line change 4
4
import logging
5
5
import os
6
6
import platform
7
- import shutil
8
7
import sys
9
8
from datetime import datetime
10
9
@@ -142,10 +141,6 @@ def run() -> None:
142
141
if TEST_PERF :
143
142
handle_perf (start_time )
144
143
145
- # Handle coverage post actions.
146
- if os .environ .get ("COVERAGE" ):
147
- shutil .rmtree (".pytest_cache" , ignore_errors = True )
148
-
149
144
150
145
if __name__ == "__main__" :
151
146
run ()
Original file line number Diff line number Diff line change 43
43
# Map the test name to test group.
44
44
GROUP_MAP = dict (mockupdb = "mockupdb" , perf = "perf" )
45
45
46
+ # The python version used for perf tests.
47
+ PERF_PYTHON_VERSION = "3.9.13"
48
+
46
49
47
50
def is_set (var : str ) -> bool :
48
51
value = os .environ .get (var , "" )
@@ -371,6 +374,8 @@ def handle_test_env() -> None:
371
374
write_env ("TEST_PATH" , str (data_dir ))
372
375
write_env ("OUTPUT_FILE" , str (ROOT / "results.json" ))
373
376
377
+ UV_ARGS .append (f"--python={ PERF_PYTHON_VERSION } " )
378
+
374
379
# PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively
375
380
# affects the benchmark results.
376
381
if sub_test_name == "sync" :
Original file line number Diff line number Diff line change 57
57
58
58
teardown_mod_wsgi ()
59
59
60
+ # Tear down coverage if applicable.
61
+ if os .environ .get ("COVERAGE" ):
62
+ shutil .rmtree (".pytest_cache" , ignore_errors = True )
63
+
60
64
LOGGER .info (f"Tearing down tests of type '{ TEST_NAME } '... done." )
You can’t perform that action at this time.
0 commit comments