jenkins auto cpu count (#30544)

* auto cpu

* build too

* need bash
old-commit-hash: 5030824572
chrysler-long2
Justin Newberry 1 year ago committed by GitHub
parent 4702d5952d
commit 31eede7722
  1. 8
      Jenkinsfile

8
Jenkinsfile vendored

@ -225,15 +225,17 @@ node {
pcStage("PC tests") { pcStage("PC tests") {
// tests that our build system's dependencies are configured properly, // tests that our build system's dependencies are configured properly,
// needs a machine with lots of cores // 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': { 'car tests': {
pcStage("car tests") { pcStage("car tests") {
sh label: "build", script: "selfdrive/manager/build.py" 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 \ 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" pytest -n auto --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" sh label: "test_car_interfaces.py", script: "MAX_EXAMPLES=100 pytest -n auto --dist=load selfdrive/car/tests/test_car_interfaces.py"
} }
}, },

Loading…
Cancel
Save