Cameron Clough
995250ae49
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
1 year ago
Adeeb Shihadeh
1c794b710c
uploader: sleep more when no files in queue ( #31523 )
...
* uploader: sleep more when no files in queue
* fix test
1 year ago
Adeeb Shihadeh
2280ac50b7
uploader: restrict qcam upload on metered connctions ( #31047 )
...
* uploader: restrict qcam upload on metered connctions
* route requesting
* rename
* str
* cleanup
* strip dongle
* upload bookmarked segments
---------
Co-authored-by: Comma Device <device@comma.ai>
1 year ago
Adeeb Shihadeh
19630c5af9
uploader: delay uploading crash and boot logs on metered connections ( #31045 )
...
* uploader: delay uploading some files on metered connections
* just crash and boot for now
1 year ago
Adeeb Shihadeh
0b5fd7287e
uploader cleanup ( #31035 )
...
* Reapply "uploader cleanup" (#31033 )
This reverts commit 5e4df41b2f
.
* always sleep
* more cleanup
* little more
* fix linter
* little more
1 year ago
Justin Newberry
5e4df41b2f
Revert "uploader cleanup" ( #31033 )
1 year ago
Adeeb Shihadeh
c6c6a441eb
uploader cleanup ( #31029 )
...
* cleanup
* startup cleanup
* step
* Update test_uploader.py
1 year ago
Dean Lee
a1f53c70e6
uploader.py/listdir_by_creation: list directories only ( #30806 )
...
list only directories
Co-authored-by: Comma Device <device@comma.ai>
1 year ago
Adeeb Shihadeh
37351cbdc1
uploader: reduce max qlog/qcam size ( #30746 )
1 year ago
Adeeb Shihadeh
35f819c823
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
1 year ago
Adeeb Shihadeh
a1d36961cf
new msgs default to invalid ( #30587 )
...
* new msgs default to invalid
* fix lm
* set more valid
* update rest
* update refs
* fix logMessage
* more valids
* cleanup
* fix llk test
* pigeond is also valid
* more valids
1 year ago
Justin Newberry
bfe990b112
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
2 years ago
Justin Newberry
4e69937d0d
Precommit: ensure executable bit is set ( #29784 )
...
* precommit ensure executable
* exclude tinygrad
* bump submodules
* exclude tinygrad globally
2 years ago
Adeeb Shihadeh
a9626f95b6
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 db5e13b991
.
* fix pm test
2 years ago
Justin Newberry
4a9afd7554
Ruff: comprehensions conventions ( #29317 )
...
ignore c408
2 years ago
Justin Newberry
cf64b27168
Linter: Fix >160 line length test ( #29287 )
...
* test
* fix line length
* fix line length
* fix file size
* revert poetry
* cleanup for PR
2 years ago
Shane Smiskol
7f7637f3e5
uploader: check upload key value ( #28206 )
...
* fix check
* tests
* fix test
* fix
* xattr truthy and falsy tests
---------
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2 years ago
Cameron Clough
7126363093
uploader: log actual uploaded file size ( #28000 )
...
* uploader: log actual uploaded file size
The size will be less if compressed before uploading.
* cleanup
* fix return type
* add request to FakeResponse
* cleanup
* fix
2 years ago
Cameron Clough
e03efa723b
uploader: add missing types
2 years ago
Cameron Clough
a27ce83b28
uploader: add typing ( #28001 )
...
* uploader: add typing
* fix types
2 years ago
Adeeb Shihadeh
94eb215980
loggerd: move to system/ ( #27534 )
2 years ago
Adeeb Shihadeh
0fce5d9045
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
3 years ago
Adeeb Shihadeh
1139fe507b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
3 years ago
Adeeb Shihadeh
eca265e07b
uploader: increase max uncompressed qlog size to 100MB
3 years ago
grekiki
17e33978cd
Mypy fixes for --check-untyped-defs ( #24372 )
...
more type fixes
3 years ago
Willem Melching
ba89faa5f7
uploader: ensure requests.put gets file like object ( #24462 )
3 years ago
Joost Wooning
df8f024e19
uploader: size limit for automatic uploading of qlogs/qcams ( #24403 )
...
* uploader: size limit for automatic uploading of qlogs/qcams
* move check to add logging
* use constant
* mark as uploaded
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Adeeb Shihadeh
66fbce638f
uploader: compress rlogs ( #24447 )
3 years ago
Willem Melching
77a6f3d034
delay bz2 compression from logging to uploading ( #24392 )
...
* remove log_name
* log without compression
* fix tests
* remove extension for bootlog
* another test fix
* uploader compresses
* also compress in athena
* only compress qlog
* more generic check in do_upload
* fix bootlog compression
* lower loggerd cpu usage
* dont link against bz2
* set core affinity to little cluster
* handle old files
3 years ago
Willem Melching
e7f23ceca2
uploader: azure returns 401 for files already uploaded ( #24141 )
3 years ago
Willem Melching
da5a0c41a0
C3: detect metered Android hotspot ( #23734 )
...
* C3: detect metered networks
* show in ui
* fix text layout
* bump cereal
* revert ui changes
* set networkMetered
* add athena method
* add metered logging to uploader
* use in athena uploader
* remove param
* use networkmanager properties to set cell to unmetered
* fix indentation
* no need to check
* bump cereal
* review
* bump cereal
3 years ago
Adeeb Shihadeh
3243d1a81e
move lock clearing to uploader ( #23826 )
...
* move lock clearing to uploader
* test case
3 years ago
Willem Melching
7765bc2166
improve logging around uploading ( #23750 )
...
* improve logging around uploading
* use int
* use raw
* duplicate
3 years ago
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>
3 years ago
Willem Melching
2e0c73fc0c
Remove Raw Upload toggle ( #23143 )
...
* Remove Raw Upload toggle
* fix tests
3 years ago
Willem Melching
23a1f47817
uploader: switch to upload_url v1.4 ( #22966 )
3 years ago
ntegan1
54b5972cf6
Upload when on ethernet ( #22188 )
...
in addition to when on wifi
Co-authored-by: ntegan <nick@egan.gg>
4 years ago
Adeeb Shihadeh
6b69032807
publish uploader state ( #21580 )
...
* uploader state
* add time
* bump
* populate whole packet
* bump cereal
* revert
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Greg Hogan
d066b8f7e8
upload can only create ( #21513 )
4 years ago
Adeeb Shihadeh
c76c30fa2d
disable uploading raw by default ( #21128 )
4 years ago
Willem Melching
ae094042ad
add putBool/getBool wrappers to cython params class ( #20611 )
...
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
4 years ago
Adeeb Shihadeh
538df2596d
increase log level of NVME cloudlog
4 years ago
Greg Hogan
1e3f8b014e
logging cleanup ( #20502 )
...
* switch some uploader messages to debug log
* use allow_sleep
* log when not request or response
* test both with params and without params
4 years ago
Adeeb Shihadeh
33500bf23f
log when nvme isn't mounted ( #20428 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
312b681a46
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
4 years ago
Willem Melching
87119aebe2
Put bootlog in own folder ( #19939 )
...
* put bootlog in own folder
* fix uploader
* remove print statements
* update test
* remove comment
* also write initddata
* remove sentinels from test
4 years ago
Willem Melching
f3db94a0c4
Linux tombstones: add stacktrace and upload ( #19737 )
...
* Add stacktrace to tombstones
* make sentry output prettier
* Refactor
* Generate upload filename
* Actually move file
* Fix spaces
* copy and upload
* dont delete just yet
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
59d7c5e64a
move to github container registry + CI speedup ( #19621 )
4 years ago
Adeeb Shihadeh
ffa7e0cbdb
manager tests + make all processes exit cleanly ( #19595 )
...
* manager tests
* logcatd exits cleanly
* sigint
* boardd
* multiple dbus connections hangs for some reason
* clocksd proclogd
* network type from thermal
* fix tests
* fix android logcatd
* fix mac
* fix mac proclogd
* move on device athena tests
* build first
* build first
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
8674b023ba
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
4 years ago