From fdf1c328b944421036c7e6128b1c9e23064a4ef3 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 24 Jun 2023 22:33:06 -0700 Subject: [PATCH] jenkins: speedup build stage (#28687) * jenkins: speedup build stage * run in gh actions * skip * set that * build * python path * cleanup --- .github/workflows/release.yaml | 18 +++++++++++++++++- Jenkinsfile | 1 - 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7f83f61e0a..1c22d5fece 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,10 @@ on: jobs: build_masterci: name: build master-ci + env: + TARGET_DIR: /tmp/openpilot + container: + image: ghcr.io/commaai/openpilot-base:latest runs-on: ubuntu-20.04 if: github.repository == 'commaai/openpilot' steps: @@ -22,7 +26,19 @@ jobs: submodules: true fetch-depth: 0 - name: Pull LFS - run: git lfs pull + run: | + git config --global --add safe.directory '*' + git lfs pull - name: Build master-ci run: | + release/build_devel.sh + - name: Run tests + run: | + export PYTHONPATH=$TARGET_DIR + cd $TARGET_DIR + scons -j$(nproc) + selfdrive/car/tests/test_car_interfaces.py + - name: Push master-ci + run: | + unset TARGET_DIR BRANCH=master-ci release/build_devel.sh diff --git a/Jenkinsfile b/Jenkinsfile index 3c3e72e422..1f769d7795 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -156,7 +156,6 @@ pipeline { ["check dirty", "release/check-dirty.sh"], ["onroad tests", "cd selfdrive/test/ && ./test_onroad.py"], ["time to onroad", "cd selfdrive/test/ && pytest test_time_to_onroad.py"], - ["test car interfaces", "cd selfdrive/car/tests/ && ./test_car_interfaces.py"], ]) } }