Justin Newberry
b28343e276
Revert "Pytest: run tests in random order" ( #30469 )
...
Revert "Pytest: run tests in random order (#30134 )"
This reverts commit bdc0624d0320e75b521a8edcf4aebacb6ab96a75.
old-commit-hash: ba3067a560
2023-11-15 10:41:11 -08:00
Justin Newberry
586fe682e4
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
old-commit-hash: a5d99e0ebb
2023-11-15 10:16:51 -08:00
Justin Newberry
a0b0c1c4e7
CI: codecov for multiprocessing ( #30432 )
...
old-commit-hash: 2629417320
2023-11-10 10:02:05 -08:00
Justin Newberry
0a901ebe02
Revert "CI: codecov for multiprocessing" ( #30431 )
...
Revert "CI: codecov for multiprocessing (#30428 )"
This reverts commit 3b07eefe35677ba9cd35680864b88d5eacd3a25e.
old-commit-hash: 863fdec50e
2023-11-09 15:52:28 -08:00
Justin Newberry
81e3076dc6
CI: codecov for multiprocessing ( #30428 )
...
* concurrencty codecov
* its a list
* retrigger ci
* increase delay
old-commit-hash: 1e91cf92a1
2023-11-09 15:19:10 -08:00
Dean Lee
3a637fe455
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 >
old-commit-hash: 61288dfe06
2023-10-29 07:08:28 -10:00
Adeeb Shihadeh
61eb6f4f66
finish hardware move to system/ ( #30140 )
...
* finish hardware move to system/
* fix release
* couple more
old-commit-hash: c347096c3e
2023-10-02 16:49:07 -07:00
Shane Smiskol
13381ed446
services: capitalize constant service list ( #30005 )
...
* rename
* bump
* Apply suggestions from code review
old-commit-hash: 7f073483bb
2023-09-21 18:25:15 -07:00
Justin Newberry
759ab03b03
Ruff: disallow non-openpilot imports ( #29841 )
...
old-commit-hash: 110cfef1c2
2023-09-08 10:43:02 -07:00
Justin Newberry
37e4b2cba9
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
old-commit-hash: dde225221e
2023-09-07 16:29:36 -07:00
Justin Newberry
c7029ea15a
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
old-commit-hash: bfe990b112
2023-09-07 11:32:47 -07:00
Justin Newberry
839e72de70
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
old-commit-hash: ca435d3447
2023-09-04 11:54:35 -07:00
Cameron Clough
390ccdf632
athenad: update typing
...
old-commit-hash: 059cb0130d
2023-08-30 12:05:30 +01:00
Adeeb Shihadeh
16ec56398c
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 db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh
51634f52dc
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
old-commit-hash: d61f86d339
2023-08-20 18:50:58 -07:00
Justin Newberry
d487c0501f
Ruff: enable most of bugbear ( #29320 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
old-commit-hash: 62c1e65924
2023-08-11 15:33:49 -07:00
Justin Newberry
715f028a0e
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
old-commit-hash: 8793cbff40
2023-08-10 18:58:22 -07:00
Justin Newberry
3ee0786de3
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
old-commit-hash: 7fdd9fc37c
2023-08-09 13:26:54 -07:00
Justin Newberry
7b677910df
Linter: Fix >160 line length test ( #29287 )
...
* test
* fix line length
* fix line length
* fix file size
* revert poetry
* cleanup for PR
old-commit-hash: cf64b27168
2023-08-08 17:13:35 -07:00
Shane Smiskol
989c79d8d3
athenad: remove duplicate exception clause ( #29220 )
...
old-commit-hash: fbc56b6c73
2023-08-03 10:23:38 -07:00
Shane Smiskol
e833a10a42
athenad: update comment about timeout constant ( #29216 )
...
* in socket!
https://bugs.python.org/issue26273
* clean up
* ignore mypy bug
* comment
* just comment
old-commit-hash: 0f7b775884
2023-08-03 04:24:51 -07:00
Shane Smiskol
8089a6e4f6
athenad test: use helper function ( #29217 )
...
old-commit-hash: b53bf00555
2023-08-03 11:54:12 +01:00
Cameron Clough
e65fb3123f
athena: stricter socket timeout when onroad ( #29017 )
...
old-commit-hash: 4d10ba8af8
2023-07-24 17:43:30 +01:00
Adeeb Shihadeh
b0c3778aae
agnos 8 ( #28843 )
...
* agnos 8
* update to python 3.11.4 (#27452 )
* rebase
* optional
* lower cython
* TEMP don't pull cl to use python3.11
* Revert "lower cython"
This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.
* fix cython
* remove tensorrt
* carla + opencv
* macos
* update timm and smp
* pynvc
* https
* downgrade numpy
* pin scipy
---------
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com >
Co-authored-by: Yassine <yassine.y10@gmail.com >
* revert that
* fix linter
---------
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com >
Co-authored-by: Yassine <yassine.y10@gmail.com >
old-commit-hash: 1945c356c2
2023-07-20 21:56:57 -07:00
Cameron Clough
dcd74839f9
athenad: test connection timeout ( #28864 )
...
old-commit-hash: 915aec3f5c
2023-07-17 20:21:52 +01:00
Cameron Clough
077c687827
athenad: log connection retries and duration ( #28888 )
...
old-commit-hash: 9ecf98c4ce
2023-07-11 21:40:59 +01:00
Adeeb Shihadeh
ee363d69e3
fix a bunch of python warnings ( #28576 )
...
* fix a bunch of python warnings
* fix that
old-commit-hash: 111b4eee30
2023-06-16 13:22:30 -07:00
Adeeb Shihadeh
7c7276f3dd
athena: raise log level for call method ( #28334 )
...
old-commit-hash: 7e141f25f9
2023-05-29 14:46:15 -07:00
Cameron Clough
54afe04e2f
athenad: add getGithubUsername method ( #28025 )
...
* athenad: add getGithubUsername method
* add test
* order
old-commit-hash: 09d25ad999
2023-04-26 20:42:43 -07:00
Adeeb Shihadeh
3a968c67e1
loggerd: move to system/ ( #27534 )
...
old-commit-hash: 94eb215980
2023-03-08 11:20:49 -08:00
Cameron Clough
c5cbd60a34
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 >
old-commit-hash: e1c739f709
2022-12-12 17:15:37 -08:00
Cameron Clough
d3dbd91280
athenad: small tests cleanup ( #26037 )
...
* test helpers
* create file helper
* clearer
* type
* fix default create path
* static methods
old-commit-hash: 9e2a1121ea
2022-10-17 12:55:40 -07:00
Cameron Clough
597b949813
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 2ad9e65ea229b814782be9f30cc7664125d7e908.
* 'Force Unmetered Cellular' toggle
* update translations
* remove description
* update translations
* change unmetered to metered
old-commit-hash: f611960391
2022-10-01 14:47:06 -07:00
Adeeb Shihadeh
0325a33752
add pyside2 package ( #25602 )
...
old-commit-hash: c6b749fb96
2022-08-30 15:10:52 -07:00
Adeeb Shihadeh
d9c279aea9
params: make python and c++ API match ( #25573 )
...
* params: make python and c++ API match
* few more
old-commit-hash: 90a4565eb2
2022-08-26 20:46:19 -07:00
Willem Melching
5c97a090b6
athena: skip duplicate upload requests ( #25062 )
...
* athena: skip duplicate upload requests
* cleanup
* keep simple
* just ignore
old-commit-hash: 7e187426c7
2022-07-07 18:00:07 +02:00
Adeeb Shihadeh
d9d83b0225
Move camerad to system/ ( #24836 )
...
* mv camerad
* add hardware symlink
* fix unit tests
old-commit-hash: 6123ab3d1c
2022-06-19 14:43:49 -07:00
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
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
2022-06-11 16:38:24 -07:00
Maykon Pacheco
fe24326066
test for the strip_bz2_extension method ( #24826 )
...
old-commit-hash: 1847a70a47
2022-06-11 11:08:24 -07:00
Willem Melching
753045c73d
less TICI when not needed ( #24698 )
...
* less TICI when not needed
* fix process replay
* move reading voltages into hw abstraction layer
* Update selfdrive/hardware/tici/hardware.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/hardware/hw.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/hardware/base.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* rename init function
* Update selfdrive/athena/athenad.py
Co-authored-by: Robbe Derks <robbe.derks@gmail.com >
* Update selfdrive/boardd/boardd.cc
* Apply suggestions from code review
* Update selfdrive/thermald/thermald.py
* update ref
* fix alert width if all cameras are bad
* add ecam to test_loggerd
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
Co-authored-by: Robbe Derks <robbe.derks@gmail.com >
old-commit-hash: f49a9c9fd2
2022-06-02 15:20:51 +02:00
Adeeb Shihadeh
402a0800dd
athena: remove redirect detection for old prime ( #24662 )
...
This worked on old magenta, but doesn't work on new magenta
or blue prime.
old-commit-hash: e38b93fc31
2022-05-26 16:09:22 -07:00
Dylan Herman
2dfba97175
add mypy check for return-any ( #24379 )
...
* add mypy check for return-any
* remove unused import
* typing
* remove unnecessary variable typing
* cleanup
* cleanup
* bump submodules
* small fixes
* only a problem on mac
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: d2eef1955c
2022-05-12 14:59:00 +02:00
grekiki
7cd23af9b1
Mypy fixes for --check-untyped-defs ( #24372 )
...
more type fixes
old-commit-hash: 17e33978cd
2022-05-12 14:08:11 +02:00
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
2022-05-03 14:09:17 +02:00
grekiki
cc943ac9a5
mypy: enable --warn-unreachable ( #24282 )
...
* Optional solves mypy assuming None is always None
* oops
* spaces
* Update registration.py
* fix local error
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: b8b15d5cf1
2022-04-21 18:27:45 +02:00
Adeeb Shihadeh
709e683bf4
athena: fix random test failure ( #24278 )
...
old-commit-hash: 0fbb7a4673
2022-04-20 13:20:50 -07:00
Willem Melching
85aa5e2706
uploader: azure returns 401 for files already uploaded ( #24141 )
...
old-commit-hash: e7f23ceca2
2022-04-05 20:09:05 -07:00
Willem Melching
34e0b26dc4
athena.upload_handler.upload_start log retry count ( #24139 )
...
old-commit-hash: 714efe828a
2022-04-05 17:57:01 -07:00
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
2022-03-09 11:36:52 +01:00