82 Commits

Author SHA1 Message Date
Shane Smiskol
e5b1987107 Increase timeout if cache not hit (#2678)
* no cache timeout

* hmm

* 90 fine
2025-08-18 17:36:51 -07:00
Adeeb Shihadeh
196e036112 Fix mutation test timing out for big changes (#2668) 2025-08-16 17:25:09 -07:00
Shane Smiskol
5616f1b547 Revert "CI: bump allowed time for test.sh"
This reverts commit 2d3b8d202a.
2025-08-06 14:13:13 -07:00
Jason Young
2d3b8d202a CI: bump allowed time for test.sh 2025-08-06 15:53:15 -04:00
Adeeb Shihadeh
886471046c test_models cleanup (#2619)
* check that

* revert
2025-08-04 10:11:22 -07:00
Adeeb Shihadeh
22b8df68fb CI: auto-update cppcheck (#2563)
* ci: add weekly cppcheck updater

* Update update-cppcheck.yml

* fix perms

* Update update-cppcheck.yml

* Update update-cppcheck.yml
2025-08-03 10:35:57 -07:00
Adeeb Shihadeh
76311e36f8 port over test_models from openpilot (#2578)
* start test models

* fix path

* env

* pytest

* less building

* msgq

* and opendbc
2025-07-28 17:00:56 -07:00
Shane Smiskol
76cd9c2e68 Revert "CI: move ubsan into test.sh matrix" (#2449)
Revert "CI: move ubsan into test.sh matrix (#2305)"

This reverts commit 90bad1f04c.
2025-07-09 16:00:02 -07:00
Adeeb Shihadeh
c1aa3f202b disbale re-draft job for now 2025-07-04 11:34:39 -07:00
Adeeb Shihadeh
06c013d48c forgot checkout 2025-07-04 11:22:21 -07:00
Adeeb Shihadeh
9fdbf2e283 CI: convert PRs to draft after review 2025-07-04 10:14:36 -07:00
Adeeb Shihadeh
a1a53e5ad1 Add PR template (#2344)
Create pull_request_template.md
2025-05-31 16:34:35 -07:00
Maxime Desroches
89c74c37cb ci: no timeout for forks (#2315)
t
2025-05-27 20:58:39 -07:00
Adeeb Shihadeh
90bad1f04c CI: move ubsan into test.sh matrix (#2305)
* CI: move ubsan into test.sh matrix

* try this
2025-05-25 13:22:10 -07:00
Adeeb Shihadeh
c2a8b02a34 move MISRA mutation tests into test.sh (#2304)
* move MISRA mutation tests into test.sh

* no sed

* lil cleanup

* this stuff is slow for the dumbest reasons

* sample
2025-05-25 13:15:11 -07:00
Shane Smiskol
7cfdb8fab9 Clean up CI caching (#2293)
* chat is this true?

* wtf is this

* try this

* replace

* use on missing jobs to speed up again

* rename

* we already installed in setup

* remove cd
2025-05-23 21:31:32 -07:00
Adeeb Shihadeh
58f4b86121 pre-commit -> lefthook (#2278)
* pre-commit -> lefthook

* fix cpplint

* cleanupg
2025-05-20 12:01:27 -07:00
Adeeb Shihadeh
de58e1910c move MISRA check into test.sh (#2276)
* move MISRA check into test.sh

* ignore those too
2025-05-20 11:12:14 -07:00
Adeeb Shihadeh
2996f960e7 run safety tests in test.sh (#2275)
* run safety tests in test.sh

* looks like this is just macos-latest now?

* namespace
2025-05-20 10:36:29 -07:00
Shane Smiskol
80c68c956d Fix cppcheck cache (#2264)
* fix

* no useless restore keys
2025-05-18 00:26:35 -07:00
Adeeb Shihadeh
35af9d9dde CI: cache pre-commit (#2241) 2025-05-14 14:27:41 -07:00
Trey Moen
06200ae89a fix(macos): macOS 15 and greater (#2180)
* remove mac handling

* test with 15, too

* Revert "remove mac handling"

This reverts commit 1f59c8dc8f1dff16f058b2cff2aa5cfbe5b0ba3a.

* use gcc on < macOS 15

* link to issue
2025-05-13 11:20:00 -07:00
Jason Wen
7621a8fd9c CI: Fix GIT_REF formatting in safety mutation workflow (#2070)
Replace string interpolation with format function for consistency and better readability. This ensures proper handling of default branch references in the workflow.
2025-04-01 11:47:24 -07:00
DevTekVE
8864b9b200 CI: Set GIT_REF as an environment variable for safety mutation tests (#1956)
* Set GIT_REF as an environment variable for mutation tests

This change moves the GIT_REF definition into the environment section, simplifying its use in the workflow steps. It ensures consistency and clarity by separating variable definition from execution commands.

* Update .github/workflows/tests.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-30 14:51:23 -07:00
Maxime Desroches
a60db8a30a use Github Actions macOS runners (#2062)
switch
2025-03-28 21:18:08 -07:00
Mauricio Alvarez Leon
066277cc58 test_models_trigger.yaml: add checkout check to prevent opendbc bump fail (#1919)
add checkout check to prevent opendbc bump fail
2025-03-04 15:55:22 -08:00
Maxime Desroches
0dc30f0099 Revert "title for test_models trigger"
This reverts commit 6a19dcddb8.
2025-02-22 12:08:16 -08:00
Maxime Desroches
6a19dcddb8 title for test_models trigger 2025-02-22 12:05:56 -08:00
Maxime Desroches
b7b80e9f32 test_models trigger comment (#1799)
trigger
2025-02-22 12:00:16 -08:00
Shane Smiskol
ef06d5ad59 label safety prs 2025-02-20 22:03:44 -08:00
Shane Smiskol
da79307124 add safety mutation test (#1756)
* safety mutation test

* use pytest

* try this

* debug

* ?

* ooh

* install

* fix?

* test it's running

* need

* faster?

* try everything

* test mutat

* does it fail here?

* try

* 0?

* loadfile

* fix

* try

* try

* ignore misra!

* fix

* what's the default?

* testtt

* try 16

* it's fast now

* no

* 1m

* clean up

* probably doesn't matter now

* no .

* even need this?

* and this still works?

* yep!
2025-02-19 22:33:44 -08:00
Shane Smiskol
5a307c2b94 Fix namespace for contributors (#1758)
* Revert "namespace runners for all (#1755)"

This reverts commit 21fbe48206.

* not for fork
2025-02-19 22:26:43 -08:00
Shane Smiskol
21fbe48206 namespace runners for all (#1755)
for all
2025-02-19 21:07:41 -08:00
Shane Smiskol
6f83fdf9b9 Move car safety modes to opendbc (#1713)
* move safety tests

* move libsafety

* move safety

* rename imports

* copy over needed (minimalized) board and driver code

* dont test safety here

* add new job for safety tests

fix

* try fix

* ubsan

* ?

?

* missing cffi

* should be final fix

* mac fix

* no mac

* use setup script

* no cd

* this is the correct way to do it

* add misra

* misra fixes

* run

* setup misra

* add missing files

* is this used?

* add that

* Revert "is this used?"

This reverts commit 2f34762dfa.

* need this

* misra mutation test

* fix

* no race conditions

* test

* cache cppcheck

fix

* setup

* good timeouts

* mutation test

* fix

* no

* Revert "no"

This reverts commit 39e10a045a.

* already tested

* move Safety Model readme section to opendbc

* fix

* fix

* disable mutation tests for merge

* namespace

* test no cache

* 1m

1m
2025-02-19 17:19:31 -08:00
Shane Smiskol
0fdb59fd34 namespace runner (#1752)
* try namespace

* work?

* shorter

* work?

* Revert "work?"

This reverts commit e659b7168b.
2025-02-19 17:04:59 -08:00
Lukas
0f543acd8a Rivian R1S / R1T Generation 1 (#1613)
* tesla model 3 dbc files

* reduction to the most important signals

* Model3 port wip

* wip

* wip model 3

* wip model 3

* Model 3 wip

* wip model 3

* wip model 3

* wip model 3

* wip model 3 partybus

* bump opendbc

* tesla model 3

* tesla model 3

* tesla model 3

* try to use STW_ACTN_RQ

* new dbc

* dbc update

* remove neutral gear bug

* switch to party bus

* added doorOpen

* VCFRONT_status back to 50hz updated dbc

* anyDoor open use different signal

* added VCRIGHT_status

* indentation

* added Left & Right Seatbelt

* found DriverSeat signal

* found DAS_status on Party can

* found "anyDoorOpen" signal

* added rivian dbc

* auto format rivian dbc

* auto format rivian dbc

* added IndicatorLights

* Update rivian_can.dbc

* fixed message sizes

* ACM_lkaHbaCmd filled missing signals

* remove rivian_can.dbc

* Rivian R1S

* switch to LKAS torque-controlled message

* tuning

* tuning

* remove old dbc

* spam ACM_Status

* less friction

* dont send ACM_Status

* less friction

* - clean up
- fix steer fault state
- enabled seatbelt state

* cruiseState speed

* cruise enabled only with ACC

* disable speed

* revert mistake

* CAN parser dict

* fixed can_parsers

* add Cluster Speed

* docs: Scheduled auto-update CARS.md

* fix new_actuators

* switch to ESP_Vehicle_Speed

* implement stopping

* enable experimental long

* remove comment

* remove dashcam flag

* send ACM_Status

* fix riviancan.py

* send ACM_longitudinalRequest if engaged

* carName -> brand

* - add model year
- increase longitudinalActuatorDelay

* Update opendbc/car/rivian/carcontroller.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update opendbc/car/rivian/carstate.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update opendbc/car/rivian/carstate.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update opendbc/car/rivian/radar_interface.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update opendbc/car/rivian/values.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update opendbc/car/rivian/fingerprints.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* remove "GEN1"

* Update opendbc/car/fingerprints.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* add brake pressure

* add doorOpen

* add doorOpen

* remove tesla fw querys

* remove longitudinal control for now

* add standstill

* add accFaulted and remove acm_status

* add Placeholder fingerprint

* fix cruise standstill

* now just to fix fingerprinting

* passing

---------

Co-authored-by: lukasloetkolben <lukasloetkolben@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-02-16 17:00:24 -08:00
Shane Smiskol
92c54d6fe1 don't publish to production PyPI when triggered 2025-02-10 17:23:51 -08:00
Shane Smiskol
de266a753e run on demand 2025-02-10 15:25:47 -08:00
Shane Smiskol
80eb006262 PyPI publishing (#1707)
* set up

* try

* debug

* try

* ?

* hmm

* whoops

* debug

* ?!

* fix

* f

* test

* just see if works!

* works!

* back to release
2025-02-10 15:02:26 -08:00
ugtthis
68c0996baf CI: Update CARS.md every night (#1590)
* Initial commit

* move to top

* for testing -  will revert

* try this to get test to get actions to show

* revert order

* rename worflow

* for testing - will revert

* revert name change

* editable mode

* build cython modules

* be explicit

* simplify pip install

* add submodules

* revert to working code

* TEST edit

* docs: Nightly update CARS.md

* clearer auto commit message

* revert test doc change

* docs: Scheduled auto-update CARS.md

* rm on pull request

* simpler approach

* testing again

* install scons

* revert to working code

* testing last time

* docs: Scheduled auto-update CARS.md

* revert test changes

* auto generate CARS to revert md changes from test

* docs: Scheduled auto-update CARS.md

* revert on pull request

* change to 12am PST

* rm blank line

* add name

* Update .github/workflows/update-cars-docs.yml

---------

Co-authored-by: ugtthis <ugtthis@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-12-19 11:01:50 -08:00
Adeeb Shihadeh
fd8471dc0d remove test_generator; doesn't make sense now that we're building it in SCons 2024-12-15 10:14:30 -08:00
Adeeb Shihadeh
51f30f69bf better name 2024-12-14 23:37:05 -08:00
Adeeb Shihadeh
192f54d05f CI: just use ./test.sh (#1582)
* CI: just use ./test.sh

* make sure this works

* how much of this is pre-commit

* should be good

* rm that
2024-12-14 23:35:26 -08:00
Adeeb Shihadeh
b9daff809a make stale bot less annoying 2024-12-04 14:39:58 -08:00
Adeeb Shihadeh
d458bdf827 remove cppcheck (#1542)
* remove cppcheck

* rm that
2024-11-28 12:03:40 -08:00
Adeeb Shihadeh
cb43b6cdf8 let's try sync labels 2024-11-28 11:55:31 -08:00
Maxime Desroches
21910a81bb ci: don't timeout if the runner is slow to pick up the job (#1521)
* try

* test

* fix

* try

* ;

* ;;

* fix

* try

* try

* fix this

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* try

* try failure

* works

* better

* comma

* test

* cleanup
2024-11-23 19:19:58 -08:00
Louis Velez
e57375f1e2 CI: fix macOS test running (#1516)
* CI: fixes MacOS test running

* CI: adds coreutils for nproc

* CI: fixes based on PR

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-11-21 14:16:17 -08:00
Adeeb Shihadeh
9a353c4d25 no stale for drafts 2024-11-18 16:02:41 -08:00
voidvisor
56d6d39b11 Stale bot for PRs (#1474) 2024-11-12 16:31:24 -08:00