Commit Graph

162 Commits

Author SHA1 Message Date
Maxime Desroches
2cdbfac5a6 Move zstd to normal deps (#32741)
move zstd
old-commit-hash: 6552d4ecb8
2024-06-13 21:46:19 +00:00
Maxime Desroches
7007dae556 Separate python dep into groups (#32739)
* split

* only zstd
old-commit-hash: 9ffd973be9
2024-06-13 20:41:32 +00:00
Shane Smiskol
e88cbb0162 add zstd Python library (#32731)
* add zstd

* fix

* uploader

* logreader: zst support

* caps

* only logreader
old-commit-hash: 04a93dd849
2024-06-12 21:14:23 -07:00
Adeeb Shihadeh
9cfdd6200d Remove setproctitle (#32716)
* Custom setproctitle (#32667)

* add custom setproctitle

* add test

* Update poetry.lock

* fix lint

* support only Linux

* test only Linux

* final lint

* Update test_setproctitle.py

* Update setproctitle.py

* convert to threadnames

* delete proctitles

* Check str len and use PR_GET_NAME

* fix poetry.lock

* lint fix

* Update common/threadname.py

---------

Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* revert that for now

* use last 15

* fix

* use name

* update those

* and modeld

* rm

---------

Co-authored-by: schlimeszn <138847413+schlimeszn@users.noreply.github.com>
Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 83ac80c6c8
2024-06-11 21:57:32 -07:00
Mauricio Alvarez Leon
008008b03a Update to Python 3.12 (#32548)
* 3.12

* pprofile is broken

* use modified metadrivepy3-12

* 0.3.0 metadrive

* add metadrive/commaai git dependency

* metadrive git set

* pin sounddevice 0.4.6

* datetime.utcnow() deprecation

* poetry lock

* make datetime not aware

* poetry lock

* pin pytools

* google_crc32c wheel

* unpin sounddevice

* clean metadrive

* use python crc

* mypy

* 3.12.4

* allow python3.11

* test

* no pip

* poetry

* better

* better

* merge

* remove

* try

* test

* try  this

* snok

* python

* simpler

* setuptools

* lower

* try

* try

* work?

* ubuntu deps

* ubuntu

* try

* remove

* move

* remove this

* names

* Update .github/workflows/tools_tests.yaml

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* python<4

* <3.13

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 148eaf8fa6
2024-06-11 20:45:15 +00:00
Adeeb Shihadeh
e920e57530 Revert "Custom setproctitle (#32667)"
This reverts commit 1f45e163559baa2a6127d5a5e8deb7067e32f813.

old-commit-hash: 5b51f03967
2024-06-10 19:55:41 -07:00
Maxime Desroches
9233bc4965 Bump pyopencl and disable on arm64 (#32695)
bump pyopencl
old-commit-hash: 84dd8ad4a3
2024-06-10 19:26:48 -07:00
schlimeszn
afea57ae2a Custom setproctitle (#32667)
* add custom setproctitle

* add test

* Update poetry.lock

* fix lint

* support only Linux

* test only Linux

* final lint

* Update test_setproctitle.py

* Update setproctitle.py

* convert to threadnames

* delete proctitles

* Check str len and use PR_GET_NAME

* fix poetry.lock

* lint fix

* Update common/threadname.py

---------

Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3365ed5eff
2024-06-10 18:59:01 -07:00
Maxime Desroches
49c036919f Pin pytools (#32684)
* bump opencl

* pin pytools
old-commit-hash: 1f7c5bcd50
2024-06-10 23:06:37 +00:00
Harald Schäfer
05ed3d8c15 Restructure msgq (#32652)
* Update ref

* Compiles

* compiles

* Refactor rest of libs

* import all

* small fiex

* cleanup import

* Need msgq simlink too

* Add to openpilot docker too

* try repo

* Updates

* Fix lint

* fix docs

* Try blank slate

* Revert "Try blank slate"

This reverts commit f078ce04acacfe115c19e23e86038b01e2b84a6d.

* Maybe scons needs this to clear cache

* fix tests

* Disable test for now

* Update SConstruct

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Fix whitespace

* Write skip normal

* small fixes

* add test path

* Revert repo

* linting

* whitespace

* Bump msgq

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e70dc90a45
2024-06-09 17:44:34 -07:00
Adeeb Shihadeh
a05ec1f4de python dependency notes (#32668)
old-commit-hash: 284512b2ca
2024-06-08 16:29:41 -07:00
Adeeb Shihadeh
92ad30cbd6 Replace markdown-it-py with small function in common/ (#32664)
* Replace markdown-it-py with small function in common/

* simple test

* unused

* lock

* linting fixes
old-commit-hash: 5265d13fe0
2024-06-08 15:39:26 -07:00
Adeeb Shihadeh
30c41788dc thermald is hardwared (#32637)
* thermald is deviced

* hardwared

* rename
old-commit-hash: 51fdf23304
2024-06-05 15:58:00 -07:00
Adeeb Shihadeh
2c6829ed67 boardd is pandad (#32628)
* boardd is pandad

* rename tests
old-commit-hash: 34e329649d
2024-06-04 19:16:55 -07:00
Adeeb Shihadeh
43dd214f52 Revert "pytest: discover openpilot/ (#32561)" (#32622)
This reverts commit 9c272f9ef90b7c032884aa0ad54b8d5630de14fc.
old-commit-hash: 149238845c
2024-06-04 12:09:06 -07:00
Adeeb Shihadeh
b248bc4bb2 add pytest-repeat (#32612)
old-commit-hash: 57a9761186
2024-06-03 17:17:02 -07:00
Mauricio Alvarez Leon
ddd78718a6 pytest: discover openpilot/ (#32561)
* pytest: discover everything in openpilot/

* ignore process replay

* remove --ignore=openpilot/

* ignore directories in root

* remove skip in selfdrive/test/process_replay

* use openpilot directory

* set openpilot directory for test_translations

* omit generated config.py files

* run ci

* cd into openpilot for test_translation

* &&

* remove rm main_test_en command

* remove echo

* increase shm-size to 2G

* remove rm

* test only cpp_files that are test_*.cc~

* add process_replay test skip

* use addopts in pyproject to ignore test_processes

* try --rootdir for pytest

* cleanups / add rootdir in PYTEST env

* add rm create_test_translations

* revert poetry.lock

* simplify

* no regen!

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 00b10f3d9a
2024-06-02 14:53:32 -07:00
Hoang Bui
86e2641636 Simulator: update MetaDrive to latest (#32576)
* bump metadrive

* comment
old-commit-hash: aa081f5748
2024-05-30 11:25:21 -07:00
Adeeb Shihadeh
f6d6d06523 Revert "pyproject: support >= 3.11"
This reverts commit d9b0b41a00492cbf4e55c4499080924fd91426ed.

old-commit-hash: ccbca2ac95
2024-05-25 21:20:15 -07:00
Adeeb Shihadeh
68b6612159 pyproject: support >= 3.11
old-commit-hash: 390caeb011
2024-05-25 21:00:29 -07:00
Adeeb Shihadeh
4356b74cca updated: finish system/ move (#32535)
* updated: finish system/ move

* add those back

* skip that

* skip whole file

* one more time
old-commit-hash: 73b02f2cda
2024-05-25 12:22:02 -07:00
Adeeb Shihadeh
75f86a0845 move rerun to dev dependencies (#32534)
old-commit-hash: b9244f1031
2024-05-25 11:09:08 -07:00
Adeeb Shihadeh
14e7c7d260 thermald: move to system/ (#32494)
* thermald: move to system/

* fix path

* revert
old-commit-hash: b2cf9b35f6
2024-05-20 22:51:29 -07:00
Adeeb Shihadeh
70d14c99e1 ruff: enable TRY
old-commit-hash: 0e3df5ae4d
2024-05-20 17:47:48 -07:00
Adeeb Shihadeh
3358745103 ruff: enable UP
old-commit-hash: b2e4c64cf8
2024-05-20 17:43:54 -07:00
Adeeb Shihadeh
73e4aa24b9 ruff: enable NPY
old-commit-hash: 788c4edeec
2024-05-20 17:40:46 -07:00
Adeeb Shihadeh
18970afb0e athena: move to system/ (#32488)
* athena: move to system/

* slash
old-commit-hash: 3279dbeff7
2024-05-20 14:59:43 -07:00
Mauricio Alvarez Leon
1600939a38 deps: add rerun-sdk into pyproject.toml (#32472)
* add rerun-sdk into pyproject.toml

* install/wheel cleanup

* unpin version
old-commit-hash: bd6bea39bf
2024-05-18 17:21:04 -07:00
Adeeb Shihadeh
f3ce476452 control is still used
old-commit-hash: 4c558e45b9
2024-05-18 15:15:41 -07:00
Adeeb Shihadeh
c4ed6cc9ca gc unused python deps
old-commit-hash: 1e08132cdf
2024-05-18 14:51:49 -07:00
Adeeb Shihadeh
7dd13bde29 add [project] section to pyproject.toml
old-commit-hash: 985b22d4b7
2024-05-17 21:43:57 -07:00
cl0cks4fe
639a634f7c Unittest to pytest (#32366)
* add pytest-asyncio

* switch common

* switch selfdrive

* switch system

* switch tools

* small fixes

* fix setUp and valgrind pytest

* switch to setup

* fix random

* switch mock

* switch test_lateral_limits

* revert test_ui

* fix poetry.lock

* add unittest to banned-api

* add inline ignores to remaining unittest imports

* revert test_models

* revert check_can_parser_performance

* one more skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528
2024-05-17 11:01:44 -07:00
Shane Smiskol
8143e49ad1 Revert "python deps: add sortedcontainers" (#32433)
Revert "python deps: add sortedcontainers (#32428)"

This reverts commit b7d9690b1c84af21314af1fc452373542f6d8ee3.
old-commit-hash: 84c15e9d31
2024-05-14 16:40:15 -07:00
YassineYousfi
6e8e119638 python deps: add sortedcontainers (#32428)
old-commit-hash: db8273823d
2024-05-14 09:31:09 -07:00
Adeeb Shihadeh
1cf55e7416 unpin casadi (#32316)
old-commit-hash: f3a49a29b7
2024-04-29 16:35:49 -07:00
Justin Newberry
44dba36bc3 ruff: Exclude body and cereal (#31782)
old-commit-hash: 257db40d57
2024-03-07 14:58:36 -08:00
Clark934
97aa95e454 ruff: set tab size and quote style (#31749)
old-commit-hash: 997bb65e54
2024-03-06 19:15:14 -08:00
Justin Newberry
4166525f03 updated: basic e2e update tests (#31742)
* e2e update test

* that too

* fix

* fix

* fix running in docker

* don't think GHA will work

* also test switching branches

* it's a test

* lets not delete that yet

* comment

* space
old-commit-hash: ac77129041
2024-03-06 15:24:46 -08:00
Justin Newberry
d356ae040e ban pytest.main (#31623)
ban it!
old-commit-hash: 262b328ad7
2024-02-27 14:17:01 -08:00
Cameron Clough
a09300385b mypy: use implicit-optional (#31590)
* mypy: set implicit-optional = true

* find and replace '| None = None' -> '= None' in function args
old-commit-hash: 80da3aee14
2024-02-25 13:29:18 -08:00
Shane Smiskol
cc11691902 ruff: fix deprecated top level linter settings (#31367)
fix deprecation
old-commit-hash: 595406be67
2024-02-07 22:54:40 -08:00
Justin Newberry
b610cb8356 bump metadrive (#31342)
bump
old-commit-hash: 530902dfad
2024-02-06 19:23:37 -08:00
Adeeb Shihadeh
36c2a0bb30 pin pyopencl to fix aarch64 build (#31184)
* revert pyopencl

* revert that
old-commit-hash: eada51ec8e
2024-01-26 16:00:33 -08:00
Adeeb Shihadeh
42f2592b28 unpin sentry-sdk (#31183)
* unpin sentry-sdk

* update
old-commit-hash: 1001becfa5
2024-01-26 14:33:59 -08:00
Adeeb Shihadeh
9488aafba4 add flaky package
old-commit-hash: fe4abaa6f6
2024-01-25 17:38:09 -08:00
Justin Newberry
fe38a7e1a9 Simulator: pin metadrive + use pip version (#31161)
* pin metadrive

* pin

* not on git
old-commit-hash: 3b618c4dfd
2024-01-25 12:44:01 -08:00
Justin Newberry
d3ead5e4ff test_ui: create test ui screenshots and html report (#31147)
* test ui

* report + common

* in ci

* fix

* dont enable in ci yet
old-commit-hash: e2ec5be6ee
2024-01-24 13:54:31 -08:00
Justin Newberry
934225a448 replace pytest-timeouts with pytest-timeout (#31053)
* one timeout

* timeout

* higher timeout for now

* bump
old-commit-hash: d98b33adc8
2024-01-18 16:19:49 -08:00
YassineYousfi
2742a6d3f4 update onnxruntime to 1.16.3 (#31024)
old-commit-hash: 86ac700805
2024-01-16 20:22:05 -08:00
Adeeb Shihadeh
8277f37c4b camerad: move ae test to pytest/catch2 (#30994)
* mv ae gray test

* cleanup
old-commit-hash: 3e601b5e8f
2024-01-13 15:40:25 -08:00