Cameron Clough
3bb5167aa8
uploader: add missing types
...
old-commit-hash: e03efa723b
2 years ago
Cameron Clough
6626f3036f
uploader: add typing ( #28001 )
...
* uploader: add typing
* fix types
old-commit-hash: a27ce83b28
2 years ago
Adeeb Shihadeh
3a968c67e1
loggerd: move to system/ ( #27534 )
...
old-commit-hash: 94eb215980
2 years ago
Adeeb Shihadeh
3c48bc47b7
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
old-commit-hash: 0fce5d9045
3 years ago
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
3 years ago
Adeeb Shihadeh
8456b0e79c
uploader: increase max uncompressed qlog size to 100MB
...
old-commit-hash: eca265e07b
3 years ago
grekiki
7cd23af9b1
Mypy fixes for --check-untyped-defs ( #24372 )
...
more type fixes
old-commit-hash: 17e33978cd
3 years ago
Willem Melching
badbd3347c
uploader: ensure requests.put gets file like object ( #24462 )
...
old-commit-hash: ba89faa5f7
3 years ago
Joost Wooning
08da73721c
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>
old-commit-hash: df8f024e19
3 years ago
Adeeb Shihadeh
2e45c3bd68
uploader: compress rlogs ( #24447 )
...
old-commit-hash: 66fbce638f
3 years ago
Willem Melching
be08693d5c
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
old-commit-hash: 77a6f3d034
3 years ago
Willem Melching
85aa5e2706
uploader: azure returns 401 for files already uploaded ( #24141 )
...
old-commit-hash: e7f23ceca2
3 years ago
Willem Melching
2eded18267
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
old-commit-hash: da5a0c41a0
3 years ago
Adeeb Shihadeh
ef2106ebd2
move lock clearing to uploader ( #23826 )
...
* move lock clearing to uploader
* test case
old-commit-hash: 3243d1a81e
3 years ago
Willem Melching
a7fa889605
improve logging around uploading ( #23750 )
...
* improve logging around uploading
* use int
* use raw
* duplicate
old-commit-hash: 7765bc2166
3 years ago
Ewout ter Hoeven
a962365292
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>
old-commit-hash: 55390d273f
3 years ago
Willem Melching
e7bf88f29f
Remove Raw Upload toggle ( #23143 )
...
* Remove Raw Upload toggle
* fix tests
old-commit-hash: 2e0c73fc0c
3 years ago
Willem Melching
9399b6ae61
uploader: switch to upload_url v1.4 ( #22966 )
...
old-commit-hash: 23a1f47817
3 years ago
ntegan1
d508125f35
Upload when on ethernet ( #22188 )
...
in addition to when on wifi
Co-authored-by: ntegan <nick@egan.gg>
old-commit-hash: 54b5972cf6
4 years ago
Adeeb Shihadeh
14a441a314
publish uploader state ( #21580 )
...
* uploader state
* add time
* bump
* populate whole packet
* bump cereal
* revert
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6b69032807
4 years ago
Greg Hogan
a637623fa0
upload can only create ( #21513 )
...
old-commit-hash: d066b8f7e8
4 years ago
Adeeb Shihadeh
61d3b1f177
disable uploading raw by default ( #21128 )
...
old-commit-hash: c76c30fa2d
4 years ago
Willem Melching
8f4a445171
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
old-commit-hash: ae094042ad
4 years ago
Adeeb Shihadeh
893946ae0c
increase log level of NVME cloudlog
...
old-commit-hash: 538df2596d
4 years ago
Greg Hogan
f0b9176bd7
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
old-commit-hash: 1e3f8b014e
4 years ago
Adeeb Shihadeh
ed23f0778a
log when nvme isn't mounted ( #20428 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 33500bf23f
4 years ago
Adeeb Shihadeh
05eb44115e
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
old-commit-hash: 312b681a46
4 years ago
Willem Melching
4fd576e7f7
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
old-commit-hash: 87119aebe2
4 years ago
Willem Melching
8a187ec406
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>
old-commit-hash: f3db94a0c4
4 years ago
Adeeb Shihadeh
c64a8356fe
move to github container registry + CI speedup ( #19621 )
...
old-commit-hash: 59d7c5e64a
4 years ago
Adeeb Shihadeh
5bbe4f3d52
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>
old-commit-hash: ffa7e0cbdb
4 years ago
Adeeb Shihadeh
b950cab874
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
old-commit-hash: 8674b023ba
4 years ago
Adeeb Shihadeh
d5ad6237cf
Revert "Handle python-dbus not installed"
...
This reverts commit fd22f01b1f21005846bef211851d17f602a7c600.
old-commit-hash: a2c6fdd14c
4 years ago
Willem Melching
d47396f4da
Handle python-dbus not installed
...
old-commit-hash: 25054cdc05
4 years ago
Adeeb Shihadeh
de4c543e63
remove hotspot exceptions in uploader ( #2319 )
...
* remove hotspot exceptions
* skip net check while onroad
old-commit-hash: ee37d03c1f
5 years ago
grekiki
079f409e58
Uploader speedup ( #2214 )
...
* use caching for getxattr
* fix some git issues
* Scheduled network checks
* attempt optimization
* Delete speed_test.py
* Style fixes
* Fix styling
* fix spaces
* fix spaces
* fix naming
* Update uploader.py
* Update mark_all_uploaded.py
* Add file to release
* Update selfdrive/loggerd/tools/mark_all_uploaded.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cf46de13d2
5 years ago
Adeeb Shihadeh
6919e06a9c
small uploader cleanup
...
old-commit-hash: 82f40f6ff5
5 years ago
robbederks
7671d18467
Tici camerad ( #2048 )
...
* fix camera config
* typos
* oops
* more typo
* lambless
* forget to send
* visualize hist
* more typo
* 0xC000
* simple
* data loss prevention, clean up later
* loggerd
* back up code
* backup
* fixed memory leak
* fix vsync
* upload ecam
* WB
* 3stream
* fix OMX crash on loggerd rotation
* rewritten debayer kernel
* update viewer
* improved AE
* no artifact lines/grids
* standard trigger
* cleanups
* CCM
* cleanups
* slight tweak
* upd push sock
* build all these
* update tele fl
* update cereal
* upd viewer
* DualCameraState -> MultiCameraState
* cameras_open
* disable frame zmq push by default
* more cleanup
* no apks
* fix submodule error
* wat
* clean up trash
* remove junk
* only build on qcom2
* no need to check these
* update cereal
* some more minor cleanup
* bump panda
* add todo
* minor typo
* Revert "minor typo"
This reverts commit 9233a1df7c
.
* not care
* use consistent hdr
* some cleanup
* Update selfdrive/camerad/main.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* more cleanups
* remove irrelevant stuff
* this too
* cleanup
* rerun ci
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 37d6472bfa
5 years ago
Willem Melching
16fe1bb2ad
Hardware abstraction class ( #2080 )
...
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
old-commit-hash: c7152d5419
5 years ago
Adeeb Shihadeh
e5637bc5de
Disable raw upload while onroad ( #1894 )
...
* disable raw upload while onroad
* fix tests
old-commit-hash: c8f880665a
5 years ago
Willem Melching
55c3a89421
slow down upload check when offroad ( #1634 )
...
old-commit-hash: f4e8df7ee6
5 years ago
Willem Melching
a56e2b01f8
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
old-commit-hash: 843a64c72f
5 years ago
Adeeb Shihadeh
68a3061c9d
enable E261 in flake8: two spaces before inline comment
...
old-commit-hash: 27754a277c
5 years ago
Adeeb
5e857427ba
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
old-commit-hash: d9bf9f0a40
5 years ago
Greg Hogan
8be9cddc62
handle ignored uploads more gracefully
...
old-commit-hash: 85a09b3113
5 years ago
Greg Hogan
41ff9244c0
uploader: allow ctrl+c
...
old-commit-hash: 13ec384ea0
5 years ago
Greg Hogan
004c181167
uploader: do not delete files after uploading ( #1253 )
...
* cffi xattr function wrapper
* xattr wrapper error handling
* xattr tests
* use xattr for tracking files uploaded
* uploader xattr exception handling
* update uploader tests
* remove unused import
* update release build
* xattrs.py -> xattr.py
old-commit-hash: f21d0f325e
5 years ago
Willem Melching
1d39b5a646
more generic catch in uploader and thermald
...
old-commit-hash: 891c4cabb8
5 years ago
Adeeb
65a2c62114
Abstract common events + event cleanup ( #1129 )
...
* too many if
* unused
* whitespace
* key
* sefldrive/car/*
* no more gctx
* lower
* start abstracting common events
* all cars
* start small
* all cars
* reverse gear
* wrongCarMode
* wrongGear
* espDisabled
* steerUnvailable
* make linter happy
* c isn't used
* fix esp_disabled in VW
* update ref
* more red
* more cleanup
* fix subaru
* update ref
old-commit-hash: e8cb6ea06a
5 years ago
Willem Melching
0e5e604412
Add cloudlog for is_on_wifi fail
...
old-commit-hash: f6835e9490
5 years ago