Adeeb Shihadeh
baa4e801fe
athena: remove MockParams from tests
1 year ago
Justin Newberry
e1a05deadd
test_athena: make test more independent ( #31012 )
...
get port auto
1 year ago
Justin Newberry
23c20bce8f
test_athena: remove slow memory leak test ( #30734 )
...
way too long
1 year ago
Shane Smiskol
2afff9a0cb
athena tests: patch instead of juggling function ( #30664 )
...
patch instead of juggling function
1 year ago
Shane Smiskol
17d71d2829
test_athena: remove no-op line ( #30660 )
...
* test
* Update selfdrive/athena/tests/test_athenad.py
1 year ago
Justin Newberry
4086795c29
Pytest: more post-test path cleanup ( #30556 )
...
* test cleanup
* missed this one
* remove that
* static class
1 year ago
Justin Newberry
ba3067a560
Revert "Pytest: run tests in random order" ( #30469 )
...
Revert "Pytest: run tests in random order (#30134 )"
This reverts commit a5d99e0ebb
.
1 year ago
Justin Newberry
a5d99e0ebb
Pytest: run tests in random order ( #30134 )
...
* enable random order
* logprint info
* revert that
* better logging
* go to dfu
* try to flash every panda if not up to date
* revert panda debugging
1 year ago
Justin Newberry
2629417320
CI: codecov for multiprocessing ( #30432 )
1 year ago
Justin Newberry
863fdec50e
Revert "CI: codecov for multiprocessing" ( #30431 )
...
Revert "CI: codecov for multiprocessing (#30428 )"
This reverts commit 1e91cf92a1
.
1 year ago
Justin Newberry
1e91cf92a1
CI: codecov for multiprocessing ( #30428 )
...
* concurrencty codecov
* its a list
* retrigger ci
* increase delay
1 year ago
Dean Lee
61288dfe06
athenad: fix memory leak in `_do_upload()` ( #30237 )
...
* fix memory leak
* test: stash
* clean up
* clean up
* ruff
* rm
* add py memory profiler
* test compress and no compress
* proper test
* comment
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2 years ago
Adeeb Shihadeh
c347096c3e
finish hardware move to system/ ( #30140 )
...
* finish hardware move to system/
* fix release
* couple more
2 years ago
Justin Newberry
110cfef1c2
Ruff: disallow non-openpilot imports ( #29841 )
2 years 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
ca435d3447
CI: use pytest for unittesting ( #29709 )
...
* switch to pytest
* static analysis
* fix the helpers
* static analysis
* remove that
* more parallel test
* cleanup
* static analysis
* durations min and tolerance
* reduce those iterations
* sleep time could be decreased too
* in case it's negative
* try using caching
* remove parallelization for first PR
* PR Cleanup
* reduce diff
* fix that
* bump panda
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
7fdd9fc37c
CI: Pylint to ruff ( #29294 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
* set line length
* pylint exclusions to ruff
* same excludes as old linter
* fix tools QA
* remove unrequired check
* revert linting third_party
* ignore e402
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
b53bf00555
athenad test: use helper function ( #29217 )
2 years ago
Cameron Clough
4d10ba8af8
athena: stricter socket timeout when onroad ( #29017 )
2 years ago
Cameron Clough
915aec3f5c
athenad: test connection timeout ( #28864 )
2 years ago
Adeeb Shihadeh
111b4eee30
fix a bunch of python warnings ( #28576 )
...
* fix a bunch of python warnings
* fix that
2 years ago
Cameron Clough
09d25ad999
athenad: add getGithubUsername method ( #28025 )
...
* athenad: add getGithubUsername method
* add test
* order
2 years ago
Cameron Clough
e1c739f709
athenad: more types ( #25877 )
...
* add typing hints
* missed these
* revert functional changes and changes to uploader
* remove
* try any
* add types to test code
* try dataclass instead
* mypy needs this
* comments
* remove Any type
* remove unused method
* cleanup
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Cameron Clough
9e2a1121ea
athenad: small tests cleanup ( #26037 )
...
* test helpers
* create file helper
* clearer
* type
* fix default create path
* static methods
3 years ago
Cameron Clough
f611960391
networking: add unmetered cellular toggle ( #25902 )
...
* add metered toggle to UI
* add GsmMetered param
* add NMMetered constants
* change LTE connection settings: connection.metered
* change to GsmUnmetered override
* update translations
* debug ui
* remove comment
* Revert "debug ui"
This reverts commit 2ad9e65ea2
.
* 'Force Unmetered Cellular' toggle
* update translations
* remove description
* update translations
* change unmetered to metered
3 years ago
Adeeb Shihadeh
c6b749fb96
add pyside2 package ( #25602 )
3 years ago
Willem Melching
7e187426c7
athena: skip duplicate upload requests ( #25062 )
...
* athena: skip duplicate upload requests
* cleanup
* keep simple
* just ignore
3 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
Maykon Pacheco
1847a70a47
test for the strip_bz2_extension method ( #24826 )
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
Robbe Derks
5f64f1c089
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>
3 years ago
Willem Melching
f03549c276
athena: expire items after 31 days ( #23751 )
...
* athena: expire items after 31 days
* add test
3 years ago
Willem Melching
e9153fdb4b
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>
3 years ago
Ryan
1d4191956b
athena: unsuccessful upload handler requests. ( #23620 )
...
* Retry unsuccessful upload handler requests.
* test both cases
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Joost Wooning
3ffebf4df5
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>
3 years ago
Joost Wooning
47bb62b875
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
3 years ago
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>
3 years ago
Devin Leamy
8cb83b29a6
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>
3 years ago
Adeeb Shihadeh
9ceb1a15eb
registration: remove key generation ( #23111 )
...
* registration: remove key generation
* add test
3 years ago
Willem Melching
0e78502181
remove broken athena test
4 years ago
Devin Leamy
12165c8865
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
4 years ago
Adeeb Shihadeh
de7a9e0116
move athena tests to github actions ( #22475 )
...
* move athena tests to actions
* run
* fix timeout
4 years ago
Adeeb Shihadeh
f7bd264db8
need a jwt for those tests
4 years ago
Adeeb Shihadeh
7e3d002066
athena: hardcode jwt for tests
4 years ago
Greg Hogan
1d64c18e49
athena: change test tearDown to setUp ( #21935 )
4 years ago
Greg Hogan
2dff84121e
athena: add prefix param to listDataDirectory ( #21906 )
...
* athena: add prefix param to listDataDirectory
* only traverse directories that match prefix
* tests
4 years ago
Willem Melching
28823917ea
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
4 years ago
Willem Melching
d5b6746ac5
athenad: retry failed and timed out uploads ( #21745 )
...
* retry failed uploads
* test cleanup
* update comment
* also catch SSL error
* use defaults
* sleep in chunks
4 years ago