mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 10:13:57 +08:00
jenkins: re-enable test_models (#29394)
* re-enable test_models * now? * Remove bad Volt segment * Update Jenkinsfile * use first n segments
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -158,7 +158,8 @@ pipeline {
|
||||
sh "git lfs pull"
|
||||
// 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 "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 {
|
||||
|
||||
@@ -27,6 +27,7 @@ PandaType = log.PandaState.PandaType
|
||||
NUM_JOBS = int(os.environ.get("NUM_JOBS", "1"))
|
||||
JOB_ID = int(os.environ.get("JOB_ID", "0"))
|
||||
INTERNAL_SEG_LIST = os.environ.get("INTERNAL_SEG_LIST", "")
|
||||
INTERNAL_SEG_CNT = int(os.environ.get("INTERNAL_SEG_CNT", "0"))
|
||||
|
||||
ignore_addr_checks_valid = [
|
||||
GM.BUICK_REGAL,
|
||||
@@ -48,7 +49,10 @@ def get_test_cases():
|
||||
|
||||
else:
|
||||
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:
|
||||
platform = platform[2:] # get rid of comment
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:636df10e41e8c6668678a3aa7098afad8c160ea7b75c5a0473f6709db1c702dc
|
||||
size 39373
|
||||
oid sha256:cab947c2a63a4ce7738e5396f2699335e7369cf8b215bf3cb4db072ba8ca6f65
|
||||
size 39302
|
||||
|
||||
Reference in New Issue
Block a user