|
|
@ -17,7 +17,7 @@ env: |
|
|
|
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true |
|
|
|
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true |
|
|
|
docker build --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base . |
|
|
|
docker build --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base . |
|
|
|
|
|
|
|
|
|
|
|
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c |
|
|
|
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c |
|
|
|
|
|
|
|
|
|
|
|
BUILD_CL: | |
|
|
|
BUILD_CL: | |
|
|
|
docker pull $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest || true |
|
|
|
docker pull $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest || true |
|
|
@ -27,11 +27,10 @@ env: |
|
|
|
UNIT_TEST: coverage run --append -m unittest discover |
|
|
|
UNIT_TEST: coverage run --append -m unittest discover |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
# TODO: once actions/cache supports read only mode, use the cache for all jobs |
|
|
|
|
|
|
|
build_release: |
|
|
|
build_release: |
|
|
|
name: build release |
|
|
|
name: build release |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
timeout-minutes: 50 |
|
|
|
timeout-minutes: 30 |
|
|
|
env: |
|
|
|
env: |
|
|
|
STRIPPED_DIR: /tmp/releasepilot |
|
|
|
STRIPPED_DIR: /tmp/releasepilot |
|
|
|
steps: |
|
|
|
steps: |
|
|
@ -39,44 +38,29 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
fetch-depth: 0 |
|
|
|
fetch-depth: 0 |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Pull LFS |
|
|
|
- name: Build devel |
|
|
|
run: git lfs pull |
|
|
|
run: TARGET_DIR=$STRIPPED_DIR release/build_devel.sh |
|
|
|
|
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
- name: Check submodules |
|
|
|
- name: Check submodules |
|
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' |
|
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' |
|
|
|
run: release/check-submodules.sh |
|
|
|
run: release/check-submodules.sh |
|
|
|
- name: Cache scons |
|
|
|
- name: Build openpilot and run checks |
|
|
|
id: scons-cache |
|
|
|
run: | |
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
cd $STRIPPED_DIR |
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
${{ env.RUN }} "CI=1 python selfdrive/manager/build.py" |
|
|
|
env: |
|
|
|
- name: Run tests |
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build devel |
|
|
|
|
|
|
|
run: | |
|
|
|
run: | |
|
|
|
TARGET_DIR=$STRIPPED_DIR release/build_devel.sh |
|
|
|
cd $STRIPPED_DIR |
|
|
|
cp Dockerfile.openpilot_base $STRIPPED_DIR |
|
|
|
${{ env.RUN }} "release/check-dirty.sh && \ |
|
|
|
|
|
|
|
python -m unittest discover selfdrive/car" |
|
|
|
|
|
|
|
- name: pre-commit |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
cd $GITHUB_WORKSPACE |
|
|
|
cp .pre-commit-config.yaml $STRIPPED_DIR |
|
|
|
cp .pre-commit-config.yaml $STRIPPED_DIR |
|
|
|
cp .pylintrc $STRIPPED_DIR |
|
|
|
cp .pylintrc $STRIPPED_DIR |
|
|
|
cp mypy.ini $STRIPPED_DIR |
|
|
|
cp mypy.ini $STRIPPED_DIR |
|
|
|
- name: Build Docker image |
|
|
|
cd $STRIPPED_DIR |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "pre-commit run --all" |
|
|
|
eval "$BUILD" |
|
|
|
|
|
|
|
rm $STRIPPED_DIR/Dockerfile.openpilot_base |
|
|
|
|
|
|
|
- name: Build openpilot and run checks |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
cd $STRIPPED_DIR |
|
|
|
|
|
|
|
${{ env.RUN }} "CI=1 python selfdrive/manager/build.py && \ |
|
|
|
|
|
|
|
pre-commit run --all && \ |
|
|
|
|
|
|
|
rm .pre-commit-config.yaml && \ |
|
|
|
|
|
|
|
rm .pylintrc && \ |
|
|
|
|
|
|
|
rm mypy.ini && \ |
|
|
|
|
|
|
|
release/check-dirty.sh && \ |
|
|
|
|
|
|
|
python -m unittest discover selfdrive/car" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build_all: |
|
|
|
build_all: |
|
|
|
name: build all |
|
|
|
name: build all |
|
|
@ -86,26 +70,14 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache scons |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: ${{ github.ref != 'refs/heads/master' || github.repository != 'commaai/openpilot' }} |
|
|
|
|
|
|
|
with: |
|
|
|
with: |
|
|
|
path: /tmp/scons_cache |
|
|
|
save-cache: true |
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-${{ steps.date.outputs.time }} |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Build openpilot with all flags |
|
|
|
- name: Build openpilot with all flags |
|
|
|
run: ${{ env.RUN }} "scons -j$(nproc) --extras --test && release/check-dirty.sh" |
|
|
|
run: ${{ env.RUN }} "scons -j$(nproc) --extras --test && release/check-dirty.sh" |
|
|
|
- name: Cleanup scons cache |
|
|
|
- name: Cleanup scons cache |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --extras --test && \ |
|
|
|
${{ env.RUN }} "rm -rf /tmp/scons_cache/* && \ |
|
|
|
rm -rf /tmp/scons_cache/* && \ |
|
|
|
|
|
|
|
scons -j$(nproc) --extras --test --cache-populate" |
|
|
|
scons -j$(nproc) --extras --test --cache-populate" |
|
|
|
|
|
|
|
|
|
|
|
#build_mac: |
|
|
|
#build_mac: |
|
|
@ -175,21 +147,9 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache scons |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
- name: Build Docker image |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
eval "$BUILD" |
|
|
|
|
|
|
|
docker pull $DOCKER_REGISTRY/$IMAGE_NAME:latest || true |
|
|
|
docker pull $DOCKER_REGISTRY/$IMAGE_NAME:latest || true |
|
|
|
docker build --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/webcam/Dockerfile . |
|
|
|
docker build --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/webcam/Dockerfile . |
|
|
|
- name: Build openpilot |
|
|
|
- name: Build openpilot |
|
|
@ -244,30 +204,11 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache dependencies |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
id: dependency-cache |
|
|
|
|
|
|
|
uses: actions/cache@v2 |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/comma_download_cache |
|
|
|
|
|
|
|
key: ${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/test_valgrind_replay.py') }} |
|
|
|
|
|
|
|
- name: Cache scons |
|
|
|
|
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Run valgrind |
|
|
|
- name: Run valgrind |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && \ |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && \ |
|
|
|
FILEREADER_CACHE=1 python selfdrive/test/test_valgrind_replay.py" |
|
|
|
python selfdrive/test/test_valgrind_replay.py" |
|
|
|
- name: Print logs |
|
|
|
- name: Print logs |
|
|
|
if: always() |
|
|
|
if: always() |
|
|
|
run: cat selfdrive/test/valgrind_logs.txt |
|
|
|
run: cat selfdrive/test/valgrind_logs.txt |
|
|
@ -277,28 +218,10 @@ jobs: |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
timeout-minutes: 50 |
|
|
|
timeout-minutes: 50 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Get current date |
|
|
|
|
|
|
|
id: date |
|
|
|
|
|
|
|
run: echo "::set-output name=time::$(date +'%s')" |
|
|
|
|
|
|
|
- name: Output timestamp |
|
|
|
|
|
|
|
run: echo $TIMESTAMP |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
TIMESTAMP: ${{ steps.date.outputs.time }} |
|
|
|
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache scons |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: ${{ github.ref != 'refs/heads/master' || github.repository != 'commaai/openpilot' }} |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-${{ steps.date.outputs.time }} |
|
|
|
|
|
|
|
restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Run unit tests |
|
|
|
- name: Run unit tests |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "export SKIP_LONG_TESTS=1 && \ |
|
|
|
${{ env.RUN }} "export SKIP_LONG_TESTS=1 && \ |
|
|
@ -339,30 +262,17 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache dependencies |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
|
|
|
|
- name: Cache test routes |
|
|
|
id: dependency-cache |
|
|
|
id: dependency-cache |
|
|
|
uses: actions/cache@v2 |
|
|
|
uses: actions/cache@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: /tmp/comma_download_cache |
|
|
|
path: /tmp/comma_download_cache |
|
|
|
key: ${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/test_processes.py') }} |
|
|
|
key: proc-replay-${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/ref_commit') }} |
|
|
|
- name: Cache scons |
|
|
|
|
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Run replay |
|
|
|
- name: Run replay |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && \ |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && \ |
|
|
|
FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py -j$(nproc) && \ |
|
|
|
CI=1 coverage run selfdrive/test/process_replay/test_processes.py -j$(nproc) && \ |
|
|
|
coverage xml" |
|
|
|
coverage xml" |
|
|
|
- name: Print diff |
|
|
|
- name: Print diff |
|
|
|
if: always() |
|
|
|
if: always() |
|
|
@ -389,35 +299,16 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Pull LFS |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
run: git lfs pull |
|
|
|
|
|
|
|
- name: Cache dependencies |
|
|
|
|
|
|
|
id: dependency-cache |
|
|
|
|
|
|
|
uses: actions/cache@v2 |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/comma_download_cache |
|
|
|
|
|
|
|
key: ${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/model_replay.py') }} |
|
|
|
|
|
|
|
- name: Cache scons |
|
|
|
|
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
- name: Build Docker image |
|
|
|
# Sim docker is needed to get the intel OPENCL drivers |
|
|
|
# Sim docker is needed to get the OpenCL drivers |
|
|
|
run: eval "$BUILD_CL" |
|
|
|
run: eval "$BUILD_CL" |
|
|
|
- name: Run replay |
|
|
|
- name: Run replay |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN_CL }} "scons -j$(nproc) && \ |
|
|
|
${{ env.RUN_CL }} "scons -j$(nproc) && \ |
|
|
|
ONNXCPU=1 FILEREADER_CACHE=1 CI=1 coverage run \ |
|
|
|
ONNXCPU=1 CI=1 coverage run \ |
|
|
|
selfdrive/test/process_replay/model_replay.py -j$(nproc) && \ |
|
|
|
selfdrive/test/process_replay/model_replay.py -j$(nproc) && \ |
|
|
|
coverage xml" |
|
|
|
coverage xml" |
|
|
|
|
|
|
|
|
|
|
|
test_longitudinal: |
|
|
|
test_longitudinal: |
|
|
|
name: longitudinal |
|
|
|
name: longitudinal |
|
|
@ -427,20 +318,7 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache scons |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Test longitudinal |
|
|
|
- name: Test longitudinal |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "mkdir -p selfdrive/test/out && \ |
|
|
|
${{ env.RUN }} "mkdir -p selfdrive/test/out && \ |
|
|
@ -469,30 +347,17 @@ jobs: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- name: Cache dependencies |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
|
|
|
|
- name: Cache test routes |
|
|
|
id: dependency-cache |
|
|
|
id: dependency-cache |
|
|
|
uses: actions/cache@v2 |
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: /tmp/comma_download_cache |
|
|
|
path: /tmp/comma_download_cache |
|
|
|
key: car_models-${{ hashFiles('selfdrive/car/tests/test_models.py', 'selfdrive/car/tests/routes.py') }}-${{ matrix.job }} |
|
|
|
key: car_models-${{ hashFiles('selfdrive/car/tests/test_models.py', 'selfdrive/car/tests/routes.py') }}-${{ matrix.job }} |
|
|
|
- name: Cache scons |
|
|
|
|
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Test car models |
|
|
|
- name: Test car models |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --test && \ |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --test && \ |
|
|
|
FILEREADER_CACHE=1 coverage run -m pytest selfdrive/car/tests/test_models.py && \ |
|
|
|
coverage run -m pytest selfdrive/car/tests/test_models.py && \ |
|
|
|
coverage xml && \ |
|
|
|
coverage xml && \ |
|
|
|
chmod -R 777 /tmp/comma_download_cache" |
|
|
|
chmod -R 777 /tmp/comma_download_cache" |
|
|
|
env: |
|
|
|
env: |
|
|
@ -530,20 +395,7 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
ref: ${{ github.event.pull_request.base.ref }} |
|
|
|
ref: ${{ github.event.pull_request.base.ref }} |
|
|
|
- name: Cache scons |
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
id: scons-cache |
|
|
|
|
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
|
|
|
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
CACHE_SKIP_SAVE: true |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
path: /tmp/scons_cache |
|
|
|
|
|
|
|
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
|
|
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- |
|
|
|
|
|
|
|
scons- |
|
|
|
|
|
|
|
- name: Build Docker image |
|
|
|
|
|
|
|
run: eval "$BUILD" |
|
|
|
|
|
|
|
- name: Get base car info |
|
|
|
- name: Get base car info |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/debug/dump_car_info.py --path /tmp/openpilot_cache/base_car_info" |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/debug/dump_car_info.py --path /tmp/openpilot_cache/base_car_info" |
|
|
|