Adeeb Shihadeh
8b5b0ae341
sentry improvements ( #23627 )
...
* sentry: filter out unregistered devices and PC
* add daemon name
2022-01-26 11:44:10 -08:00
Adeeb Shihadeh
818d4a0a96
manager: don't start uploader with dongle id
2022-01-25 15:42:38 -08:00
Ryan
aa9e635311
Add more type hinting ( #23595 )
...
* Add more type hinting.
* Revert joystick_alert changes.
* Add typing to statsd.
* Update selfdrive/statsd.py
* Update selfdrive/test/test_fingerprints.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-01-21 15:11:16 -08:00
Adeeb Shihadeh
b63bc89bc9
sentry fixups ( #23249 )
...
* set env
* do init in same place
* no sentry for forks
* start session
* start session
* remove that
* val
2022-01-14 15:25:16 -08:00
Adeeb Shihadeh
308a6f1730
manager: log exit reason ( #23532 )
2022-01-14 08:55:51 -08:00
Adeeb Shihadeh
610b99fd68
Log android system shutdown to param ( #23520 )
...
* Log android system shutdown to param
* comment
Co-authored-by: Comma Device <device@comma.ai >
2022-01-13 22:40:35 -08:00
Adeeb Shihadeh
8c53adf4ab
swaglog: add daemon name to context ( #23518 )
...
* cleanup first
* add daemon name
* add test
* fix
* daemon name
2022-01-13 20:23:08 -08:00
Willem Melching
9e1428fd84
Do not disable loggerd when below 5% space ( #23440 )
2022-01-13 10:31:37 +01:00
Shane Smiskol
6e817f9eb5
manager: default driverview to False ( #23492 )
2022-01-11 14:07:35 +01:00
Robbe Derks
1b49ce6ec4
Statsd ( #23413 )
...
* device side of statsd
* need to start it
* enable in manager
* add sleep
* cleanup
* remove aggregates for now and standardize on industry terms
* manager needs main
* need to have a try/except
* atomic_write_on_fs_tmp does not work
* cleaner
* use dump
Co-authored-by: Willem Melching <willem.melching@gmail.com >
* one file at a time
* limit amount of files
* move to influx line protocol and cleanup
* needs to be a list
* fix timezone bug
* actually rate limit
* add to release
* normalized origin
* also log deviceType
* more stats
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2022-01-10 15:21:48 +01:00
Adeeb Shihadeh
c70fc7dbe5
Revert "soundd: back to onroad only ( #23236 )"
...
This reverts commit 3bdb445c84 .
2022-01-03 16:37:35 -08:00
George Hotz
dc96d4bee7
Add More Types for mypy ( #23268 )
...
* mypy passes
* a few more
* a few in manager
* more types, will lint
* more
* simple types
* events type
* Update selfdrive/thermald/thermald.py
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2021-12-28 18:07:00 +01:00
Ewout ter Hoeven
332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
2021-12-24 11:18:39 -08:00
Ewout ter Hoeven
55390d273f
Convert format strings strings to f-strings ( #23241 )
...
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
3bdb445c84
soundd: back to onroad only ( #23236 )
2021-12-15 14:29:32 -08:00
Adeeb Shihadeh
b27a19e9d1
cloudlog: add daemon name to context for python daemons ( #23225 )
...
* python
* manager is a daemon too
* Update selfdrive/manager/process.py
Co-authored-by: Comma Device <device@comma.ai >
2021-12-14 20:43:26 -08:00
Shane Smiskol
b745a14ff7
version.py: make function names more clear ( #23216 )
...
* rename a few version functions
* and is_prebuilt
* and some formatting 😊
2021-12-14 12:15:13 +01:00
Adeeb Shihadeh
7e66a944b2
fix startup test
2021-12-06 14:40:42 -08:00
grekiki
6951b3271d
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 >
2021-12-03 22:57:19 -08:00
Willem Melching
e8d56f241a
manager.py use get_short_branch() for GitBranch param
2021-12-02 10:25:03 +01:00
Adeeb Shihadeh
bc57ffd16f
increase scons cache size for CI devices
2021-11-30 14:51:31 -08:00
Willem Melching
f7c46c6949
Do not run code on version.py import ( #23063 )
...
* Do not run code on version.py import
* fix athena
2021-11-29 19:38:55 +01:00
Willem Melching
7c8044d2db
Add LastPowerDropDetected and create bootlog before clearing params ( #23062 )
...
* Add LastControlledShutdown and create bootlog before clearing params
* update param name
* sorting
2021-11-29 15:51:27 +01:00
Adeeb Shihadeh
ba67c355db
manager: kill procs in parallel ( #23010 )
...
* manager: kill procs in parallel
* oops block
2021-11-29 11:49:04 +01:00
grekiki
68c1a666a0
replace list comprehensions with generators ( #23037 )
2021-11-25 15:53:11 -08:00
Adeeb Shihadeh
e13630dfee
faster jenkins ( #22973 )
...
Co-authored-by: Comma Device <device@comma.ai >
2021-11-18 23:43:09 -08:00
Willem Melching
77b334a698
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
2021-11-18 16:05:06 +01:00
Dean Lee
ca88a8769b
watchdog_kick: non-allocating ( #22892 )
...
* non-allocating
* unpack
* call kick every second
* cleanup include
2021-11-17 12:02:31 +01:00
Adeeb Shihadeh
ed8e6f857c
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 >
2021-11-12 15:04:57 -08:00
Willem Melching
07ff724726
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 >
2021-11-12 09:10:34 -08:00
Dean Lee
797bb1acb0
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 >
2021-11-09 14:18:29 -08:00
Willem Melching
1289ebe9bd
make soundd exit cleanly ( #22794 )
2021-11-04 15:50:48 +01:00
Willem Melching
802efe0e22
soundd doesnt exit cleanly
2021-11-04 15:05:16 +01:00
Willem Melching
bef686f275
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
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh
7feae28705
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 >
2021-10-26 23:50:05 -07:00
Willem Melching
8c01ae5716
Add DisableRadar_Allow param and settings toggle ( #22329 )
2021-09-23 17:19:47 -07:00
Adeeb Shihadeh
2f57f1729d
add shouldBeRunning field to managerState ( #22246 )
2021-09-15 19:51:55 -07:00
Willem Melching
dddab597bc
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 >
2021-08-28 18:25:05 -07:00
Adeeb Shihadeh
c8ca56dddd
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 >
2021-08-19 16:00:05 -07:00
Adeeb Shihadeh
8aafbc78f6
add that back
2021-08-06 15:48:16 -07:00
Harald Schafer
fd53169ade
Revert "add boardd as a managed process for tests"
...
This reverts commit fcae199723 .
2021-08-06 15:20:32 -07:00
Adeeb Shihadeh
fcae199723
add boardd as a managed process for tests
2021-08-06 11:47:30 -07:00
arfy slowy
d74def61f8
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2021-08-05 12:05:49 -07:00
Adeeb Shihadeh
09291b99bc
watchdog: restart while onroad ( #21636 )
2021-07-17 14:52:05 -07:00
Adeeb Shihadeh
12948e661a
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 >
2021-07-16 17:30:00 -07:00
Adeeb Shihadeh
0bfd994f73
fast jenkins ( #21472 )
...
* speed up setup
* speedup onroad test
* .git doesn't like inplace
* tici2
* no inplace
* revert
* fix
* that one too
2021-07-02 16:29:57 -07:00
Adeeb Shihadeh
a420c7ad50
remove lte toggle ( #21392 )
...
* remove lte toggle
* little more
2021-06-23 17:01:17 -07:00
Adeeb Shihadeh
cefbd6734e
build.py: don't hang on text window in CI ( #21335 )
2021-06-18 15:37:53 -07:00
Adeeb Shihadeh
6e4c2aa4d2
acados support ( #21319 )
...
* acados support
* add pyextra to python path
* x86 libs
2021-06-17 16:40:00 -07:00
Adeeb Shihadeh
29ac94b719
don't write last update time param on pc
2021-06-07 14:07:08 -07:00