Shane Smiskol
d7d3111212
athenad: set TOS field for proxy WebSocket ( #32337 )
...
set TOS
1 year ago
Shane Smiskol
09aeab3f77
athenad: set a timeout on proxy WebSocket receive ( #32336 )
...
* useless
* Revert "useless"
This reverts commit 28f0bb9e97
.
* this forever hangs you disconnect (or 2 hours)
* same timeout as the global websocket
* Revert "same timeout as the global websocket"
This reverts commit 0bd0cb8a38
.
* setting the timeout affects the entire websocket and disconnects, not just recv timeout
* fix that
* fix test
1 year ago
Justin Newberry
effee900c4
use build_metadata everywhere we used to use get_version, get_commit, etc ( #31941 )
...
* use build_metadata
* fix normailzed
* also normalized
* and here
* fix diff
* and that one
* cleanup
1 year ago
Justin Newberry
4fbc8a3896
move git commands to common/git.py ( #31921 )
...
move git into common/git.py
1 year ago
Justin Newberry
9d1cafd0fc
move with_http_server to selfdrive/test/helpers ( #31597 )
...
* move
* fix
1 year ago
Cameron Clough
80da3aee14
mypy: use implicit-optional ( #31590 )
...
* mypy: set implicit-optional = true
* find and replace '| None = None' -> '= None' in function args
1 year ago
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
Shane Smiskol
3009a51c06
athenad: check end_event while uploading files ( #31541 )
...
* check end_event while uploading, throw abort exception if we need to shut down/restart
* fix
* draft test
stash
* Revert - there's no easy way to know if it breaks early in upload loop
or not yet
This reverts commit ad893687e1
.
* todo for now
1 year ago
Shane Smiskol
c0e172e0c0
athenad: fix test timeouts and comments ( #31540 )
...
* these pass in 0.5s since server sends ping on connect
* comments
* unused
* fix
* fix these too
* check end_event while uploading, throw abort exception if we need to shut down/restart
* Revert "check end_event while uploading, throw abort exception if we need to shut down/restart"
This reverts commit f0b822fca9
.
* more tol for lte connection
1 year ago
Shane Smiskol
9dde727974
Fix athenad reconnect test ( #31538 )
...
* debugging
* this also works
* so does this
* more similar to existing method
* clean up
* more
* more
1 year ago
Greg Hogan
d0a1fa636a
logging: make swaglog context match in python and c ( #31288 )
...
* logging: make swaglog context match in python and c
* add git context to athenad
1 year ago
Greg Hogan
7affba06d8
simplify git remote is comma check ( #31284 )
...
* simplify git remote is comma check
* cast to str
* eliminate default and always return string
* add type annotation for cache decorator
* fix up default handling
1 year ago
Greg Hogan
9ab374f3b0
athenad: return normalized origin in getVersion() ( #31283 )
1 year ago
Justin Newberry
5c85925e9b
test_athenad: create with_upload_handler decorator ( #31250 )
...
cleaner
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
7ce29ef08e
cleanup old params ( #31039 )
...
* cleanup old params
* one more
1 year ago
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
Adeeb Shihadeh
a8afaf39d4
Update Python packages and pre-commit hooks ( #31003 )
...
* Update Python packages and pre-commit hooks
* fix
---------
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
1 year ago
Adeeb Shihadeh
46f3fdc090
Update Python packages and pre-commit hooks ( #30597 )
...
* Update Python packages and pre-commit hooks
* fix
---------
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
1 year ago
Justin Newberry
23c20bce8f
test_athena: remove slow memory leak test ( #30734 )
...
way too long
1 year ago
Adeeb Shihadeh
ea94a6d89f
athena: cleanup unused methods
1 year ago
Shane Smiskol
2afff9a0cb
athena tests: patch instead of juggling function ( #30664 )
...
patch instead of juggling function
1 year ago
Shane Smiskol
90c2aee6c3
athenad: use `socket` constant ( #30663 )
...
Update athenad.py
1 year ago
Shane Smiskol
17d71d2829
test_athena: remove no-op line ( #30660 )
...
* test
* Update selfdrive/athena/tests/test_athenad.py
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
Justin Newberry
4086795c29
Pytest: more post-test path cleanup ( #30556 )
...
* test cleanup
* missed this one
* remove that
* static class
1 year ago
Adeeb Shihadeh
07e75c7cb8
athena: remove primeActivated endpoint ( #30542 )
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
Shane Smiskol
7f073483bb
services: capitalize constant service list ( #30005 )
...
* rename
* bump
* Apply suggestions from code review
2 years ago
Justin Newberry
110cfef1c2
Ruff: disallow non-openpilot imports ( #29841 )
2 years ago
Justin Newberry
dde225221e
CI: run unittests in parallel with xdist ( #29756 )
...
* parallel tests
* review suggesions
* add to pyproject
* add a bit more buffer on that
* fix rare athena issue
* remove from pypoetry
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
Cameron Clough
059cb0130d
athenad: update typing
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
Adeeb Shihadeh
d61f86d339
replace custom clock helpers with time module ( #29499 )
...
* replace custom clock stuff wtih time module
* fix double
* fix release
* bump cereal
* update type
* fix one more
2 years ago
Justin Newberry
62c1e65924
Ruff: enable most of bugbear ( #29320 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
2 years ago
Justin Newberry
8793cbff40
Ruff: enable flake8-builtins ( #29315 )
...
* enable flake8-builtins
* replace any with contains
* fix typo in pack
* fix type
* format is from the parent module, has to be enabled
* item_id
* fix item_id
* disable for id since that's what the remote server returns
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
fbc56b6c73
athenad: remove duplicate exception clause ( #29220 )
2 years ago
Shane Smiskol
0f7b775884
athenad: update comment about timeout constant ( #29216 )
...
* in socket!
https://bugs.python.org/issue26273
* clean up
* ignore mypy bug
* comment
* just comment
2 years ago
Shane Smiskol
b53bf00555
athenad test: use helper function ( #29217 )
2 years ago