8000 apparantly spacecs · commaai/opendbc@786d06e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

safety: default quality flag check to true #10942

safety: default quality flag check to true

safety: default quality flag check to true #10942

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
jobs:
tests:
name: ./test.sh
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-24.04' }}
- os: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-macos-8x14' || 'macos-latest' }}
steps:
- uses: commaai/timeout@v1
- uses: actions/checkout@v4
- uses: ./.github/workflows/cache
- run: ./test.sh
safety_tests:
name: safety
runs-on: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
flags: ['--ubsan']
steps:
- uses: commaai/timeout@v1
- uses: actions/checkout@v4
- uses: ./.github/workflows/cache
- name: Run safety tests
run: ./opendbc/safety/tests/test.sh ${{ matrix.flags }}
misra_mutation:
name: MISRA C:2012 Mutation
runs-on: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/cache
- name: MISRA mutation tests
timeout-minutes: 1
run: |
source setup.sh
scons -j8
pytest -s -n8 --randomly-seed $RANDOM opendbc/safety/tests/misra/test_mutation.py
mutation:
name: Safety mutation tests
runs-on: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
timeout-minutes: 20
env:
GIT_REF: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.event.before || format('origin/{0}', github.event.repository.default_branch) }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # need master to get diff
- uses: ./.github/workflows/cache
- name: Run mutation tests
timeout-minutes: 5
run: |
source setup.sh
scons -j8
cd opendbc/safety/tests && ./mutation.sh
0