Robbe Derks
eda2f8c090
Fix unmetered upload over cell ( fix #23811 ) ( #23820 )
...
old-commit-hash: a6214ff3b1
3 years ago
Robbe Derks
7ef4b9115f
Param to allow upload over cellular ( #23811 )
...
* param to allow upload over cellular
* brackets to be consistent
* move outside loop
* fix tests
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5f64f1c089
3 years ago
Willem Melching
8788555f10
athena: expire items after 31 days ( #23751 )
...
* athena: expire items after 31 days
* add test
old-commit-hash: f03549c276
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
Willem Melching
48a9bd55c6
athena: specify network type for file uploads ( #23687 )
...
* athena: specify network type for file uploads
* add comment
* catch abort transfer
* fix tests
* put athena upload args in dict
* fix defaults
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: e9153fdb4b
3 years ago
Willem Melching
db3eef978f
athena: add suport for download bandwith setting ( #23727 )
...
* athena: add suport for download bandwith setting
* clean ingress rules
old-commit-hash: 0d099e07aa
3 years ago
Willem Melching
fb18d7b789
Add setUploadLimit method to athena ( #23693 )
...
* Add setUploadLimit method to athena
* add comments
* move to hw abstraction layer
* move to hw
* better errors
old-commit-hash: 4c406cdbe5
3 years ago
Adeeb Shihadeh
d17f80fa2d
don't show registration error on pc
...
old-commit-hash: 52d4189e96
3 years ago
Adeeb Shihadeh
eac8bd839a
sentry improvements ( #23627 )
...
* sentry: filter out unregistered devices and PC
* add daemon name
old-commit-hash: 8b5b0ae341
3 years ago
Ryan
d947f4ff5b
athena: unsuccessful upload handler requests. ( #23620 )
...
* Retry unsuccessful upload handler requests.
* test both cases
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1d4191956b
3 years ago
Robbe Derks
323febbf37
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>
old-commit-hash: 1b49ce6ec4
3 years ago
Cameron Clough
dbbdcb32d1
fix typo in athena/registration.py ( #23434 )
...
old-commit-hash: 1de0757c5e
3 years ago
Joost Wooning
ce94c27569
athena: uploads, show which items fail on error ( #23412 )
...
* athena: uploads, show which items fail on error
* fix upload-id
* no more 404
* Update selfdrive/athena/athenad.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 3ffebf4df5
3 years ago
Joost Wooning
dd05972019
athena: methods for adding and cancelling multiple upload requests ( #23366 )
...
* multiple upload cancel
* multiple uploads athena method
* cleanup
* cleanup
* more cleanup
* isnt used
* fix test
* actually fix test
old-commit-hash: 47bb62b875
3 years ago
Ewout ter Hoeven
f206ebd054
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>
old-commit-hash: 332f568a82
3 years ago
Willem Melching
4b13d224bd
manage_athenad.py: add daemon argument to launcher
...
old-commit-hash: d09cc197d1
3 years ago
Devin Leamy
20a2b9d0a2
athena: persist upload queue to disk ( #22659 )
...
* revert submodules
* lowercase
* addressed comments
* add test for cancelled uploads
* formatting
* catch all exceptions
* handle empty param
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 8cb83b29a6
3 years ago
Shane Smiskol
ef38c36435
version.py: make function names more clear ( #23216 )
...
* rename a few version functions
* and is_prebuilt
* and some formatting 😊
old-commit-hash: b745a14ff7
3 years ago
Joost Wooning
969e181cff
nav: athena destination with name and details ( #23155 )
...
old-commit-hash: 4a73445ee5
3 years ago
Adeeb Shihadeh
4d43279023
registration: remove key generation ( #23111 )
...
* registration: remove key generation
* add test
old-commit-hash: 9ceb1a15eb
4 years ago
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: f7c46c6949
4 years ago
Willem Melching
e8b1e69ac1
remove broken athena test
...
old-commit-hash: 0e78502181
4 years ago
Willem Melching
8a0c57433e
navigation: use mapbox proxy server ( #22660 )
...
* use mapbox proxy
* remove MapboxToken param
* do not log jwt
* remove import
* move to staging url
* put has_prime in ui state
* logic was flipped
* Update selfdrive/ui/qt/maps/map.h
old-commit-hash: cca07c0c73
4 years ago
Willem Melching
f78eacb3a5
athena: listUploadQueue, check None first
...
old-commit-hash: bde568205e
4 years ago
Devin Leamy
5b5269cb06
athena: Do not show canceled upload items in listUploadQueue ( #22627 )
...
* do not show canceled upload items in listUploadQueue
* return item._asdict()
* athena: updated test for listUploadQueue
old-commit-hash: 12165c8865
4 years ago
Adeeb Shihadeh
ad96d0d130
move athena tests to github actions ( #22475 )
...
* move athena tests to actions
* run
* fix timeout
old-commit-hash: de7a9e0116
4 years ago
Adeeb Shihadeh
e9cd2a5561
need a jwt for those tests
...
old-commit-hash: f7bd264db8
4 years ago
Adeeb Shihadeh
4da8cf4f31
athena: hardcode jwt for tests
...
old-commit-hash: 7e3d002066
4 years ago
Greg Hogan
6cbe7f0749
athena: change test tearDown to setUp ( #21935 )
...
old-commit-hash: 1d64c18e49
4 years ago
Greg Hogan
b143411521
athena: split data into multiple frames ( #21918 )
...
old-commit-hash: a6debb999c
4 years ago
Greg Hogan
9357587ace
athena: add prefix param to listDataDirectory ( #21906 )
...
* athena: add prefix param to listDataDirectory
* only traverse directories that match prefix
* tests
old-commit-hash: 2dff84121e
4 years ago
Willem Melching
dad760624a
athena: return current upload status in listUploadQueue ( #21903 )
...
* return current upload item in listUploadQueue
* update progress on read
* move to file helpers
* use dict instead of global
old-commit-hash: 28823917ea
4 years ago
Willem Melching
705988abb5
api_get: keep same api ( #21838 )
...
old-commit-hash: 267a0b343b
4 years ago
Dean Lee
ceb40d8384
api: use API_HOST env variable everywhere ( #21814 )
...
* api base url to global constant
* update api/__init__.py
old-commit-hash: 543e019f71
4 years ago
Willem Melching
dd824ffe34
athenad: retry failed and timed out uploads ( #21745 )
...
* retry failed uploads
* test cleanup
* update comment
* also catch SSL error
* use defaults
* sleep in chunks
old-commit-hash: d5b6746ac5
4 years ago
Adeeb Shihadeh
e8161a42ee
athena: detect no prime ( #21718 )
...
* detect no prime
* show in sidebar
* revert timeout
* clear ping param
* fix typo
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7b94cf0ca7
4 years ago
Greg Hogan
88f6e9e1d2
athenad: fix log sort ( #21703 )
...
* athenad: fix log sort
* add test for logs to send
* use temp dir for logs
* fix changing SWAGLOG_DIR
* better way to patch SWAGLOG_DIR
* fix grammar
old-commit-hash: 0964871239
4 years ago
Joost Wooning
f3a8d2a385
athena: primeActivated response ( #21670 )
...
old-commit-hash: d4e0e8c6cf
4 years ago
Adeeb Shihadeh
444649d4f6
show registration debug info after 60s ( #21679 )
...
* show registration debug info after 60s
* little nicer
* larch
* aarch
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 987abb31dd
4 years ago
Willem Melching
4c85b400c9
athena: primeActivated endpoint ( #21623 )
...
old-commit-hash: 51ee3be91a
4 years ago
Willem Melching
cf2f6b964d
Athena getNetworks method ( #21597 )
...
* add iwlist scan
* return using athena
* add lte
* add last one too
* unused
* add release files
* more compact
* typo
* remove debug code
* different file
* array
* rebase mistake
old-commit-hash: a7aa22253b
4 years ago
Adeeb Shihadeh
d38c75a726
more athena logging ( #21558 )
...
old-commit-hash: 49e316a34b
4 years ago
Willem Melching
56b8bd1717
Athena: increase timeouts ( #21316 )
...
* fix typo in thread name
* bump send/upload timeout to 30 seconds
old-commit-hash: fc569694e9
4 years ago
Willem Melching
6f757fdd60
Fetch mapbox token from API ( #21136 )
...
* delay widget creation until going onroad
* let athena fetch mapbox token
* only tici
* add token
* cleaner
* rename slots
* that was missing
old-commit-hash: 21be443499
4 years ago
Greg Hogan
0401206b6b
athenad: send log files one at a time ( #21092 )
...
old-commit-hash: 1a7b0dfb3c
4 years ago
Willem Melching
a8c569f2da
Add more logging to athena threads ( #21086 )
...
* add more logging to athena threads
* add debug to local proxy
* log athena method calls
* data is a json string
old-commit-hash: a065eb6942
4 years ago
Willem Melching
345d9abe7c
Disable Sentry exceptions from athena ( #21085 )
...
old-commit-hash: 6a04baffc4
4 years ago
Greg Hogan
a86a549b5d
athena: version endpoint ( #21045 )
...
* athena: version endpoint
* get_version function
* more explicit version validation
old-commit-hash: ea0f7e2797
4 years ago
Willem Melching
a46e3c5cb4
athena: log before trying to connect
...
old-commit-hash: 8f3e395a1f
4 years ago
Willem Melching
c02d7a1061
athenad: set timeout when creating websocket
...
old-commit-hash: 466f5f091e
4 years ago