jenkins: re-enable test_models (#29394)

* re-enable test_models

* now?

* Remove bad Volt segment

* Update Jenkinsfile

* use first n segments
pull/29407/head
Shane Smiskol 2 years ago committed by GitHub
parent 6c3e5c4362
commit fb235238ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Jenkinsfile
  2. 6
      selfdrive/car/tests/test_models.py
  3. 4
      selfdrive/car/tests/test_models_segs.txt

3
Jenkinsfile vendored

@ -158,7 +158,8 @@ pipeline {
sh "git lfs pull" sh "git lfs pull"
// tests that our build system's dependencies are configured properly, needs a machine with lots of cores // tests that our build system's dependencies are configured properly, needs a machine with lots of cores
sh "scons --clean && scons --no-cache --random -j42" sh "scons --clean && scons --no-cache --random -j42"
//sh "INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt FILEREADER_CACHE=1 pytest -n42 --dist=loadscope selfdrive/car/tests/test_models.py" sh "INTERNAL_SEG_CNT=400 INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt FILEREADER_CACHE=1 \
pytest -n42 --dist=loadscope selfdrive/car/tests/test_models.py"
} }
post { post {

@ -27,6 +27,7 @@ PandaType = log.PandaState.PandaType
NUM_JOBS = int(os.environ.get("NUM_JOBS", "1")) NUM_JOBS = int(os.environ.get("NUM_JOBS", "1"))
JOB_ID = int(os.environ.get("JOB_ID", "0")) JOB_ID = int(os.environ.get("JOB_ID", "0"))
INTERNAL_SEG_LIST = os.environ.get("INTERNAL_SEG_LIST", "") INTERNAL_SEG_LIST = os.environ.get("INTERNAL_SEG_LIST", "")
INTERNAL_SEG_CNT = int(os.environ.get("INTERNAL_SEG_CNT", "0"))
ignore_addr_checks_valid = [ ignore_addr_checks_valid = [
GM.BUICK_REGAL, GM.BUICK_REGAL,
@ -48,7 +49,10 @@ def get_test_cases():
else: else:
with open(os.path.join(BASEDIR, INTERNAL_SEG_LIST), "r") as f: with open(os.path.join(BASEDIR, INTERNAL_SEG_LIST), "r") as f:
seg_list = iter(f.read().splitlines()) seg_list = f.read().splitlines()
cnt = INTERNAL_SEG_CNT or len(seg_list)
seg_list = iter(seg_list[:cnt])
for platform in seg_list: for platform in seg_list:
platform = platform[2:] # get rid of comment platform = platform[2:] # get rid of comment

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:636df10e41e8c6668678a3aa7098afad8c160ea7b75c5a0473f6709db1c702dc oid sha256:cab947c2a63a4ce7738e5396f2699335e7369cf8b215bf3cb4db072ba8ca6f65
size 39373 size 39302

Loading…
Cancel
Save