diff --git a/Jenkinsfile b/Jenkinsfile index af33edb821..f1450c304b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -252,6 +252,11 @@ node { step("test amp", "./openpilot/common/hardware/comma/tests/test_amplifier.py"), ]) }, + 'chestnut': { + deviceStage("chestnut", "mici-chestnut-ci", ["UNSAFE=1", "CHESTNUT=1"], [ + step("compile big model", "./openpilot/selfdrive/test/chestnut.sh"), + ]) + }, ) } diff --git a/openpilot/selfdrive/test/chestnut.sh b/openpilot/selfdrive/test/chestnut.sh new file mode 100755 index 0000000000..747a2b275b --- /dev/null +++ b/openpilot/selfdrive/test/chestnut.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e + +TARGET=openpilot/selfdrive/modeld/models/big_driving_tinygrad.pkl.chunkmanifest +rm -f "$TARGET" +scons --cache-disable "$TARGET" +test -s "$TARGET" diff --git a/openpilot/selfdrive/test/setup_device_ci.sh b/openpilot/selfdrive/test/setup_device_ci.sh index 60631ce037..8558a38bc9 100755 --- a/openpilot/selfdrive/test/setup_device_ci.sh +++ b/openpilot/selfdrive/test/setup_device_ci.sh @@ -58,6 +58,12 @@ chmod +x $CONTINUE_PATH export GIT_LFS_SKIP_SMUDGE=1 pull_lfs() { + if [ -n "${CHESTNUT:-}" ] + then + git lfs pull --exclude='' + return + fi + # The big driving model is not used on these devices yet. Keep its pointer in # the worktree, but don't download or copy the 1.8 GB LFS object. LFS_EXCLUDE="openpilot/selfdrive/modeld/models/big_driving_supercombo.onnx"