Commit Graph

65 Commits

Author SHA1 Message Date
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
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 2f34762dfa65821e1ee398675bf62d1a256ebec8.

* 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 39e10a045a4a5411a64de791ae463461f8a5f37b.

* 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 e659b7168b6065e4fdff2a9361533357b3242e91.
2025-02-19 17:04:59 -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
Hoang Bui
88ddf53ffc CI: Add macOS CI (#1327)
ci: add mac ci
2024-10-02 07:47:46 -07:00
Alexandre Nobuharu Sato
26dfa1d290 ci: Bot comment only for first timers (#1213)
* ci: Bot comment only for first timers and collapsible sections for UI screenshots

Added also implement collapsible sections for UI screenshots #33415 <https://github.com/commaai/openpilot/pull/33415>

* fix

* Update auto_pr_review.yaml
2024-08-31 11:41:11 -07:00
Adeeb Shihadeh
46790afcb2 CI should use the defaults 2024-08-26 17:04:32 -07:00
Shane Smiskol
c02e83de5d speedup CI (#1179)
* no setup python

* replace with uv

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* slightly faster

* this doesnt do anything without seen ecus

* test

* is durations slow?

* not now

* test in another pr

* same to static

* static

* test

* test

* test

* the action used to cache as well

* test
2024-08-20 23:36:08 -07:00
Adeeb Shihadeh
17e21fe4c5 CI: auto PR review (#1082) 2024-08-17 12:16:30 -07:00
Adeeb Shihadeh
3537404a18 no docker (#1081)
* cleanup dependencies

* all

* install

* less

* try this

* slimmm

* skip docker

* silence that one

* disable for now

* e

* fix build

* bring that back

* not ready yet
2024-08-17 12:04:46 -07:00
Adeeb Shihadeh
0a9727a450 one minute ci (#1080)
* speeeeed

* version

* disable

* cppcheck

* pip install

* no update?

* timeout
2024-08-17 10:28:49 -07:00
Shane Smiskol
cd61e17f3c new docker image structure (#1070)
* new structure

* fix that
2024-07-31 21:14:59 -07:00
Uku Loskit
5ba787024f Convert tests to pytests (#1060)
* Convert tests to pytests

* cleanup

* args

* clean

* linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-07-09 21:56:39 +00:00
Shane Smiskol
c6d0f1684e CI: use pytest (#1053)
* pytest

* might need
2024-06-07 19:12:44 -07:00
Adeeb Shihadeh
60f3396c9e run pre-commit autoupdate monthly 2024-05-08 13:54:48 -07:00
Adeeb Shihadeh
e0d4be4a62 update to ubuntu 24.04 (#1037)
* update to ubuntu 24.04

* Update .github/workflows/repo.yml

* Update tests.yml

* Update Dockerfile

* bump cereal

* no pyenv

* python3 dev

* vla

* python
2024-04-28 14:04:59 -07:00
Andrew Goodbody
5c0494d3b5 Update from deprecated github action (#1031)
Switch to the v4 checkout instead of v3 as that is now deprecated
and gives a warning in the job status on github.
https://github.com/marketplace/actions/checkout
2024-04-05 11:00:48 -07:00
Hoang Bui
e2cb86210d CI: enable docker cache pull (#1011) 2024-02-22 22:47:05 -08:00