Commit Graph

56 Commits

Author SHA1 Message Date
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
3e1132ae81 can't do nested html comments
old-commit-hash: d6288c1bb9796cb19571d1bc035d9a7d6014c559
2020-08-09 15:17:44 -07:00
Adeeb Shihadeh
861fd2c933 default pull request template
old-commit-hash: 5bd20dbe38376aad697a155707a187ac693f59f2
2020-08-09 15:06:47 -07:00
HaraldSchafer
52295b4709 Update bug_report.md
old-commit-hash: 629898eb93753b5a65095807cafe061f644365ac
2020-08-03 14:17:22 -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
3cc292f290 add discord link to new issue page
old-commit-hash: 52fdd8c3ff1892a6e120c14ad80df727a7004e17
2020-06-25 11:50:24 -07:00
Adeeb Shihadeh
00bc04a870 add link to the wiki on the new issue page
old-commit-hash: a3dd33593abb57e49ef599327481eebad1d06d96
2020-06-22 17:50:20 -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
3ed3a1d8e5 Pull request templates (#1752)
* pull request templates

* car port checklist

* fix link

* no space

* newline
old-commit-hash: 2ce2260edad35bf2998e6b49ac9334d29b969eb6
2020-06-19 20:28:14 -07:00
Adeeb Shihadeh
3faffc2e6a issue templates need descriptions apparently
old-commit-hash: 4bd481245b09dc36001d6109cd278469a911bf7c
2020-06-19 19:55:38 -07:00
Adeeb Shihadeh
61736acf2f New issue templates (#1751)
* add pc bug report template

* better description

* update pc

* labels

* route moved

* commment

* clean up

* enhancement question

* at
old-commit-hash: 8f9c01f66b96d093cc47d24a547d72d10c9b3e28
2020-06-19 19:53:47 -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
dependabot-preview[bot]
2870f8d1d6 Create Dependabot config file (#1648)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
old-commit-hash: 8c346dfae56e839d11a45b38ca8049556bc4ae38
2020-06-05 15:55:17 -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
Adeeb
dd9daf81c4 Static C/C++ analysis in CI (#1564)
old-commit-hash: 0499ae46b7842e8e49067ebba03016c6cd305d4e
2020-05-28 01:46:30 -07:00
Willem Melching
167ac83f8e only run pipfile action on schedule
old-commit-hash: db8f3aee1189533b3cd733b8723c9b01e0c157dc
2020-05-27 18:49:00 -07:00
Adeeb Shihadeh
8d818c3672 run pipfile update action at 8 pacific time
old-commit-hash: 84067d0b936c3431897d3b262f075c24092a1e60
2020-05-25 03:25:47 -07:00
Ewout ter Hoeven
d0c84ff3c2 GitHub Actions: Fix Update Pipfile.lock workflow (#1562)
* Remove --requirements

* Add commit-message to PRs in pipfile workflow
old-commit-hash: 2b23111e0e3eeb10019023d74f177e8e21b37cd5
2020-05-25 03:19:57 -07:00
Ewout ter Hoeven
6e3b893205 Add workflow to update Pipfile.lock weekly (#1542)
* Create workflow to update the Pipfile.lock weekly

* Update-pipfile: Also install wheel

* Install wheel in different step

* Pipfile: Only lock major versions

Assumes Semantic Versioning, and only sets the major versions of all packages

* Run update-pipfile on changes in pipfile and use tensorflow

Move from tensorflow-gpu to tensorflow, an excelent test for this PR

* [create-pull-request] automated change

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
old-commit-hash: b1795235f9767ac38f1bc8c7cd2dee9d4f646cf6
2020-05-20 13:16:02 -07:00
Adeeb
64d5d57677 Fast CI (#1537)
* don't compile in docker build stage

* disable that for now

* do we need that?

* upload artifact already compresses

* that wasn't faster

This reverts commit 2221e13c71b5cc693dd3bebfa4061d4ab6821437.

* try that

* don't think that's used

* this too

* check this

* less layers

* that's not in the dockerfile anymore

* system

* even less layers and clear pipenv cache

* no inline comment i guess

* uninstall pipenv after we're done with it

* separate build job adds too much overhead

* quotes

* clean that up

* increase timeout

* cleanup
old-commit-hash: 45ee131a4427db6d97531849bf4a1c3206ecbd19
2020-05-19 02:12:57 -07:00
Willem Melching
8505259e41 Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
2020-05-12 18:50:07 -07:00
Willem Melching
d953101592 Update bug_report.md
old-commit-hash: 7a9ac37b9b5ec118ac3d80b83923bada8ab98ca8
2020-05-12 17:44:20 -07:00
Adeeb Shihadeh
66f8a63d4a build release in public CI
old-commit-hash: 4e2d46f5da0efb5c07b81bb3bd92e0bea259d3f1
2020-05-09 22:16:21 -07:00
Adeeb
8450ae3541 CI: bump upload artifact version (#1471)
old-commit-hash: 39727ddc56c47cb1920ae9efc7e3581667430a84
2020-05-06 05:46:02 -07:00
George Hotz
ca0c6e445e Integrate codecov.io (#1465)
* integrate codecov

* add codecov to readme

* don't need the token

* fix badges

* /bin/bash, not /bin/sh

* needs coverage in the docker

* from the git root

* add CI_ENV like https://docs.codecov.io/docs/testing-with-docker

* custom upload step

* use codecov action

* coverage xml

* add unit tests, good luck

* name the container tmppilot

* add name, fix unit tests

* yml, fix coveragerc-app

* remove tmp/openpilot

* try without xml

* just call the upload script in docker

* ugh, i hate docker

* idk env

* yaml?

* don't be clever

* maybe this

* running out of ideas

* coverage xml maybe

* upload coverage.xml

* ugh CI_RUN

* unneeded artifact

Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 4252028a8446d6c64e67c0574fc473420a800a58
2020-05-04 14:03:16 -07:00
Andy
738c3cca79 Tools: Storage API (#1161)
* filereader

* support URLs in filereader, logreader

* unused

* use route files api; add auth file

* Implement browser auth

* Update readme, fix up cache paths

* Add tests, clear token on 401

* Factor out URLFile

* space

old-commit-hash: c4af05868ba82d4295e3f508e8477f2f6f898834
2020-02-24 21:24:54 -05:00
Adeeb
12a4247161 Fix condition on CI push stage (#1149)
old-commit-hash: f198624ca2c3b599c241964cbdb0be89fd542b3b
2020-02-21 10:13:49 -08:00
Adeeb
a8ea2fff77 Fix artifact upload in CI when step fails (#1139)
* Fix artifact upload in CI when step fails

* set container name

old-commit-hash: d2970fd2da861317da21e1a19974c1c01d8e5861
2020-02-20 14:40:21 -08:00
Adeeb
8c4d5e274b cat process replay diff (#1112)
* cat process replay diff

* always

old-commit-hash: 50944d305f6a6fe36f4ad7f5941bfaf51dd2ba8f
2020-02-17 13:41:21 -08:00
Willem Melching
d11cfbe33e fix fingerprint test
old-commit-hash: e2253b072e89088a6ca78492754de319f50cff53
2020-02-13 16:53:41 -08:00
Willem Melching
23fd4b1158 Push container to dockerhub (#1075)
* push container to dockerhub

* Fix stage name

* Only run on master

* Don't push on PR

* Only run on commaai/openpilot

old-commit-hash: 5388878dace73692dc4fc5ddbb39105a34bb2409
2020-02-10 19:03:46 -08:00
Willem Melching
403121bc2f Use full name for docker caching
old-commit-hash: 118198605fab990162d93692d1b0f8582e9469ab
2020-02-03 14:12:35 -08:00
Willem Melching
0d5f5b3e4b Use dockerhub
old-commit-hash: 5ea95c3d87da261419ee17bc61ec5fdbdc30dc3b
2020-02-03 13:33:21 -08:00
Willem Melching
cdd7da10c4 use base docker container when building
old-commit-hash: 58f4f5aac420e4563acdd1cec98e536bc7d8af20
2020-02-03 13:10:38 -08:00
Willem Melching
df1f2d7a66 Add fingerprint test to ci
old-commit-hash: 822b32656bc3e4b066c1e2d6b1eda6dfbd1b2b00
2020-02-01 18:40:04 -08:00
Willem Melching
bf9172b381 CI: remove header hacks when checking out submodules (#995)
old-commit-hash: e2c784740a869d35e78833ae77d3d30d89935d9d
2020-01-23 12:40:40 -08:00
Willem Melching
afc4e0dce1 always upload artifacts
old-commit-hash: fb8efbed2d52987c113619943035256147b45991
2020-01-23 11:35:07 -08:00