From 8f67d3cab9bb7031f3350b0c320606aa843503d5 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Wed, 7 Feb 2024 14:33:52 -0500 Subject: [PATCH] jenkins: remove pc / car tests (#31353) * move to scripts * clean first * cant have test_*? * move --- Jenkinsfile | 18 ------------------ selfdrive/car/tests/big_cars_test.sh | 8 ++++++++ selfdrive/test/scons_build_test.sh | 6 ++++++ 3 files changed, 14 insertions(+), 18 deletions(-) create mode 100755 selfdrive/car/tests/big_cars_test.sh create mode 100755 selfdrive/test/scons_build_test.sh diff --git a/Jenkinsfile b/Jenkinsfile index 392253e845..d678535fd4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -259,24 +259,6 @@ node { ]) }, - // *** PC tests *** - 'PC tests': { - 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: '''#!/bin/bash - scons --no-cache --random -j$(nproc)''' - } - }, - 'car tests': { - pcStage("car tests") { - sh label: "build", script: "selfdrive/manager/build.py" - sh label: "run car tests", script: "cd selfdrive/car/tests && MAX_EXAMPLES=300 INTERNAL_SEG_CNT=300 FILEREADER_CACHE=1 \ - INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt pytest test_models.py test_car_interfaces.py" - } - }, - ) } } catch (Exception e) { diff --git a/selfdrive/car/tests/big_cars_test.sh b/selfdrive/car/tests/big_cars_test.sh new file mode 100755 index 0000000000..6142fe8411 --- /dev/null +++ b/selfdrive/car/tests/big_cars_test.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +MAX_EXAMPLES=300 +INTERNAL_SEG_CNT=300 +FILEREADER_CACHE=1 +INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt + +cd selfdrive/car/tests && pytest test_models.py test_car_interfaces.py \ No newline at end of file diff --git a/selfdrive/test/scons_build_test.sh b/selfdrive/test/scons_build_test.sh new file mode 100755 index 0000000000..7614017c55 --- /dev/null +++ b/selfdrive/test/scons_build_test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# tests that our build system's dependencies are configured properly, +# needs a machine with lots of cores +scons --clean +scons --no-cache --random -j$(nproc) \ No newline at end of file