|
|
@@ -46,11 +46,10 @@ HEALTHCHECK NONE
|
|
|
# -v dropped: 5300+ "PASSED foo::bar" lines per worker eat noticeable
|
|
|
# stdout I/O time and clutter test_docker.sh output. --tb=short still
|
|
|
# gives full failure tracebacks when something breaks.
|
|
|
-# -n logical adapts to the host's vCPU count instead of hard-coding 30 —
|
|
|
-# on a 2-vCPU CI / VM runner, -n 30 spawns 30 Python processes fighting
|
|
|
-# for 2 cores, which is mostly IPC + import-thrash overhead. Not -n auto:
|
|
|
-# with psutil installed that counts physical cores only (16 of 30 here).
|
|
|
-CMD ["pytest", "backend/tests/", "--tb=short", "-p", "no:cacheprovider", "-n", "logical"]
|
|
|
+# -n 30: the test host's worker count. Not -n auto (with psutil installed
|
|
|
+# that counts physical cores only, 16) nor -n logical (the Docker host's 32
|
|
|
+# CPUs, more than this machine is meant to use).
|
|
|
+CMD ["pytest", "backend/tests/", "--tb=short", "-p", "no:cacheprovider", "-n", "30"]
|
|
|
|
|
|
# -------------------------------------------
|
|
|
# Frontend test stage
|