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>
4 years ago
Adeeb Shihadeh
3bdb445c84
soundd: back to onroad only ( #23236 )
4 years ago
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>
4 years ago
Shane Smiskol
b745a14ff7
version.py: make function names more clear ( #23216 )
...
* rename a few version functions
* and is_prebuilt
* and some formatting 😊
4 years ago
Adeeb Shihadeh
7e66a944b2
fix startup test
4 years ago
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>
4 years ago
Willem Melching
e8d56f241a
manager.py use get_short_branch() for GitBranch param
4 years ago
Adeeb Shihadeh
bc57ffd16f
increase scons cache size for CI devices
4 years ago
Willem Melching
f7c46c6949
Do not run code on version.py import ( #23063 )
...
* Do not run code on version.py import
* fix athena
4 years ago
Willem Melching
7c8044d2db
Add LastPowerDropDetected and create bootlog before clearing params ( #23062 )
...
* Add LastControlledShutdown and create bootlog before clearing params
* update param name
* sorting
4 years ago
Adeeb Shihadeh
ba67c355db
manager: kill procs in parallel ( #23010 )
...
* manager: kill procs in parallel
* oops block
4 years ago
grekiki
68c1a666a0
replace list comprehensions with generators ( #23037 )
4 years ago
Adeeb Shihadeh
e13630dfee
faster jenkins ( #22973 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
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
4 years ago
Dean Lee
ca88a8769b
watchdog_kick: non-allocating ( #22892 )
...
* non-allocating
* unpack
* call kick every second
* cleanup include
4 years ago
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>
4 years ago
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>
4 years ago
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 e6bb12abfa
.
* return Alert
* cleanup
* remove #include <optional>
* cleanup .gitignore
* revert to std::optional
* Revert "revert to std::optional"
This reverts commit a66291c51f
.
* cleanup
* remove volume check
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
1289ebe9bd
make soundd exit cleanly ( #22794 )
4 years ago
Willem Melching
802efe0e22
soundd doesnt exit cleanly
4 years ago
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
4 years ago
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>
4 years ago
Willem Melching
8c01ae5716
Add DisableRadar_Allow param and settings toggle ( #22329 )
4 years ago
Adeeb Shihadeh
2f57f1729d
add shouldBeRunning field to managerState ( #22246 )
4 years ago
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>
4 years ago
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>
4 years ago
Adeeb Shihadeh
8aafbc78f6
add that back
4 years ago
Harald Schafer
fd53169ade
Revert "add boardd as a managed process for tests"
...
This reverts commit fcae199723
.
4 years ago
Adeeb Shihadeh
fcae199723
add boardd as a managed process for tests
4 years ago
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>
4 years ago
Adeeb Shihadeh
09291b99bc
watchdog: restart while onroad ( #21636 )
4 years ago
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>
4 years ago
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
4 years ago
Adeeb Shihadeh
a420c7ad50
remove lte toggle ( #21392 )
...
* remove lte toggle
* little more
4 years ago
Adeeb Shihadeh
cefbd6734e
build.py: don't hang on text window in CI ( #21335 )
4 years ago
Adeeb Shihadeh
6e4c2aa4d2
acados support ( #21319 )
...
* acados support
* add pyextra to python path
* x86 libs
4 years ago
Adeeb Shihadeh
29ac94b719
don't write last update time param on pc
4 years ago
eFini
5c450026ef
two minor bug fixes ( #21134 )
4 years ago
Adeeb Shihadeh
a0dabd94e9
use scons cache by default ( #21102 )
...
* always use scons cache
* cleanup
4 years ago
Adeeb Shihadeh
189ee62d00
tici, it's just like cici
4 years ago
Willem Melching
ba5d6bbd70
manager.py: fix UNREGISTERED_DONGLE_ID check ( #21027 )
4 years ago
Adeeb Shihadeh
4f4cb56de9
better scons cache handling ( #20980 )
...
* better scons cache handling
* nicer
* max size
* fast
4 years ago
Adeeb Shihadeh
7a4d319035
default lte param to on
4 years ago
Adeeb Shihadeh
b93ccc465d
offroad alert for unregistered devices ( #20870 )
...
* offroad alert for unregistered devices
* update tests
* add param
* fix stretch
4 years ago
Adeeb Shihadeh
b4447993c1
add CLEAR_ON_IGNITION param type ( #20810 )
4 years ago
Adeeb Shihadeh
5f3fe01002
don't init sentry on non-comma remote
4 years ago
Adeeb Shihadeh
5b764ab477
registration unit tests ( #20792 )
...
* start tests
* more test
* done
4 years ago
Adeeb Shihadeh
4d8a35d639
update registration policy ( #20770 )
...
* update registration policy
* move that
* handle 403
* fix that
4 years ago
Adeeb Shihadeh
47ad2a485f
disable sentry for devices without a dongle ID ( #20729 )
...
* disable sentry for devices without a dongle ID
* import pc
* unused
4 years ago
Willem Melching
01c5d7f7ed
manager.py: fix git commit param write outside of git repo
4 years ago