Commit Graph

74 Commits

Author SHA1 Message Date
Adeeb Shihadeh
b52e931907 build openpilot prebuilt on schedule (#19847)
* build openpilot prebuilt on schedule

* test

* back to schedule

* rename
old-commit-hash: a08360c4d091788ba70be489c802d8e0c6d3f6b2
2021-01-19 21:16:06 -08:00
Adeeb Shihadeh
51f8dc7f0e remove docker prebuilt CI job
old-commit-hash: c75b84e596f6f20556a166c19a3c0b7b0b2579bd
2021-01-19 20:02:08 -08:00
Willem Melching
42ba637d9b Fix macOS CI (#19822)
* does this fix the hash

* this is not the solution

* restore key doesnt work
old-commit-hash: 667390701f8a74f55343d5c1d3a21ea2392affac
2021-01-18 15:08:11 +01:00
Willem Melching
73e04b8164 Fix macOS CI (#19646)
* fix macOS ci

* no partial matches

* Change key
old-commit-hash: 278a838231d781282d783405a07be9bde47c8efb
2021-01-04 21:34:23 +01:00
Adeeb Shihadeh
9abcc61ddb cleanup mac build CI job
old-commit-hash: 330f34bd0d3b4ff66900bbcdbc92557d28537422
2021-01-03 12:39:31 -08:00
Mayfield
dc72980c83 Make macos ci homebrew dep-caching fast (#19632)
* try out /usr/local for homebrew caching

* TEMP: disable non-macos jobs

* TEMP: disable more

* sizes

* temp: nothing change

* more

* try -1

* quotes

* delete existing downloads

* fix ~ expansion

* nothing

* try caching cellar

* move to yaml

* nothing

* nothing

* asdf

* nothing

* fixed cache key

* nothing

* stay in home dir

* keep zstd

* brew link

* fix cleaning?

* brew link in yaml

* fix zstd exclusion

* capnp

* revert mac_setup

* finish up

* done
old-commit-hash: cbc25cc0f1c639e948181e1218db60631cf9ff66
2021-01-03 12:33:42 -08:00
Adeeb Shihadeh
c64a8356fe move to github container registry + CI speedup (#19621)
old-commit-hash: 59d7c5e64ac3c8666c54c3443f912e4e0db92eb9
2020-12-31 14:57:01 -08:00
Willem Melching
eed710aa0d On status still triggers recursive builds
This reverts commit 41d35f1415760ec5aa3fd0a3de1903aac4602813.

old-commit-hash: 665f27e777f04fca9eabac196e70f8d3e3a04473
2020-11-25 14:22:44 +01:00
Willem Melching
9868a9c3f1 add back run on status
old-commit-hash: bd4b731e4e887d419318a14c6e2f3c3d082382b0
2020-11-25 13:52:42 +01:00
Adeeb Shihadeh
d4bf764d99 update simulator to ubuntu 20.04 (#2463)
* fix sim build in 20.04

* run ci

* fix docker build

* restore ci cofnig

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: cc1bca542d8a12acc381fc3d284d37b57b12c6ee
2020-11-18 13:10:37 -08:00
Adeeb Shihadeh
0f2dfbfc52 trim trailing whitespace
old-commit-hash: 818bd8a591193b891cee44726203de327c5dd7fb
2020-11-05 14:11:41 -08:00
Adeeb Shihadeh
2e5247056a ubuntu 16.04 -> 20.04 (#2378)
old-commit-hash: 719c5e3598846a6f3fa08c85bb811d197e0c6d0a
2020-10-29 16:51:09 -07:00
Adeeb Shihadeh
9e35e058ed don't fail CI if artifacts don't upload
old-commit-hash: 99029cda01f9d1990c7abdea0403753eeb47e339
2020-10-20 15:29:15 -07:00
Adeeb Shihadeh
a96e31391d no CI on testing closet branches
old-commit-hash: cdf812de1e281a7ac61d915ee17bed12d1bba292
2020-10-19 16:40:30 -07:00
Adeeb Shihadeh
fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b7408bc73ffa9320c8ce2689b74993430
2020-10-16 15:16:17 -07:00
Willem Melching
e45715342b change macos cache policy and fix typo
old-commit-hash: 1b3f37d0cb28172beeeed53958ebe2936a7bcd1d
2020-10-13 16:55:46 +02:00
Willem Melching
872b7f02b0 remove on status
old-commit-hash: 4210ce24cfdcd0bb3a1017c3b15ac44403131ba9
2020-10-13 15:55:06 +02:00
grekiki
469a7ee7ef add caching to CI tests (#2269)
* first caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* dump logs

* does this work?

* Create cache folder

* Print folder contents

* Fix volume mount

* Update test.yaml

* add removed tests

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* readd coverage upload

* Update test.yaml

* add more caching

* Use hash of test file to compute cache key

* add cache to valgrind tests

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Also hash workflow yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: fc1d01be81d4e0716d10f8bed9ea3feb6a22be5b
2020-10-13 15:38:13 +02:00
Willem Melching
0af56c250c Build sim container once an hour
old-commit-hash: 6bded95c90e37ed75d713bf806354171e4721557
2020-10-12 15:14:03 +02:00
Willem Melching
af97e71063 Try only extracting python folder (#2321)
old-commit-hash: f258366e0c276bec0818286f5aeca1397eb51621
2020-10-12 13:37:01 +02:00
grekiki
67b02775da CI: Add valgrind (#2245)
* prepare a test for valgrind by fixing linter issues

* something went wrong

* Try update cereal

* Not working, fixing replay_learning.py

* Testing

* Testing

* Working now

* More logs, a bit of cleaning, still no idea how this works

* Ok got 10% cleaning done

* trying some stackOverflow code

* Lots of cleaning

* wip

* Delete valgrind_testing.py

* Delete replay_learning.py

* Add to CI, cannot fail though

* Add to CI, cannot fail though

* Now the unit test should fail

* Dump valgrind output in case of a failure

* fix subrepos

* fix subs

* hopefully fixes every issue that we have

* wait for message confirmation

* Revert "wait for message confirmation"

This reverts commit ad7ba280ec6536015ac1a442c9732bfe42fd5664.

* fix local issues

* Revert "fix local issues"

This reverts commit 4498df21df471fa6e9360d50407eaefdf24ae69f.

* attempt 3 to fix things

* untested function extraction

* refactor

* add valgrind task

* add delay and BASEDIR

* Make test not fail, it is not designed for that

* fix subrepositories

* fix tests

* Real fix now :)

* scons

* ... stupid CI

* fix valgrind CI

* Update test.yaml

* Update test.yaml

* Update test.yaml

* add valgrind logs as file

* remove delays

* kill process more reliably

* rename action

* small cleanup

* fix casting to int in case of large leaks

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a09fd7c860555c308e516bbcfbf4fff850a694e1
2020-10-05 16:09:32 +02:00
Willem Melching
37e173acdc Fix MacOS CI (#2145)
* compile flag for cython

* fix more setups

* bump cereal

* reenable mac build

* don't let that fail the build

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e0bb6a7cee869b9aa6a724b20ab8d79141eaad4
2020-10-04 15:03:20 -07:00
Willem Melching
8f1c60698c disable CI simulator container build until fixed
old-commit-hash: bacc387ee688b03bfe87a73513438f45fffea052
2020-09-16 13:31:29 +02:00
Adeeb Shihadeh
8fede85429 remove schedule-triggered CI workflow (#2178)
old-commit-hash: 54eb160e15b2f12f06c0d05ac3336ee77a235f17
2020-09-15 21:48:27 -07:00
Adeeb Shihadeh
556c862586 fix simulator CI (#2159)
* pull image for cache

* typo

* cleanup dockerfile

* typo

* add pr trigger

* colon?
old-commit-hash: 4cbf965165bab44dcf819aaafbd2d99c89994c97
2020-09-12 14:31:20 -07:00
Willem Melching
a5c9113050 add repo check to sim ci build
old-commit-hash: c68d0ef46857aef054c1a201bed2987ae1402478
2020-09-10 12:20:49 +02:00
Willem Melching
f90922151f only build sim container on schedule
old-commit-hash: dbb11d64c99b3b02ebe30b620d64bcf5d3b43e9c
2020-09-10 12:15:45 +02:00
Vivek Aithal
db0a4ef2dc dockerize carla + openpilot (#2011)
* dockerize carla + openpilot

* separate dockerfile

* bring back CI dockerfile

* cleanup bridge

* add op docker build and start script

* build container in CI

* fix camerad hack

* remove most magic numbers from bridge.py

* openpilot-sim docker build and run scripts

* fix dmonitoring hacks

* revert controlsd hacks

* clean up build scripts

* singular

* fix path

* fix image name

* modify sim readme

* sim readme and start script changes

* dockerfile with working opengl

* working opengl + passing panda build_st in docker

* fix bug in sim docker file

* bugfix sim docker file

* bugfix all op-sim docker issues

* modify readme + run script

* IT DRIVES

* clean this up

* more cleanup

* cleanup docker stuff

* more cleanup

* start with openpilot-base

* install carla python package

* Script is not in lib

* chmod

* everything should be running in docker now, the code may not be nice though

* works locally...

* rhdChecked is deprecated

* Checkout using git lfs when building sim container

* try to pass the tests

* pull latest docker

* gps should not throw an error on openpilot launch in bridge.py

* fixed a coding style error

* Only start ubloxd in car

* fixed more style problems

* revert typo

* Use enviromental variable to prevent errors in a simulator

* Remove unused import

* Attempt to fix missing enviromental variable

* fix typo

* less work for users, auto tmux engagement

* less work for users, auto tmux engagement

* fix check for nvidia

* clean up nvidia check

* remove typo, shorted dockerfile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
old-commit-hash: c5dfbe7a72c6f31a0aa3a32b6df3f81409b40faf
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh
49428139da temporarily disable mac build
old-commit-hash: 847fc1fefef2f2e07c22d68497a5f8468eda7231
2020-09-09 12:15:31 -07:00
Adeeb Shihadeh
a8d055837b increase timeout on mac CI build
old-commit-hash: 9a9e829ce48ffe1f26c828384915853873704854
2020-08-27 13:15:20 -07:00
Willem Melching
d8b7f6f4e3 fix prebuilt container
old-commit-hash: 39c7dc2072a2bf512afd7ac11ebe601ba754ad1d
2020-08-24 14:43:24 +02:00
Adeeb Shihadeh
993b6b43ac split dockerfile into base image and CI image (#2066)
* split dockerfile into base image and CI

* doesn't exist yet

* fix path

* cache on this branch

* latest

* use cache

* don't double pull
old-commit-hash: a3f56430195d5b2d0119f8bbf929f07c9a625959
2020-08-23 18:18:19 -07:00
robbederks
bcaf2a36af Car power integrator + power management refactor (#1994)
* wip, ready to test

* tweaks

* fix

* fix

* fix power monitoring

* fix param writing

* no forced charging on high voltage

* reset capacity on reboot

* don't shutdown unless started seen

* fix unused var warning

* fix linting errors

* time is always valid

* QCOM gate

* Local params

* decimate saving

* fix linting

* rename param

* Log car battery capacity

* fix put_nonblocking

* Added some unit tests

* Add test to docker test list

* fix precommit

* cleanup

* run tests in CI

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7555379b2b1da2f800e98963ad4436b7fb91cce9
2020-08-17 11:56:27 +02:00
Adeeb Shihadeh
355e4a40a6 Build openpilot on mac in CI (#1792)
* build on mac in CI

* coreutils

* python stuff

* pipenv

* newer clang

* init pyenv

* verbose

* init pyenv

* install eigen

* ffmpeg

* sdl

* libav

* libtool

* glfw

* add pipfile as cache key

* test cache

* fix cache path

* brew link

* update tools readme

* don't cache on pipfile

* skip python install if installed

* unlink

* simpler cachingm

* here's your key

* cache pip too

* cache pyenv
old-commit-hash: c450110f961173302bec7873b81939f01d5ad1ac
2020-08-10 00:44:24 -07:00
Adeeb Shihadeh
2f1d9daa9a Run CI tests in parallel (#1962)
* run car model unit tests in parallel

* remove refs to deleted file

* run with coverage

* that wasn't necessary

* as builder

* need a new route for this one too
old-commit-hash: 9ee1cc9b828e8018fa37443d90dba95f8a032260
2020-08-02 00:30:09 -07:00
Adeeb Shihadeh
dbdcaef1a1 Test Car Models 2.0 (#1903)
* start with radar interface

* car interface

* panda safety rx check

* check panda safety inits

* check NO_RADAR_SLEEP in all radar interfaces

* sonata 2019 and kia optima should use hyundai legacy safety

* check radar errors

* check radar can errors

* real fingerprint

* run in CI

* it shoud pass now

* ignore old openpilot msgs

* ensure safety mode is set

* sort can msgs

* filter out openpilot msgs
old-commit-hash: 99106fd9c465b366c7c61b8a0452b73455a9b96d
2020-07-25 02:27:56 -07:00
Adeeb Shihadeh
44afc4ae3c Build release2 and dashcam in CI (#1834)
* start building release2 in CI

* build script

* bring over changes from test branch

* fix build release test

* remove references to test branches

* ucnomment push

* fix duplicate remove

* two commits for dashcam

* need the key
old-commit-hash: c7156616568ce2fa780db3eafc5f912ab2ead14e
2020-07-07 14:17:09 -07:00
Adeeb Shihadeh
d627c6f268 Temporarily disable allowing codecov to fail CI (#1839)
* add verbose flag to codecov upload

* temporarily disable codecov failure resulting in CI failure until bug in codecov is fixed
old-commit-hash: 37d6edf4dfb8d28095c0efb366c5b7f671880757
2020-07-07 14:08:37 -07:00
Adeeb Shihadeh
0891b1331d Add cppcheck as a pre-commit hook (#1646)
* add cppcheck as a pre-commit hook

* fix Dockerfile

* update precommit config

* exclude panda and opendbc
old-commit-hash: 3c461ca5ccf1b0ae2b9164feced96a5aa4998555
2020-06-19 20:39:34 -07:00
Adeeb Shihadeh
428a0e40f3 rename docker containers
old-commit-hash: 855a630dfc14f004cafb771822aa2d1dd06fc05c
2020-06-12 20:02:57 -07:00
Adeeb
0914a0661c Push docker image with prebuilt openpilot to dockerhub (#1686)
* add CI job to push a prebuilt image to dockerhhub'

* fix config

* Update test.yaml

* better name

* only run on schedule
old-commit-hash: 7e80ae3f09202180b3a94f0af88c85b9f2cdfa79
2020-06-12 12:09:05 -07:00
Adeeb Shihadeh
92cea66141 update dockerhub token
old-commit-hash: f05685992a94cdc0c4f4e5649aa0debfa2ca688c
2020-06-11 16:24:23 -07:00
martinl
2dfb8db054 Fix typo in Github Actions workflow (#1673)
old-commit-hash: 53a8df5a4133b9020363a381322da6177c9f45ed
2020-06-10 07:30:09 -07:00
Adeeb
ea0292d86e Move driver monitoring out of controls (#1642)
* move dmonitoring out of controls

* run monitoring unit tests in CI
old-commit-hash: d4858e5ff5753f8a800f3e90cb4c0f69213b87f3
2020-06-09 13:25:15 -07:00
Adeeb
daea932130 Release cleanup (#1649)
* start cleanup

* whitelist submodule release files

* don't need to ship tests

* revert changes to build script

* add those tests back

* fix typo

* whitelist dbcs

* test

* run the right test

* whitelist opendbc/can

* revert that

* add missing dotfiles

* clean up

* ford DBCs

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c24a7e248a295641f58d39e0db25dde1b742fc16
2020-06-08 14:24:14 -07:00
Adeeb Shihadeh
962cdac3b1 pre-commit also handles pylint
old-commit-hash: 966e2d41544a7ccbcf901355b8116734c448aa63
2020-06-04 14:19:10 -07:00
Adeeb Shihadeh
e60e71c6da pre-commit handles flake8 now
old-commit-hash: 355159f04a7676b2c6a6ea1687211ba7bda428be
2020-06-04 14:09:37 -07:00
Adeeb
55dedc0476 pyextra isn't a submodule anymore (#1601)
old-commit-hash: cc2137bdedb8c65d6d9d32a1234250225dc2d3dc
2020-05-30 10:04:56 -07:00
Willem Melching
2ac27def5a Running pre-commit in CI (#1590)
* Running pre-commit in CI

* fix dockerfile syntax

* dont run on submodule repo folders

* Fix some import errors in ci

* more stuff

* That should be the last one
old-commit-hash: ba2ac1207a554d277e01af5b9514de4500d4f66a
2020-05-28 15:40:48 -07:00
Adeeb Shihadeh
3ecd9c2d31 timeouts for all CI jobs
old-commit-hash: 2752df82664d1a45e60f09ede09760c67903f135
2020-05-28 14:40:25 -07:00