Skip to content

Commit 1c82fb9

Browse files
committed
run tagged gate tests in parallel
1 parent 49f1118 commit 1c82fb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graalpython/com.oracle.graal.python.test/src/graalpytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
import _thread
5757
result_lock = threading.RLock()
5858
if os.environ.get(b"ENABLE_THREADED_GRAALPYTEST") == b"true":
59-
thread_count = os.cpu_count()
59+
thread_count = max(os.cpu_count(), 16)
6060
thread_token = threading.Semaphore(thread_count)
6161
print("Running with %d threads" % thread_count)
6262
else:

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def graalpython_gate_runner(args, tasks):
360360

361361
with Task('GraalPython Python tests', tasks, tags=[GraalPythonTags.tagged]) as task:
362362
if task:
363-
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true"):
364-
run_python_unittests(python_gvm(), paths=["test_tagged_unittests.py"])
363+
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true", ENABLE_THREADED_GRAALPYTEST="true"):
364+
run_python_unittests(python_gvm(), args=["--python.WithThread=true"], paths=["test_tagged_unittests.py"])
365365

366366
# Unittests on SVM
367367
with Task('GraalPython tests on SVM', tasks, tags=[GraalPythonTags.svmunit]) as task:

0 commit comments

Comments
 (0)