Commit Graph

11153 Commits

Author SHA1 Message Date
Justin Newberry
d1fc58bf81 CI: fix pr labeler permissions (#29862)
* fix pr labeler

* fix that
old-commit-hash: 50b954d595edc43956e2dcba4ff18446df80e371
2023-09-09 01:02:49 -07:00
Justin Newberry
693183a946 CI: auto label PR's (#29842)
* auto label

* on pull request

* checkout

* yaml not yml

* recursive here too

* start with just car stuff and CI

* require all

* no fps

* add translations and fix CI
old-commit-hash: aa52cf3e815ea665b9222c4c6a1e291d6c86f8a9
2023-09-08 17:24:19 -07:00
Kacper Rączy
fc4972539f docker: fix cl tag (#29858)
unset TARGET_ARCHITECTURE before running build
old-commit-hash: c417669cbdadbc3a4fc31073116987264aa0e2d4
2023-09-08 17:20:03 -07:00
Justin Newberry
5ac2ef0e3f CI: fix aarch64 cache (#29857)
was not passed in
old-commit-hash: d3e5f66fc19c15accd684d397b8e25823e431b47
2023-09-08 17:13:18 -07:00
Mitchell Goff
3e1903a6cb Converted onnx runner to python (#29856)
old-commit-hash: 9cc00c2101b6deae86ef9f25d4c79d2f79409e49
2023-09-08 16:45:38 -07:00
Mitchell Goff
65fc9f14b3 Update model input names to match onnx inputs (#29855)
Updated model input names to match onnx inputs
old-commit-hash: 2d69f3d63e5462e8b095fab097c4aff00bd1c83a
2023-09-08 16:06:16 -07:00
Shane Smiskol
8ca1aceb8c Hyundai: add platform code fuzzy FW test (#29847)
add test to assert no crashing
old-commit-hash: c61479b1aebcf9b713865d18b3e37947c821cca6
2023-09-08 15:15:22 -07:00
Kacper Rączy
73c25cc743 docker: fix multiarch tag push (#29850)
Fix multiarch merge script
old-commit-hash: b09ec6bb5bd73b6623e686ebc94f8a316102ae11
2023-09-08 15:03:40 -07:00
Justin Newberry
0043a1f039 Prefix: cleanup more folders (#29848)
cleanup downloads folders
old-commit-hash: 0adc2f20c250ae7ca9a1d4e205c9560b50309eea
2023-09-08 14:54:15 -07:00
Kacper Rączy
f8c6ebd3ad docker: multiarch images (amd64/aarch64) (#29691)
* arch specific tags

* merge multiarch script

* arm64 build and merge jobs

* update tag script

* casual ci test

* change image to 2204

* docker -v test

* arch specific naming

* Remove test_buildjet

* build -arch images only when CURRENT_ARCH_BUILD is set

* support new tags in tag_multiarch

* Toggle CURRENT_ARCH_BUILD on in ci

* Docker common

* Fix condition

* Fix path to docker_common

* Add more stuff to common

* Add build_arm job

* composite job for building

* Run checkout before build composite

* add shell arg

* move timeout to selfdrive_tests

* TARGET ARCHITECTURE var

* Support TARGET_ARCHITECTURE in workflow

* Rewrite to Single build job with matrix

* Remove shebang from docker_common

* Attempt for fix build matrix

* Remove setup arch

* build matrix for docker push

* Use 2vcpu for arm build

* 2vcpu for docker_push too

* temporarly unlock docker_push

* Remove requirement for target arch when pushing

* Unset target architecture in docker_push cl

* fix sha tags

* Rename action to compile-openpilot

* move push_image line to tag_multiarch step

* arch suffix for scons cache

* cache_key_prefix for setup-with-retry

* Re-disable docker_push on non-master

* Add newlines
old-commit-hash: 1344a93a356e4734fedb5f717778a8b1a273c74b
2023-09-08 14:46:39 -07:00
Adeeb Shihadeh
c37ccd4565 mock car cleanup (#29835)
* mock car cleanup

* fix
old-commit-hash: fb1b1f15aaaf401b20f790e61aebeb1b6d2c9249
2023-09-08 14:03:14 -07:00
Adeeb Shihadeh
15e071f88c fixup power draw test output (#29844)
* fixup power draw test

* no pytest
old-commit-hash: 947abbcba0f685ae89d6d6a1b05f3f55f9739848
2023-09-08 13:01:04 -07:00
Justin Newberry
759ab03b03 Ruff: disallow non-openpilot imports (#29841)
old-commit-hash: 110cfef1c2a56b333b684cd7ae98b321ae0e72eb
2023-09-08 10:43:02 -07:00
Adeeb Shihadeh
13c3bf2cbd CI: increase model replay timeout
old-commit-hash: c96fe132e8e708d8a9cb2d4d6a3e8b9f1028018b
2023-09-08 10:41:54 -07:00
Jason Wen
11d6678644 Hyundai: Add FW Versions for Kona Electric 2023 (#29805)
* Hyundai: Add FW Versions for Kona Electric 2023

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d9ce8ab7163f7dc60983a5b45600824477a5bcd0
2023-09-08 00:39:48 -07:00
Shane Smiskol
dcea02d4dc Hyundai: add comment about date codes in ABS FW
old-commit-hash: 3a7a42cf5b6f8d4e5f6030ef8da2a4db1a6757c4
2023-09-08 00:34:27 -07:00
Shane Smiskol
96f204862e bump panda (#29837)
old-commit-hash: aee662969037c60e81e36fc2c470e8083f212df6
2023-09-08 00:13:40 -07:00
Dean Lee
b445d5e9ac cabana/Sconscript: add back dependency on #opendbc (#29832)
add dep on #opendbc
old-commit-hash: e9c1cf3b5a86b7ef47fea67d60ae83337b8e9051
2023-09-07 23:59:02 -07:00
Dean Lee
f48dc2b0ef common/params: not copyable (#29834)
old-commit-hash: 7816edda57894c7967fcd931294a31d000e6508c
2023-09-07 21:44:58 -07:00
Adeeb Shihadeh
bc6367bdf9 Revert "add pytest-cpp package (#29828)"
This reverts commit 9e739aa27d8eb163de74320cfb2f3ea43ca2cb48.

old-commit-hash: 0d042624ae236fa9b58448a1eaeba841d4eff73e
2023-09-07 20:40:25 -07:00
Mitchell Goff
5732002296 Rewrite dmonitoringmodeld in python (#29740)
* Added dmonitoringmodeld.py

* Removed dmonitoringmodeld.cc

* Use ModelRunner helpers from runners/__init__.py

* Fixed DriverStateResult field ordering

* Some bug fixes

* Set calib input

* Look ma, no loop!

* Bump dmonitoringmodeld cpu usage in test_onroad

* Fixed memory leak caused by np.ctypes.data_as

* Formatting fixes

* chmod +x

* remove USE_ONNX_MODEL

* Realtime priority 1, formatting fixes
old-commit-hash: 503fa121ee83469763e9386b9e5df7a733693e2c
2023-09-07 19:46:43 -07:00
Adeeb Shihadeh
01ee6fd1bb add pytest-cpp package (#29828)
* add pytest-cpp package

* disable for now
old-commit-hash: 773d0944d8b51fe2a64c13f0a9b6b0ff9457cf4f
2023-09-07 19:42:30 -07:00
Adeeb Shihadeh
85ef987bfe ubloxd: remove unused file (#29829)
old-commit-hash: 4111ac36b2d676e4a8014b8728f3487b5252892d
2023-09-07 19:29:34 -07:00
Shane Smiskol
2892856291 Hyundai: remove bad Kona EV 2022 query responses
old-commit-hash: b822a57ed66bf0dca1403319c193bfbb58a7a428
2023-09-07 19:24:19 -07:00
Justin Newberry
5b1e60f5da Pytest: enforce a default timeout (#29793)
* pytest: enforce default timeout

* disable that for now

* 30 second timeout on tests
old-commit-hash: b0a71d45536d6fe0c0e8365913c6ffbc64a58b1b
2023-09-07 17:53:51 -07:00
Adeeb Shihadeh
268337f32b fix RateKeeper test
old-commit-hash: f197decbc901d2bc2320db507aecae3b040fd7ee
2023-09-07 16:47:33 -07:00
Justin Newberry
37e4b2cba9 CI: run unittests in parallel with xdist (#29756)
* parallel tests

* review suggesions

* add to pyproject

* add a bit more buffer on that

* fix rare athena issue

* remove from pypoetry
old-commit-hash: dde225221e8fa0063bb52786232be33b8374dfcd
2023-09-07 16:29:36 -07:00
Justin Newberry
1b35278d95 Subaru: remove 2020+ temporary steering faults (#29116)
* subaru steer faults

* it takes a bool now

* Update selfdrive/car/subaru/carcontroller.py

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

* that was removed

* should be abs

* bump panda

* bump panda

* subaru faults

* add fixme

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

* review suggestions

* still want zero steer when lat not active

* bump submodules

* move it under the non-preglobal section

* better comment for steer limited

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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: fb06b98667483bbf9d62b16d7f5aa5e50721f597
2023-09-07 15:28:46 -07:00
Mitchell Goff
f9daa1d1cc Rewrite navmodeld in python (#29579)
* Added navmodeld.py

* Deleted navmodeld.cc

* Write SConscript config flags to config.py

* Remove deleted files from release/files_common

* Some more bug fixes

* Added config.py to gitignore

* Get rid of config.py

* Use set_realtime_priority

* A tiny bit more cleanup

* set realtime priority 1

* Use ModelRunner helper class from runners/__init__.py

* Formatting fixes

* mama mia that's a SPICY memory leak
old-commit-hash: 0c0af682a13753a3db971b12c2852cfddf1e5b49
2023-09-07 14:39:37 -07:00
Justin Newberry
dc6078a6c3 System: use paths for download folders too (#29818)
* use paths for download folders too

* trailing slash

* reset that
old-commit-hash: 73eda51a11955627f4d149fdf12c1c781983d52e
2023-09-07 12:49:03 -07:00
Justin Newberry
c7029ea15a System: cleanup paths to use a common class (#29816)
* use OP prefix for logmessage

* cleanup paths too

* cleanup the paths too

* add hw.py to release

* fix those issues

* fix unittests

* fix unittests

* fix unittests

* do swaglog_ipc properly across all the files

* fix that

* fix swaglog in c++

* review suggestions
old-commit-hash: bfe990b112a83f245bb5244553c84202aec7d86c
2023-09-07 11:32:47 -07:00
Dean Lee
2716ef3a23 cabana: speed up exit (#29813)
old-commit-hash: 74daab120d8528bc39c4cc74df5bf4ee46ccc9d9
2023-09-07 11:30:53 -07:00
Kacper Rączy
f0c3036ad1 radard: expose radarTrackId for radar leads (#29809)
* Add radarState track identifier for debugging purposes

* update process replay ref
old-commit-hash: 0267e0500c49ccbd00c58a8911e2446c7b8c614f
2023-09-07 11:24:54 -07:00
Dean Lee
12e1815720 cabana: regenerate car_fingerprint_to_dbc when DBC files change (#29815)
old-commit-hash: 0f942a228d6d354bf32069a5167d0d8c9002c47b
2023-09-07 11:22:03 -07:00
Justin Newberry
1dbc11646b bump panda (#29814)
old-commit-hash: 8fd4e1a7a7f1aac6ec9f715e4db9d895d75067c1
2023-09-07 10:22:07 -07:00
Vivek Aithal
43ce3d16df locationd: Add camera-IMU cross-checks (#29727)
* camera-gyro cross checks, but one way

* increase factor to account for gyro noise (potholes, bad roads etc

* increase factor to reduce FP with device taps, bad roads, etc

* factor to 30

* add inputsok to sensoir data invalid alert

* bugfix

* move the sensors check

* add localizer catchall alert

* update refcommit

* remove permanent alert

* revert sensorDataInvalid alert change, split into new PR
old-commit-hash: dbada885acf6418edbf6d781dc79fb85dfa74117
2023-09-06 21:01:01 -07:00
Justin Newberry
a1b0f02051 Subaru: don't copy eyesight counters, calculate manually (#29533)
* subaru manual counters

* update ref

* that isn't used

* review suggestions
old-commit-hash: 338288df6e0f872ddc6c1cd02ce130d6ce154e36
2023-09-06 16:08:59 -07:00
Shane Smiskol
02a5c081cc navd: locationd is only trusted source (#29803)
* finish revert for https://github.com/commaai/openpilot/pull/27579

* comment out

* clean up
old-commit-hash: 96fd66e4e294c05601a93fd298740a6dfebf564e
2023-09-06 15:47:21 -07:00
Adeeb Shihadeh
0010c9a986 Revert "params: safe and efficient async writing parameters (#25912)"
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.

old-commit-hash: ec479322d3d8d789290bee68919d14b040481d53
2023-09-06 13:44:20 -07:00
Dean Lee
aafed83acc ui/CameraView: fix divide by zero issue (#29770)
old-commit-hash: a1306114bc8de7d55137258088d8d042afb86018
2023-09-06 13:25:40 -07:00
Kacper Rączy
2092a38bde disable metadrive on linux/aarch64 (#29802)
old-commit-hash: 2487db14b06df91d43d277c4e4a35cce2baa1bc6
2023-09-06 21:29:36 +02:00
Justin Newberry
e468072f1f CI: retry setup on failure (#29785)
* try a setup action

* should be uses

* fix that formatting

* try conclusion

* continue on error

* try without hyphens

* only when failure

* make it optional

* continue on error

* those don't fail anymore

* what about 3 failures

* remove stuff for debugging

* cleanup

* review suggestions

* change that too

* fix pj
old-commit-hash: 917f71d4460bf5503190ade72a3fa760b64dca66
2023-09-06 11:11:15 -07:00
Justin Newberry
ef1155469b Precommit: do a sanity check on github workflows (#29790)
* sanity check on github actions

* That one doesn’t apply to us
old-commit-hash: d3c5ac554548367610ef289ef6bdb15b56767476
2023-09-06 10:40:52 -07:00
Dean Lee
8673038aa1 cabana: fix stuck on exit (#29796)
fix ctrl+c can't exit when stream dialog displayed on startup
old-commit-hash: 7f23e69cb126941ad736cf100e28fb67f5827f48
2023-09-06 10:34:15 -07:00
Dean Lee
87c8ec0e5c replay: fix concurrency issues (#29797)
fix concurrency issues
old-commit-hash: bbf133a2e505bee6dc502a3b636a59ae6b254798
2023-09-06 10:34:01 -07:00
Dean Lee
64c3dc5ad6 cabana: add empty check before insert events (#29798)
old-commit-hash: 60593660e61e3ede35ecb401ca0714eaac5edf52
2023-09-06 10:24:58 -07:00
Igor Biletksyy
e0d733ccfd bump panda
old-commit-hash: 001df43194734e6de2f798b619a6f992cea5dea5
2023-09-06 10:00:36 -07:00
Justin Newberry
85af024d45 Subaru: add GEN1 longitudinal test route (#29753)
* add long route

* fix duplicates

* need to bump that slightly up

* commented for now

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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ec945dc53d172ce51d720e0e46ed9f814dd7d90a
2023-09-06 09:26:16 -07:00
Dean Lee
08e70aecb2 params: safe and efficient async writing parameters (#25912)
* Safe and efficient asynchronous writing parameters

* call putNonBlocking in locationd

* remove space

* ->AsyncWriter

* remove semicolon

* use member function

* asyc write multiple times

* add test case for AsyncWriter

* merge master

* add missing include

* public

* cleanup

* create once

* cleanup

* update that

* explicit waiting

* improve test case

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0d797f4e8b2552192669d0329c14849f0a970066
2023-09-06 08:50:28 -07:00
Dean Lee
6394bf09d3 cabana: fix crash when no can events in the log (#29795)
fix crash when no events
old-commit-hash: 0afcf1236818f20e159cc2565e57814a08acd883
2023-09-06 02:36:07 -07:00