Commit Graph

77 Commits

Author SHA1 Message Date
grekiki 9e4cc1f7ff Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6951b3271d1770297cb6bd53878463035ec0bf43
2021-12-03 22:57:19 -08:00
Willem Melching 176f552c9e manager.py use get_short_branch() for GitBranch param
old-commit-hash: e8d56f241ad54730fd9458a9e1a481206ea27d52
2021-12-02 10:25:03 +01:00
Adeeb Shihadeh 78a7cf85d3 increase scons cache size for CI devices
old-commit-hash: bc57ffd16ff2154a9c9126648233c8439dcffe9c
2021-11-30 14:51:31 -08:00
Willem Melching 28dd415759 Do not run code on version.py import (#23063)
* Do not run code on version.py import

* fix athena
old-commit-hash: f7c46c694985456e569ce2313b29e43607c62a12
2021-11-29 19:38:55 +01:00
Willem Melching 1ae492370d Add LastPowerDropDetected and create bootlog before clearing params (#23062)
* Add LastControlledShutdown and create bootlog before clearing params

* update param name

* sorting
old-commit-hash: 7c8044d2dbb2ce74c0c622b468caec185e590d48
2021-11-29 15:51:27 +01:00
Adeeb Shihadeh 182a12fdca manager: kill procs in parallel (#23010)
* manager: kill procs in parallel

* oops block
old-commit-hash: ba67c355dbd032e4f6dfd95aaef519aa78c7c52a
2021-11-29 11:49:04 +01:00
grekiki 5b2511162a replace list comprehensions with generators (#23037)
old-commit-hash: 68c1a666a03a381768673a1b29a73f9131f0ed62
2021-11-25 15:53:11 -08:00
Adeeb Shihadeh 44568de155 faster jenkins (#22973)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e13630dfee49dd4439d70d932ea89ba5af74c82f
2021-11-18 23:43:09 -08:00
Willem Melching 425349a55c swaglog.py: respect LOGPRINT env variable (#22950)
* swaglog.py: respect LOGPRINT env variable

* only change handler that prints

* keep usefull manager prints

* only print running list

* revert process changes

* fix test
old-commit-hash: 77b334a698300d6f763bfcc0210c32b6f2ae6f63
2021-11-18 16:05:06 +01:00
Dean Lee 84097b29df watchdog_kick: non-allocating (#22892)
* non-allocating

* unpack

* call kick every second

* cleanup include
old-commit-hash: ca88a8769be47c8cd27d7290c53b7dfc3b55f0fd
2021-11-17 12:02:31 +01:00
Adeeb Shihadeh c142416931 soundd: configure as persistent process (#22878)
* soundd: configure as persistent process

* update c2 test

* fix that

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ed8e6f857ca45a1d814dd9a98ddf5c40c6d08c20
2021-11-12 15:04:57 -08:00
Willem Melching bb8d0aa76d Move shutdown/reboot handling to manager (#22882)
* Move shutdown/reboot handling to manager

* more logging

* check enagaged

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 07ff72472636237d7c47addfce4d8bbbda98e9d2
2021-11-12 09:10:34 -08:00
Dean Lee c1a3683ccb soundd: misc cleanup + tests (#22796)
* pass AudibleAlert to setAlert

* apply reviews

* remove trailing underscore

* add current_alert_type

* common function get_alert

* same freq as ui

* small cleanup

* setvolumne on change

* static Alert::get

* test_sounds

* remove old test files

* loop twice

* assert loopsRemaining

* assert stop

* init to min_volumne

* Revert "remove old test files"

This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.

* move to ui/soundd

* move test to tests/test_sound.cc

* remove old tests

* cleanup

* lower volume

* Revert "remove old tests"

This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 797bb1acb0ed548bda23b9f76458a102bf7ccf5a
2021-11-09 14:18:29 -08:00
Willem Melching ef6ae61c5e make soundd exit cleanly (#22794)
old-commit-hash: 1289ebe9bdfdb698c7ab61331ec9169529ae31e4
2021-11-04 15:50:48 +01:00
Willem Melching 6712c4e520 soundd doesnt exit cleanly
old-commit-hash: 802efe0e22501f9334f2017491c65fef163fede3
2021-11-04 15:05:16 +01:00
Willem Melching dc3075790e Move navigation into separate daemon (#22767)
* Add navd folder

* prints route instructions to console

* broadcast NavInstuction without lanes

* show basic instructions and eta

* parse out lane info

* use swaglog

* clip distance on ui side

* draw lane directions

* show route

* add to process config

* add to release files

* small cleanup

* show route without gps

* pop open map on initial route

* fix error messages around no gps

* done

* make persistent process

* handle end of route

* clear route on offroad

* only one timer

* fix layout hacks

* explicit rendering at 20Hz
old-commit-hash: bef686f2752bcad4bb3116c2be63157ee01eab73
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh 997f3f0212 run onroad tests on release build (#22700)
* check startup aelrt

* release decorator

* run in jenkins

* run onroad tests

* no push

* fix release2 build

* fix path

* no overwrite

* single release build script

* make files_eon non empty

* files

* run in source

* add that for now

* print

* ignore initialzing

* print

* fetch

* run tests last

* check alert text

* revert some stuff

* fixup jenkinsfile

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7feae28705842380ec00a6c691b97feeacd3ff3c
2021-10-26 23:50:05 -07:00
Willem Melching 06e22360ae Add DisableRadar_Allow param and settings toggle (#22329)
old-commit-hash: 8c01ae5716b558039946c07e63d42d16094037d2
2021-09-23 17:19:47 -07:00
Adeeb Shihadeh dbc41b847d add shouldBeRunning field to managerState (#22246)
old-commit-hash: 2f57f1729da92b10a7518849619b0c889b026a20
2021-09-15 19:51:55 -07:00
Willem Melching 6f92abc815 Less open file permissions (#21922)
* Less open file permissions

* add test back

* remove params test for permissions

* remove umask

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dddab597bcee0a103895509b7909743f97cbdf83
2021-08-28 18:25:05 -07:00
Adeeb Shihadeh 67a7abb492 android health daemon (#21965)
* androidd

* three strikes

* better logging

* persistent

* add to release files

* cleanup

* no cpu usage

* colon

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c8ca56dddd0ccf06bc85ed5e67b1b36f39006105
2021-08-19 16:00:05 -07:00
Adeeb Shihadeh 13b3649211 add that back
old-commit-hash: 8aafbc78f65a398b7d354a68453df15c1324eb9d
2021-08-06 15:48:16 -07:00
Harald Schafer d55933a0dd Revert "add boardd as a managed process for tests"
This reverts commit ea7dee7a7f9bda827aab4cfe7c84f067e4608473.

old-commit-hash: fd53169adea4fb720c9cc4073bea3a8a82457115
2021-08-06 15:20:32 -07:00
Adeeb Shihadeh 0380acffc0 add boardd as a managed process for tests
old-commit-hash: fcae1997237bf982a8b2e8c49f315c0921e56157
2021-08-06 11:47:30 -07:00
arfy slowy 63b3d6024b fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f88937302f7423eea67895d5f4c596b5
2021-08-05 12:05:49 -07:00
Adeeb Shihadeh 65ec97ad2d watchdog: restart while onroad (#21636)
old-commit-hash: 09291b99bcd1304fb87478218b82297aa51655c9
2021-07-17 14:52:05 -07:00
Adeeb Shihadeh 6eea281a19 soundd (#21619)
* refactor alerts

* doesn't go here anymore

* soudd

* handle controls unresponsive

* same check

* fix path

* update sound test

* nice

* fix c2

* add script

* update tests

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 12948e661a6b6424739082ee614d81b4549c2753
2021-07-16 17:30:00 -07:00
Adeeb Shihadeh 19bc1b7397 fast jenkins (#21472)
* speed up setup

* speedup onroad test

* .git doesn't like inplace

* tici2

* no inplace

* revert

* fix

* that one too
old-commit-hash: 0bfd994f73a73b321f0ac45e1f3f5d1e907e6962
2021-07-02 16:29:57 -07:00
Adeeb Shihadeh 784601c8e1 remove lte toggle (#21392)
* remove lte toggle

* little more
old-commit-hash: a420c7ad50eec716e53537957b1439b2ce44d73e
2021-06-23 17:01:17 -07:00
Adeeb Shihadeh 3e064c4dd5 build.py: don't hang on text window in CI (#21335)
old-commit-hash: cefbd6734eecaada43d306f114aebfeba0c67369
2021-06-18 15:37:53 -07:00
Adeeb Shihadeh 03405b81fd acados support (#21319)
* acados support

* add pyextra to python path

* x86 libs
old-commit-hash: 6e4c2aa4d286bb43f091ad13820f564f70e4c0d7
2021-06-17 16:40:00 -07:00
Adeeb Shihadeh baa85548de don't write last update time param on pc
old-commit-hash: 29ac94b71997303fdd2cae137a1a3ccd016868e7
2021-06-07 14:07:08 -07:00
eFini 777b84a064 two minor bug fixes (#21134)
old-commit-hash: 5c450026efedd7551accb542b33aeba4c76d0086
2021-06-04 21:20:02 -07:00
Adeeb Shihadeh fb62002e92 use scons cache by default (#21102)
* always use scons cache

* cleanup
old-commit-hash: a0dabd94e9d04fdc772b3cb34b6cd016da29d971
2021-06-01 17:12:32 -07:00
Adeeb Shihadeh 5a80518b52 tici, it's just like cici
old-commit-hash: 189ee62d002a765af4edf6a6689ef62c3c20599f
2021-05-25 20:36:50 -07:00
Willem Melching 9754f9fdc5 manager.py: fix UNREGISTERED_DONGLE_ID check (#21027)
old-commit-hash: ba5d6bbd702e35afad028fadd392d7ed8a2a8dc2
2021-05-25 17:26:25 +02:00
Adeeb Shihadeh 884736efc2 better scons cache handling (#20980)
* better scons cache handling

* nicer

* max size

* fast
old-commit-hash: 4f4cb56de920f42cc8646ba569ef362910be6185
2021-05-22 20:13:39 -07:00
Adeeb Shihadeh 932486f4ef default lte param to on
old-commit-hash: 7a4d319035340bd5e472d673145d7189cef84605
2021-05-18 15:29:02 -07:00
Adeeb Shihadeh 8002b848b6 offroad alert for unregistered devices (#20870)
* offroad alert for unregistered devices

* update tests

* add param

* fix stretch
old-commit-hash: b93ccc465dbc8b847b65f7d062182465344dac4d
2021-05-11 03:18:45 -07:00
Adeeb Shihadeh 88434dc9e4 add CLEAR_ON_IGNITION param type (#20810)
old-commit-hash: b4447993c10b36628cb72b58dba8104c9060bb7f
2021-05-04 11:32:40 -07:00
Adeeb Shihadeh 8a759792c4 don't init sentry on non-comma remote
old-commit-hash: 5f3fe0100244cc519acdfd0c5f74d5c71dae0a62
2021-05-03 20:14:31 -07:00
Adeeb Shihadeh c9d5447edd registration unit tests (#20792)
* start tests

* more test

* done
old-commit-hash: 5b764ab47760f6b8b751cff074b245b988650051
2021-05-01 17:16:58 -07:00
Adeeb Shihadeh c7cca3b07e update registration policy (#20770)
* update registration policy

* move that

* handle 403

* fix that
old-commit-hash: 4d8a35d639739e9e00c5f5317e4489c4cb66524c
2021-04-28 14:09:13 -07:00
Adeeb Shihadeh 4c461b3f7f disable sentry for devices without a dongle ID (#20729)
* disable sentry for devices without a dongle ID

* import pc

* unused
old-commit-hash: 47ad2a485f927134ee2f93c497b1b6cb831def30
2021-04-23 11:29:38 -07:00
Willem Melching ab900874db manager.py: fix git commit param write outside of git repo
old-commit-hash: 01c5d7f7eddeaa19c5c776cb96a713689a3d92dd
2021-04-23 13:28:49 +02:00
Adeeb Shihadeh 3e4eb2e343 handle unregistered devices (#20728)
* handle unregistered devices

* cleanup

* no uploader or athena

* clean up
old-commit-hash: 1786d042396bcc079be5de33ed900f48effcec17
2021-04-22 21:03:57 -07:00
Willem Melching c0ca2ce743 Switch to new sentry_sdk (#20690)
* remove unused crash.install

* use sentry_sdk in crash.py

* athena crashes dont rely on excepthook

* make default crash handler work

* make it work in athena

* fixup tombstoned
old-commit-hash: ea0e61187298c9c02238ad673f5932f08aa6f0c7
2021-04-22 15:24:35 +02:00
Joost Wooning c0ac9bb63c convert locationd to c++ (#20622)
* live_kf to c++

* first locationd code

* Running in process_replay

* locationd handle cam_odo and live_calib

* log event handlers

* working message receiving

* compiling message sending

* correctly sending some messages

* correct receiving and sending

* update ref_commit with some all_alive_and_valid being false, minor fixes

* fix std abs

* linking on device fix

* fix cpu usage test

* generate kf constants and defines

* fix replay test

* replay without acks, cleanup

* operate on bytearray messages

* cleanup

* send msg fix

* small sleep, less flaky test

* remove python locationd

* review feedback

* bump rednose
old-commit-hash: 3420707ad58b060333246eb43db09474bb336d39
2021-04-20 11:56:43 +02:00
Adeeb Shihadeh 6d04f375e0 upload raw on tici
old-commit-hash: a3df0e98273a93fc460f5ac699e3cb77edfecf62
2021-04-15 21:36:09 -07:00
Adeeb Shihadeh 50a73824f9 raw upload off by default
old-commit-hash: 9adaff5379e8634b4daf7f93b451eacc23b213c5
2021-04-14 21:06:30 -07:00