mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-14 19:52:06 +08:00
9570336e6c
* laikad update, renaming
* update locationd
* fix naming
* address PR comments
* upsi
* .
* draft to fix replay
* fix process relay to allow no response for messages
* final fix for process replay
* .
* bump cereal
* update process replay ref commit
* reduce wait time
* .
* last ref change
* move laikad helpers to laika
* .
* fix ublox test
* update refs
* add proper qcom replay support
* fix gnss support if both is available
* update refs
* remove left over
* revert laikad msg
* move laika back to master
* init
* fix gps valid flag
* change time
* add gnss to ignore
* remove gps_valid flag
* .
* adopt orientation reset threshold
* .
* update laikad
* .
* fix stanstill KF resets
* test orienation reset count
* update laika
* bump cereal
* fix process replay
* update laika repo
* remove handle gps
* add extra logging for cache
* .
* add more log
* .
* .
* update laika
* dont remove gps code
* inc min satellite count
* update magic vals and add acc drop
* update laika
* upsi
* rem
* bump laika
* use nav and correct
* more fixes
* use sftp
* No more glonass
* Revert "No more glonass"
This reverts commit a76124da50a1e25f423ad1137c7a046e1d57811d.
* nump laika
* back support old ephemeris cache
* add health to ephemeris message
* bump laika
* remove print
* fix laikad tests
* clean
* remove extra log
* bump laika
* inc timeout for plotjuggler build
* rem cache clear
* .
* enable gps after checks
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 88423e25df
92 lines
3.9 KiB
YAML
92 lines
3.9 KiB
YAML
name: tools
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'testing-closet*'
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
BASE_IMAGE: openpilot-base
|
|
CL_BASE_IMAGE: openpilot-base-cl
|
|
DOCKER_REGISTRY: ghcr.io/commaai
|
|
DOCKER_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BUILD: |
|
|
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --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 $GITHUB_WORKSPACE:/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: |
|
|
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $CL_BASE_IMAGE:latest -f Dockerfile.openpilot_base_cl .
|
|
RUN_CL: docker run --shm-size 1G -v $GITHUB_WORKSPACE:/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 $CL_BASE_IMAGE /bin/sh -c
|
|
|
|
|
|
jobs:
|
|
plotjuggler:
|
|
name: plotjuggler
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Build Docker image
|
|
run: eval "$BUILD"
|
|
- name: Unit test
|
|
timeout-minutes: 6
|
|
run: |
|
|
${{ env.RUN }} "scons -j$(nproc) --directory=/tmp/openpilot/cereal && \
|
|
apt-get update && \
|
|
apt-get install -y libdw-dev libqt5svg5-dev libqt5x11extras5-dev && \
|
|
cd /tmp/openpilot/tools/plotjuggler && \
|
|
./test_plotjuggler.py"
|
|
|
|
simulator:
|
|
name: simulator
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 30
|
|
env:
|
|
IMAGE_NAME: openpilot-sim
|
|
if: github.repository == 'commaai/openpilot'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Pull LFS
|
|
run: git lfs pull
|
|
- name: Build base image
|
|
run: eval "$BUILD"
|
|
- name: Build base cl image
|
|
run: eval "$BUILD_CL"
|
|
- name: Build simulator image
|
|
run: DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/sim/Dockerfile.sim .
|
|
- name: Push to container registry
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
|
|
run: |
|
|
$DOCKER_LOGIN
|
|
docker push $DOCKER_REGISTRY/$IMAGE_NAME:latest
|
|
|
|
docs:
|
|
name: build docs
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 25
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Build docker container
|
|
run: |
|
|
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/openpilot-docs:latest -t $DOCKER_REGISTRY/openpilot-docs:latest -f docs/docker/Dockerfile .
|
|
- name: Push docker container
|
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
|
|
run: |
|
|
$DOCKER_LOGIN
|
|
docker push $DOCKER_REGISTRY/openpilot-docs:latest
|
|
|
|
|