@ -19,11 +19,11 @@ env:
DOCKER_LOGIN : docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
DOCKER_LOGIN : docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD : selfdrive/test/docker_build.sh base
BUILD : selfdrive/test/docker_build.sh base
RUN : docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONWARNINGS=error -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 ~/scons_cache:/tmp/scons_cache -v ~/comma_download_cache:/tmp/comma_download_cache -v ~ /openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c
RUN : docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONWARNINGS=error -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 $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache /openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c
BUILD_CL : selfdrive/test/docker_build.sh cl
BUILD_CL : selfdrive/test/docker_build.sh cl
RUN_CL : docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONWARNINGS=error -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 ~/scons_cache:/tmp/scons_cache -v ~/comma_download_cache:/tmp/comma_download_cache -v ~ /openpilot_cache:/tmp/openpilot_cache $CL_BASE_IMAGE /bin/sh -c
RUN_CL : docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONWARNINGS=error -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 $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache /openpilot_cache:/tmp/openpilot_cache $CL_BASE_IMAGE /bin/sh -c
UNIT_TEST : coverage run --append -m unittest discover
UNIT_TEST : coverage run --append -m unittest discover
@ -88,7 +88,7 @@ jobs:
uses : actions/cache/save@v3
uses : actions/cache/save@v3
if : github.ref == 'refs/heads/master'
if : github.ref == 'refs/heads/master'
with:
with:
path : ~ /scons_cache
path : .ci_cache /scons_cache
key : scons-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
key : scons-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
build_mac:
build_mac:
@ -294,7 +294,7 @@ jobs:
id : dependency-cache
id : dependency-cache
uses : actions/cache@v3
uses : actions/cache@v3
with:
with:
path : ~ /comma_download_cache
path : .ci_cache /comma_download_cache
key : proc-replay-${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/ref_commit') }}
key : proc-replay-${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/ref_commit') }}
- name : Build openpilot
- name : Build openpilot
run : |
run : |
@ -369,7 +369,7 @@ jobs:
id : dependency-cache
id : dependency-cache
uses : actions/cache@v3
uses : actions/cache@v3
with:
with:
path : ~ /comma_download_cache
path : .ci_cache /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 : Build openpilot
- name : Build openpilot
run : ${{ env.RUN }} "scons -j$(nproc)"
run : ${{ env.RUN }} "scons -j$(nproc)"
@ -401,9 +401,11 @@ jobs:
- uses : actions/checkout@v3
- uses : actions/checkout@v3
with:
with:
submodules : true
submodules : true
path : current
- name : Save car docs diff
- name : Save car docs diff
id : save_diff
id : save_diff
run : |
run : |
cd current
${{ env.RUN }} "scons -j$(nproc)"
${{ env.RUN }} "scons -j$(nproc)"
output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --path /tmp/openpilot_cache/base_car_info")
output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --path /tmp/openpilot_cache/base_car_info")
output="${output//$'\n'/'%0A'}"
output="${output//$'\n'/'%0A'}"