Commit Graph

78 Commits

Author SHA1 Message Date
Adeeb Shihadeh
e5074a6855 lil more 2025-12-20 14:21:25 -08:00
Adeeb Shihadeh
d72c8b4e8e CI: use tags for cppcheck update
cppcheck doesn't always create a release for each tag
2025-12-20 14:19:09 -08:00
Adeeb Shihadeh
c2723b2f6b CI: auto-update cppcheck weekly (#2253)
* CI: auto-update cppcheck weekly

* no push
2025-08-03 10:38:58 -07:00
Adeeb Shihadeh
edd4146635 simplify HITL tests (#2229)
* lil fixups

* revert that for now

* no n0

* also 1.8V

* global
2025-07-19 16:13:51 -07:00
Adeeb Shihadeh
5e136bad1d add macOS to CI (#2217)
* add macOS to CI

* cleanup

* debug

* cmt

* can't wait for ty
2025-05-25 10:10:20 -07:00
Adeeb Shihadeh
4fc243b998 CI: speed up MISRA mutation job (#2213)
* CI: speed up MISRA mutation job

* install first
2025-05-20 10:18:47 -07:00
Adeeb Shihadeh
cb11a40852 test.sh: the master test script (#2210)
* init test.sh

* good riddance

* docs

* curl

* source

* or

* skip that one

* passes

* clean up

* no pythonpath

* rm that
2025-05-19 21:19:41 -07:00
Adeeb Shihadeh
2e924c759c speeeedy ci (#2209)
* speeeedy ci

* disable for now

* rm

* cppcheck cache

* simple docker

* one more

* needs to get to 1m...

* one more

* needs time to build

* libusb
2025-05-19 20:20:06 -07:00
Adeeb Shihadeh
d7e5f8560f Move setup to pyproject (#2207)
* migrate packaging to pyproject

* fix

* mv

* lil more
2025-05-19 19:24:49 -07:00
Adeeb Shihadeh
20c80e3929 Update GitHub Actions actions versions (#2204)
* chore: update GitHub action versions

* pin that

* Apply suggestions from code review
2025-05-19 18:49:25 -07:00
Adeeb Shihadeh
471a455789 remove socketcan ci job 2025-05-18 09:06:35 -07:00
Robbe Derks
165dd6614e 1min is a bit tight 2025-04-09 16:00:28 +02:00
Shane Smiskol
9804e2607e Move car safety modes to opendbc (#2143)
* move safety tests

* move libsafety

* move safety

* remove safety test job

* fix compilation

* update ref

* rm safety mutation test

* fix misra test

* no safety here

* fix build for both local and docker

* already tested

* fix misra mutation

* move Safety Model readme section to opendbc

* and panda

* fix

* in

* not here

* not here
2025-02-19 17:19:18 -08:00
Maxime Desroches
b770745342 ci: split MISRA linter and MISRA mutation (#2086)
* sep

* this
2024-11-21 11:48:02 -08:00
Robbe Derks
a67f3650c8 Increase MISRA to 2min max (#2079)
increase to 2min max
2024-11-14 11:28:28 +01:00
Maxime Desroches
9aec4294cc ci: test building in release mode (#2062)
* build

* space

* better
2024-10-18 14:10:54 -07:00
Maxime Desroches
2b9458e8a6 ci: run build_socketcan only on push to master and pull_request (#2063)
push on master
2024-10-18 13:08:14 -07:00
Maxime Desroches
78b49ab155 safety mutation tests (#2040)
* mutation

* clone

* origin

* get diff

* better example

* better

* fix docker

* work on push

* make test fail

* real change

* test all modes

* ignore

* better

* reco

* fix

* no libpanda on device

* curl

* nl

* nl again

* delete

* clean

* clean

* this

* add this back

* cleanup
2024-09-25 21:56:09 -07:00
dzid26
fcccbb3a13 revert shorter MISRA mutation CI timeout
- test_misra.sh only got faster locally
2024-09-07 19:57:19 -07:00
Radek
2aaab40117 fix test_mutation.py performace (#2012)
stop pytest from executing test_misra.sh in test collections
- in each test_mutation.py worker
2024-09-06 13:30:05 -07:00
Adeeb Shihadeh
9ec02e74f5 socketcan: skip install in CI for now 2024-08-31 13:17:55 -07:00
Adeeb Shihadeh
c4e75ee89c remove cereal dependence (#2000)
* remove cereal

* rm more shit

* add back make

* python3

* python3

* fix that

* put that back

* rename

* fix that

* can't move it
2024-08-18 11:40:54 -07:00
Adeeb Shihadeh
5d815231ea 1min is all you need 2024-08-02 13:52:28 -07:00
Adeeb Shihadeh
ee7b385be7 CI: add jenkins-trigger 2024-08-02 11:02:38 -07:00
Adeeb Shihadeh
2cf3b84c77 run pre-commit autoupdate monthly 2024-05-08 13:54:02 -07:00
Adeeb Shihadeh
53e0f13739 update to ubuntu 24.04 (#1941)
* update to ubuntu 24.04

* Apply suggestions from code review

* Update .github/workflows/repo.yml

* Update test.yaml

* docker builds

* bump

* no pyenv

* ugh this should just be removed

* fix

* add release/

* no openpilot

* remove those too

* build in the docker

* cleanup

* need the addons
2024-04-28 15:32:18 -07:00
Justin Newberry
698d17e021 fix inconsistent misra mutation tests (#1935)
* revert

* fix
2024-04-22 10:28:53 -07:00
Justin Newberry
4d60ae9c62 CI: fix misra mutation tests (#1934)
* fix that

* skip build, install first

* Revert "skip build, install first"

This reverts commit 01efdb77ce3d834b55bbed1172ca83bb0103bfc8.

* prune
2024-04-18 17:59:33 -07:00
Adeeb Shihadeh
c076a9f2f6 remove pedal fw (#1872)
* remove pedal fw

* little more

* one more

* and tests

* rest of it

* little more

* fix linter

* more fix
2024-02-16 22:58:01 -08:00
Shane Smiskol
aca33b83a4 tests: one file for safety and coverage tests (#1865)
* one file for all tests

* clean up

* unreachable

* Revert "unreachable"

This reverts commit 4b792b1f9b5290b57975d21c24be5029be16b0e3.
2024-02-13 17:27:19 -08:00
Aryan
54459e694e update cppcheck (#1859)
* update cppcheck

* Update tests/misra/install.sh

* delete cppcheck cache

* remove misra 5.8 erroors

* fixed uninitialized data error

* suppress misra-c2012-2.3 and misra-c2012-2.4

* reinstate cache to fix mutation test

* rerun for mutation test

* increase timeout for mutation test

* styling

* comments + variable name changes

* Update tests/misra/install.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update install.sh

* more variable name changes

* condition on defining CANPacket_t

* just cherry pick

* fix build

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-10 14:50:36 -08:00
Hoang Bui
ced1fb3dee Add more MISRA mutation tests (#1818)
* 9 added tests

* test speed with new del header

* mypy

* cleanup

* fix error in delete

* random

* change

* works on local

* sorted

* with order

* add pytest randomly

* test with ci

* remove sort

* cleanup

* all files

* no obj

* another bootstub

* fix

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-20 15:52:38 -08:00
Adeeb Shihadeh
12d326c110 parallelize misra mutation tests (#1768)
* parallelize misra mutation tests

* timeouts
2023-12-09 14:32:40 -08:00
Adeeb Shihadeh
7340ece196 misra mutation test (#1763)
* misra mutation test

* a few cases

* revert that

* fixups

* test that

* build fw
2023-12-08 23:20:42 -08:00
Shane Smiskol
5fe1d67b77 safety: test coverage (#1699)
* run in CI

* test

* make report optional

* 100% GM coverage

comments

* more coverage: these are unhittable lines

* vw mqb: convert switch to if, consistent with all other safety modes

* we don't check any of these yet

* rm

* ensure honda_fwd_brake is reset

* can rm this

* test honda brake latching

* honda: add rx brake function

* use loops for more coverage and more compact code

* other honda stuff

* remove car-specific stuff from init_tests

* don't need to have car safety modes reset interceptor detected (global init does)

* use get_bit

* ahh ford counter is unhittable: counter check disabled due to skipping

* misra

* test nooutput and alloutput

* required changes for that

* fix test

* more all/nooutput coverage

* start on lin

* rx coverage

* lin tx coverage

* some barebones body test

* double negative

* draft elm327 safety (git stash)

* fixes from merge

* clean up test cov

* add rm

* no body

* failed grep returns exit code 1

* more clear msgs
2023-11-10 19:37:41 -08:00
Adeeb Shihadeh
b6e37f25b6 Remove flash logging (#1674)
* Revert "Disable flash logging (#1667)"

This reverts commit 62db60595b.

* Revert "Faster log retrieval (#1484)"

This reverts commit 694aae9c26.

* Revert "Flash bounds checking outside of bootstub (#1459)"

This reverts commit 054344de6b.

* Revert "Logging (#1445)"

This reverts commit 0cc91a7f7b.

* cleanup

* cleanup
2023-09-30 12:49:46 -07:00
Adeeb Shihadeh
ee21517c77 CI: run each job only once (#1659) 2023-09-07 19:10:05 -07:00
Adeeb Shihadeh
9df7802f71 CI: bump up safety test timeout 2023-08-10 16:36:00 -07:00
Adeeb Shihadeh
61e987f6e2 remove safety replay test (#1569) 2023-08-07 18:38:01 -07:00
Adeeb Shihadeh
43bde4138d jungle: SBU provisioning tests (#1553)
* jungle: SBU provisioning tests

* update can_send

* cleanup

* fix misra

* space
2023-08-04 14:28:23 -07:00
Robbe Derks
0cc91a7f7b Logging (#1445)
* try 1

* some fixes

* fix some misra

* first poc working

* more things

* more misra fixes

* fix misra

* add rate limiting

* fix misra

* add some unit tests through libpanda

* add more tests and fix some stuff

* fix misra again

* add startup log hitl test

* list

* don't fail on wrong timestamps

* improvements

* fix tests

* expected logs test?

* not sure why this passed

* oh, it doesn't reset

* only show last few

* guess at expected logs

* needs this

* ugh

* reduce compiler warnings

* adjust expected logs

* this is correct

* is it really 1?

* min max

* reduce spam in SPI test

* some cleanup
2023-06-13 17:00:56 +02:00
Adeeb Shihadeh
a8f851870d ci: bump up safety test timeout 2023-05-21 20:31:01 -07:00
Adeeb Shihadeh
1e8c5d59c7 CI: run tests with UBSan (#1363)
* CI: run tests with UBSan

* try this
2023-04-26 23:15:28 -07:00
Adeeb Shihadeh
862b03b5c5 CI: add job to update pre-commit hooks (#1346)
* CI: add job to update pre-commit hooks

* rm push trigger
2023-04-15 17:56:25 -07:00
Adeeb Shihadeh
b6c378ad02 CI: set PYTHONWARNINGS=error (#1323)
* CI: set PYTHONWARNINGS=error

* update resetter

* fix build warnings

* bump jungle

* fix one more

* fix linter

---------

Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-04-02 09:33:35 -07:00
Adeeb Shihadeh
ba7d21805a ci: lower safety test timeout 2023-03-21 18:49:47 -07:00
Adeeb Shihadeh
88b30e1a84 CAN comms test (#1181)
* CAN comms test

* remove those

* cleanup

* little more
2022-11-30 22:12:28 -08:00
Adeeb Shihadeh
1f73c70fdc generic libpanda for tests (#1177)
* generic libpanda for tests

* move safety helpers

* fix ci build

* fix running

* opendbc is in the image

* make can packet

* rename
2022-11-30 17:41:24 -08:00
Adeeb Shihadeh
b19a74f93d CI: fix mounting in GITHUB_WORKSPACE (#1175) 2022-11-30 15:56:15 -08:00
Shane Smiskol
702e5281d8 remove unused scons argument (#1169)
* clean

* also here
2022-11-29 01:28:46 -08:00