Commit Graph

1147 Commits

Author SHA1 Message Date
Robbe Derks
a04cbced36 Devcontainer (#29259)
* mvp devcontainer. builds, runs and UI works

* fix indentation

* enable color and fix openpilot_env path

* separate dockerfile for devcontainer

* use prebuilt image

* Fix openpilot_env setup

* Add dev container section in readme

* Fix typo

* Fix typo again

* Move dev dockerfile to .devcontainer dir

* Update README

* Add note about x11 forwarding on macos

* Update dev container json

* Fix typo

* Override DISPLAY on macOS

* Mention XAUTHORITY for macOS setup in README

* fix typo

* Add devcontainer CI test

* Rename to devcontainer

* Fix git issues

* ripgrep

* Link instead of vscode manual

* Replace raw path with containerWorkspaceFolder

* Fix typo

* Remove dev tools workflow

* Link away X11 forwarding setup isntructions for mac

* Remove fork consrtaint, add test run of scons

* Add submodules as safe.directories in postStartCommand

* Remove openpilot_env references

* Add scons cache volume

---------

Co-authored-by: Robbe Derks <robbe@localhost.localdomain>
Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: d71a7190f1210f5ac97ce16892552ecf495e2437
2023-08-22 11:47:09 -07:00
Adeeb Shihadeh
b38403f2ca Revert Qt MOC hacks (#29528)
* Revert "CI: prevent moc from running in cache population step (#29401)"

This reverts commit 34634b95aa15dc608315016c40857f3e16ca4ff9.

* Revert "SCons: respect cache read only (#29437)"

This reverts commit 77cb4da6381fdf94ea98c55d6fcc30db4d24dcf6.

* don't change moc path
old-commit-hash: 91dc8457ae8e9b188c8fe613be5b3aa2e86be276
2023-08-22 11:16:58 -07:00
Greg Hogan
69570ef251 script to install only ubuntu dependencies (#29510)
* script to install only ubuntu dependencies

* update Dockerfile

* add shebang
old-commit-hash: b24bbe4607c4b13010b2bbcd340b133b91c146e1
2023-08-21 16:32:35 -07:00
Justin Newberry
7205b92bb6 CI: use scons cache mount for building simulator and docs (#29436)
* build docker image with scons cache

* use setup

* scons cache

* added the dockerfile

* add the shell

* docs use cache

* dont pull lfs for docs

* simulator too

* dont pull the cache image

* fix inputs

* inputs

* booleans aren't supported

* bool not supported

* bool isnt supported

* fix

* readonly cache

* fix sim cache too

* respect readonly

* gitignore and move to correct folder

* also copy old

* move to tools/ci

* move to selfdrive/test

* just make the cache writable, it's discarded anyway

* minimize diff in this pr
old-commit-hash: 197460e06136f66f60e10ccefece646cb472b872
2023-08-21 15:11:31 -07:00
Kacper Rączy
1d47429f8e Setup cleanup vol. 2 (#29456)
* code from setup cleanup #29419

update ci

update ci

export variables for mac os

check env

what is in the profile script?

install pyenv the same everywhere

temporarily disable brew cache

temporarily disable brew cache

try fixing pyenv virtualenv-init

try this

inject shims path earlier

try alternate install method

switch back to brew install

try         eval "$(pyenv init --path)"

add eval "\$(pyenv init --path)"

* Add local .env file to the cache list

* Change .env paths

* debug line

* order?

* remove .env

* Add .venv to caches

---------

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
old-commit-hash: 0f7be5b1e6efa04c59ce2a45afacd650b2e4d417
2023-08-21 13:30:48 -07:00
Adeeb Shihadeh
16ec56398c add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh
1c3ca3e810 update clone instructions (#29490)
* both

* Update README.md

* Update README.md
old-commit-hash: 5690386d8d731c9bebda536a5c71c890f6dfe98c
2023-08-20 15:13:24 -07:00
Greg Hogan
f136a35ce1 fast clone instructions (#29455)
* fast clone instructions

* Support default ubuntu 20.04 git

---------

Co-authored-by: Harald Schäfer <harald.the.engineer@gmail.com>
old-commit-hash: 012060ba328da69e7fd62531bd65e8d064b3f6c0
2023-08-19 01:49:16 -07:00
Greg Hogan
349359d488 venv in code directory (#29452)
put venv in code directory
old-commit-hash: 282fd778aa303542d5752b0edc3e40db8de10696
2023-08-17 15:43:02 -07:00
Justin Newberry
1988b4805e Revert "setup cleanup (#29419)" (#29451)
This reverts commit bc9c60a3f955bb5b96dc41e6072cab47191f8896.
old-commit-hash: 1944945d9dfee6f42a875b119a5cf60daf8ade09
2023-08-17 13:23:06 -07:00
Dean Lee
e1f4ce2fb1 replay/logreader: use unique_ptr for mbr_ (#29440)
old-commit-hash: 61a00d267380f8ea75e5d7b6aeb7d0dc5e17d763
2023-08-17 11:42:35 -07:00
Greg Hogan
cce2c732c6 setup cleanup (#29419)
* setup cleanup

* update ci

* update ci

* export variables for mac os

* check env

* what is in the profile script?

* install pyenv the same everywhere

* temporarily disable brew cache

* temporarily disable brew cache

* try fixing pyenv virtualenv-init

* try this

* inject shims path earlier

* try alternate install method

* switch back to brew install

* try         eval "$(pyenv init --path)"

* add eval "\$(pyenv init --path)"
old-commit-hash: ad32816fd6bdd744e7f596209822707494d3ba5e
2023-08-17 08:51:16 -07:00
Dean Lee
accd5f471b replay: fix seekTo issue (#29422)
* fix seekTo issue

* remove extra space
old-commit-hash: e8e03197ca73e98c152b94f64060ee57f88d2911
2023-08-16 11:01:14 -07:00
Dean Lee
3648506b7c cabana: set border color for scatter series (#29408)
old-commit-hash: 9dac6b66f982dc5356821048627d70b18595b39e
2023-08-15 10:28:48 -07:00
Kacper Rączy
7f02996102 replay: increase file descriptor limit macOS (#29346)
* Increase file descriptor limit for replay on macos

* Reword comment

* Move set_file_descriptor_limit to common/util.cc

* Include resource.h header
old-commit-hash: d8bda6feb491f571acf476314ce7de81a431453f
2023-08-15 00:05:27 +02:00
Dean Lee
c622a4cac5 common/util: move function random_int to util (#29388)
old-commit-hash: 22bc06fdaab24b8aa3aba2513a32ae828f6d589e
2023-08-14 09:37:16 -07:00
Justin Newberry
8e91f98da5 Replay UI: Fix zip issue (#29384)
Update ui_helpers.py

resolves https://github.com/commaai/openpilot/issues/29383
old-commit-hash: 783bb1f878a4b8f2d2902c053a9b7cc9e1ea1b8e
2023-08-13 22:55:59 -07:00
Adeeb Shihadeh
f50fedb647 Fixes for PYTHONWARNINGS=error (#29381)
old-commit-hash: db287496d82be87971a619b2659c47737142a385
2023-08-13 17:22:56 -07:00
Dean Lee
42dd6af842 ui/networking: remove call to clearLayout (#29037)
* build list inplace

* move clearLayout to cabana

* cleanup include

* polish style

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd8a9c852016ccfd13ae5146648a65f01cc2468c
2023-08-13 11:57:40 -07:00
Adeeb Shihadeh
e76af64065 CI: enable PYTHONWARNINGS=error (#29364)
* CI: enable PYTHONWARNINGS=error

* fixes

* more ignore

* more modeld ignore
old-commit-hash: b11b14aff86a4c993bf5342ee37af169788c9026
2023-08-12 17:15:16 -07:00
Adeeb Shihadeh
b3f734283d remove xx dependencies (#29263)
* rm xx deps

* mv that

* fix

* fix a path

* relock

* relock

* update

* update sentry

* update

* revert sentry

* Update lock

* Dummy pip package

* Not needed with poetry

* dont need dummy

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 0ced56b2ea7e0800f309c4e77d9a78bb90d89fb6
2023-08-11 20:05:44 -07:00
Justin Newberry
f33b4de80b Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
old-commit-hash: e4ead4f1830618f5f61978491930cb0b8d36ab26
2023-08-11 16:13:51 -07:00
Justin Newberry
d487c0501f Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
old-commit-hash: 62c1e6592439119f360dd64b854e7047f35222ba
2023-08-11 15:33:49 -07:00
Shane Smiskol
a9611d13be simulator: fix CANParser input args (#29343)
* we weren't testing?

* fix
old-commit-hash: 84fbf1c2e92d2799f193213f71987f1d6e8b6431
2023-08-11 14:12:33 -07:00
Dean Lee
0171e5ee26 scons: rename QT_MOCHPREFIX to QT3_MOCHPREFIX (#29334)
rename QT_MOCHPREFIX to QT3_MOCHPREFIX
old-commit-hash: 233e053842d8e9fc9211f778b00e73df3225220c
2023-08-11 10:38:34 -07:00
Justin Newberry
715f028a0e Ruff: enable flake8-builtins (#29315)
* enable flake8-builtins

* replace any with contains

* fix typo in pack

* fix type

* format is from the parent module, has to be enabled

* item_id

* fix item_id

* disable for id since that's what the remote server returns
old-commit-hash: 8793cbff40662a92bff16d75b51479c80517305a
2023-08-10 18:58:22 -07:00
Justin Newberry
7d6d3dc9ea Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
old-commit-hash: af3ed37c5cd8823f793aec60e1c74760cf795bd9
2023-08-10 15:28:51 -07:00
Justin Newberry
3ee0786de3 CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
old-commit-hash: 7fdd9fc37c1c5febf1cd3dc86441ebf0dec7f370
2023-08-09 13:26:54 -07:00
Justin Newberry
7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168614f851087adab2d7f766425922f64
2023-08-08 17:13:35 -07:00
Vivek Aithal
c1bcb53d4e [commabody] Add new body teleop ui (#29282)
* Revert "Revert "[commabody] Add new body teleop ui (#29119)" (#29249)"

This reverts commit 5dcfddbbfbddf00d16cb1f28c51f3dffc75d7cf6.

* add to release files

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e7d307ca1b064c3789902bc077e93453dd96794b
2023-08-08 14:12:51 -07:00
Adeeb Shihadeh
ae549dcd30 macOS: remove old dependencies (#29275)
old-commit-hash: ee7a763ba337266873c607ac767f68c50332a8a7
2023-08-07 21:13:09 -07:00
Harald Schäfer
c0fbbd4b36 Revert "[commabody] Add new body teleop ui (#29119)" (#29249)
This reverts commit 0df6353569b77869ce4ddc8ce43bab621bccd107.
old-commit-hash: 623351e4edb01b7c66612e43e5e8ebefd237276d
2023-08-05 07:15:35 -07:00
Vivek Aithal
082b1fd924 [commabody] Add new body teleop ui (#29119)
* add new ui

* move body tele op ui to new dir

* fix codespell errors

* resolve mediablackhole pylint error

* fix import error

* style fixes

* use logging, not print

* fix js styling

* resolve comments
old-commit-hash: a7304d059cb2f4e57e64fcbabb4f9079f1ea659d
2023-08-04 13:56:46 -07:00
Adeeb Shihadeh
3e9b67a514 bump panda (#29234)
* bump panda

* bump
old-commit-hash: 7949dfe796298502b38feb0d5a9f017993e70605
2023-08-04 11:09:20 -07:00
Justin Newberry
4e4e1d4e9e Cabana: Fix >1 hour route time displaying (#29226)
fix greater than 1 hour
old-commit-hash: a90f6d91635643d3e15e21da9a2a8718b1166136
2023-08-03 13:27:17 -07:00
Shane Smiskol
d78ebfdc45 replay: new demo route (#29215)
* new demo route

* replace other references (except gps test)

* Apply suggestions from code review

* it's 13 segments
old-commit-hash: acc732efbb76b15947ce4b69cf6a97a919f4c34f
2023-08-03 13:18:44 -07:00
nathanoy
85ca41390d Updated Carla to version 0.9.14 (#29210)
old-commit-hash: 3fca1b4f8d9137ca52e74d75aecaf72b9893f2d1
2023-08-02 08:41:36 -07:00
Adeeb Shihadeh
2ed1f8f3f3 macOS: use bash_profile instead of bashrc (#29165)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@Adeebs-MacBook-Air.local>
old-commit-hash: 2e634bc19919d8205ba4e133ae4630cc1da845bd
2023-07-27 00:31:42 -07:00
Vivek Aithal
e8d84e11f5 [commabody] Add body packages to op (#29162)
* add body packages

* update poetry lock
old-commit-hash: 156c7a84e8c57be07f3b49355f63f7af6b292bf2
2023-07-26 23:08:23 -07:00
Mitchell Goff
49b07db500 Added python VisionBuf class (#29075)
* Added python VisionBuf class

* fixed property names

* Bump cereal
old-commit-hash: f0ae0c34cda2d032bc270efe6360a1dd1bbd77f2
2023-07-25 01:08:39 -07:00
Maxime Desroches
06125f1309 Test scons multithreaded random build (#29082)
* random build

* name

* 2 pass

* clean after

* fail on this

* fix deps

* format

* var

* try without lfs
old-commit-hash: 97eec45d42a67c3e840a6a08fab2e421b2825de7
2023-07-21 21:57:27 -07:00
Harald Schäfer
8a48732784 radard: no clustering (#29010)
* First commit

* cleanup

* Update ref

* Doesnt deserve two files

* cleanup radard
old-commit-hash: ca699e3989bd31849f168f665fc89c71667b008a
2023-07-19 20:31:40 -07:00
Dean Lee
f8c108e8e8 cabana: cleanup MessageViewHeader & MessageBytesDelegate (#29040)
* cleanup

* remove double ;
old-commit-hash: 319ce562f270f6b4320b53e9d6d67452a3b77027
2023-07-19 18:39:55 -07:00
Dean Lee
2d88501e21 replay: emit segmentsMerged before updateEvent (#28849)
old-commit-hash: 3ad434c5ca98011087ce7017a9c468859ff2f787
2023-07-08 17:09:54 -07:00
Dean Lee
592bcec5d6 cabana: fix segfault when editing signal while filtering (#28836)
Fix the issue that editing signal will segfault when there is a filter string.
old-commit-hash: 1301e2d640c9e14117f832bf37cbf469dbc43900
2023-07-07 15:39:03 -07:00
Robbe Derks
0100230162 Compressed vipc improvements (#28837)
* debug flag

* make it easier to use
old-commit-hash: 9774fb43e9c9804955e357c725d326ba342f0e3c
2023-07-07 16:04:23 +02:00
Dean Lee
241cbb2808 cabana: preserve msg transmitter & signal receiver when saving DBC (#28825)
preserve transmitter&receiver_name
old-commit-hash: 940609956d3fe10ffd3033156f4fe62bcdcac42e
2023-07-06 12:39:58 -07:00
Dean Lee
841f8bfb3f cabana: improve timeline (#28801)
old-commit-hash: 059529cae2dde8331eb9a4ac876b36c2c3ec7697
2023-07-04 12:03:08 -07:00
Qi Liu
5c6e533bf4 replay: fix segfault caused by pointer usage after freeing (#28779)
old-commit-hash: aa85fed91d1d2861ca65c9c44f2865127c0fa8a3
2023-07-01 23:01:47 -07:00
Dean Lee
a597401fc0 cabana: fix 'QObject::connect: No such signal' warning in UnixSignalHandler (#28702)
old-commit-hash: 5f6d947e36a6e6842240a62f7dfe61cd63decd49
2023-06-26 13:08:30 -07:00