From 31eede7722ae5a0073380bc3dceb4dea5ed9b900 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Tue, 28 Nov 2023 14:34:00 -0800 Subject: [PATCH] jenkins auto cpu count (#30544) * auto cpu * build too * need bash old-commit-hash: 5030824572c90862dbe0acca2b095b3899311e39 --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5859920a56..3dd9c45f14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -225,15 +225,17 @@ node { pcStage("PC tests") { // tests that our build system's dependencies are configured properly, // needs a machine with lots of cores - sh label: "test multi-threaded build", script: "scons --no-cache --random -j42" + sh label: "test multi-threaded build", + script: '''#!/bin/bash + scons --no-cache --random -j$(nproc)''' } }, 'car tests': { pcStage("car tests") { sh label: "build", script: "selfdrive/manager/build.py" sh label: "test_models.py", script: "INTERNAL_SEG_CNT=250 INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt FILEREADER_CACHE=1 \ - pytest -n42 --dist=loadscope selfdrive/car/tests/test_models.py" - sh label: "test_car_interfaces.py", script: "MAX_EXAMPLES=100 pytest -n42 --dist=load selfdrive/car/tests/test_car_interfaces.py" + pytest -n auto --dist=loadscope selfdrive/car/tests/test_models.py" + sh label: "test_car_interfaces.py", script: "MAX_EXAMPLES=100 pytest -n auto --dist=load selfdrive/car/tests/test_car_interfaces.py" } },