Commit Graph

128 Commits

Author SHA1 Message Date
Adeeb Shihadeh
1cf55e7416 unpin casadi (#32316)
old-commit-hash: f3a49a29b73e319fdded6aa28ad40071dfd7f922
2024-04-29 16:35:49 -07:00
Justin Newberry
44dba36bc3 ruff: Exclude body and cereal (#31782)
old-commit-hash: 257db40d57b158b33dbd834c946fb86c2ed1e9bc
2024-03-07 14:58:36 -08:00
Clark934
97aa95e454 ruff: set tab size and quote style (#31749)
old-commit-hash: 997bb65e54badbb8d53ae940367a5d4146dc8e01
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: ac771290414da337e1f800b23b01360c5471ece4
2024-03-06 15:24:46 -08:00
Justin Newberry
d356ae040e ban pytest.main (#31623)
ban it!
old-commit-hash: 262b328ad706194425479b1a56af9321d1a0c97a
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: 80da3aee147867e46f566b63a96f4fe199e0628d
2024-02-25 13:29:18 -08:00
Shane Smiskol
cc11691902 ruff: fix deprecated top level linter settings (#31367)
fix deprecation
old-commit-hash: 595406be67d43512f3a6c72d1cf17631262c5981
2024-02-07 22:54:40 -08:00
Justin Newberry
b610cb8356 bump metadrive (#31342)
bump
old-commit-hash: 530902dfadb2cd17d8739cdd9c56b0c0c4192871
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: eada51ec8ed570a4efe70909760460c976cd4f04
2024-01-26 16:00:33 -08:00
Adeeb Shihadeh
42f2592b28 unpin sentry-sdk (#31183)
* unpin sentry-sdk

* update
old-commit-hash: 1001becfa59fb7208ecd69e98a3f60f5efa37a1d
2024-01-26 14:33:59 -08:00
Adeeb Shihadeh
9488aafba4 add flaky package
old-commit-hash: fe4abaa6f693b000056d2ce8c2492fb64c3e313d
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: 3b618c4dfd81238c8e76524cbedb073d70d69794
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: e2ec5be6eec73f6455727313ba2b9c5bb01cce8c
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: d98b33adc8aaf10d0174d59e4065802c70a3413a
2024-01-18 16:19:49 -08:00
YassineYousfi
2742a6d3f4 update onnxruntime to 1.16.3 (#31024)
old-commit-hash: 86ac700805ef1ca913cfc859b6bfb1c528d83605
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: 3e601b5e8fcaf2fd0885cc64949fa1349a8069eb
2024-01-13 15:40:25 -08:00
Adeeb Shihadeh
c0cd180e01 unpin metadrive package (#30944)
* unpin metadrive package

* lock
old-commit-hash: 90010754d6da2fa62c1b19d660510fc53af8c7da
2024-01-08 17:16:15 -08:00
Justin Newberry
ceec7907cc Pytest: exclude teleoprtc (#30829)
exclude
old-commit-hash: cfc85f016b401017ce6003a9a36760418945f0b2
2023-12-20 15:22:48 -08:00
Adeeb Shihadeh
9ae1b6473c run test_fuzzy.py with pytest
old-commit-hash: b0b4ae9c15e5e4651a83bc9a0a857baf27513d4b
2023-12-18 14:38:57 -08:00
Adeeb Shihadeh
fbb4a865c0 packages cleanup, part two
old-commit-hash: 846be323d52ea07c7b303759beb3c4c45f526c45
2023-12-17 16:37:33 -08:00
royjr
d41f215df8 dependency: remove pycurl package (#30771)
* Update qcomgpsd.py

* Update url_file.py

* remove pycurl

* requests -> urllib3

* unused

* redundant

* fix import

* Revert "requests -> urllib3"

This reverts commit 7ca39e618917986f50356519d2795a432e3a5280.

* headless

* fix trail

* use requests.exceptions.RequestException

* use fp.tell

* fix indents

* reorder imports

* change timeout

* fix debug timing

* remove exception

* add timeout

* missing headers

* move to constructor

* move import

* unused import

* fix debug

* try

* no retries
old-commit-hash: 70624ffc819c29d842cb68fd86f42eac95421b10
2023-12-17 16:25:25 -08:00
royjr
6161996653 dependency: remove atomicwrites package (#30769)
* Update file_helpers.py

* remove dependency

* Revert "remove dependency"

This reverts commit e2bd5f4edab7d14b75f65c296631855d886e38d1.

* remove atomicwrites

* allow overwrite

* fix indents

* add type hints

* Update poetry.lock

* optional

* wrap
old-commit-hash: 7f9e41ce2e9da4c712eba469a0f4407afbe3583f
2023-12-16 21:58:19 -08:00
Adeeb Shihadeh
ab31860658 remove PyYAML package (#30770)
* remove PyYAML package

* remove those

* add comments back

* fix lock

* fix those
old-commit-hash: bc54ed794b2cd9dcb9522cdeb241ad78ac30d998
2023-12-16 20:48:57 -08:00
Adeeb Shihadeh
33c46434b9 remove sconscontrib package (#30767)
* remove sconscontrib package

* lock
old-commit-hash: a7828eba3ce73b523dc1bbd2c897c760329e7f7a
2023-12-16 19:16:34 -08:00
Adeeb Shihadeh
46e4e96440 cleanup python dependencies (#30764)
* less

* try to remove that

* little more

* update

* ugh still need this
old-commit-hash: dfa2e9146f1997f3879e4a2bb4be00c4e6068228
2023-12-16 18:52:15 -08:00
Justin Newberry
0939b25bc4 CI: move test_maprenderer to GH actions (#30610)
maprenderer to ci
old-commit-hash: 5d668701cb69c1e3d170109a8e788a2acbacebd3
2023-12-14 16:59:28 -08:00
Justin Newberry
9ef90e214d Simulator: remove carla (#30690)
* no carla

* no arg and stylize metadrive
old-commit-hash: 11ec5bf25e82e53bbefa88643c81ab5b7581e913
2023-12-11 20:38:37 -08:00
Shane Smiskol
e46c20ac61 test_models: randomize internal segment list (#30653)
* randomize internal seg list segments

* random

* pytest-randomly sets random.seed to a consistent value for all the workers/processes

* noeol

* update

* Revert "update"

This reverts commit aff9a69c4e5e3934deebaa33986b42f44b55b002.

* lock

* don't randomize by default

* remove random-order

* strict

* random

* one fix

* test

* does nothing

* rm tests

* Revert "rm tests"

This reverts commit b548e3fcd48e60538695506888d863c01b459d27.

* (can't repro locally) just athena should be fine

* bs1

* bs2

* bs3

* bs4

* bs5

* wrong way

* no controls

* no car

* no board

* controls?

* crazy -common

* Revert "crazy -common"

This reverts commit 02365d712b3d09cab1893cce2261a4b418bb3851.

* test athena

* test athena 2

* test athena 3

* test athena 4

* test athena 5

* test athena 6

* test athena 7

* test athena 8

* test athena 9

* ??

* in one commit

* common?

* car and board

* -controls -board

* random-order

* no board

* revert

* car/tests

* least likely

* try

* try 2

* draft

* draft

* so much better

* cmt

* use randomly

* not needed here

* directly modify option works

* bb

* test time

* Revert "test time"

This reverts commit 2c5caabe2b470b47b7322e37800680b92773fccc.

* tmut

* i concur

* revert
old-commit-hash: ac83318ac4f54c46deef02c69d46c549bd741cb3
2023-12-09 14:28:32 -08:00
Shane Smiskol
f5d1c4f371 ruff: check newline (#30668)
* check newline

* nothing catches this
old-commit-hash: 97da129e11e58b07d5d136093827cd1c62311fea
2023-12-09 13:24:18 -08:00
Justin Newberry
0159b6394b ruff: ignore teleoprtc repo (#30627)
ignore it
old-commit-hash: 9dc8ecf722733d645e0a1492c7aff1e73908ab54
2023-12-06 15:33:17 -08:00
Kacper Rączy
d062a97a26 webrtcd: webrtc streaming server (audio/video/cereal) (#30186)
* WebRTCClient and WebRTCServer abstractions

* webrtc client implementation

* Interactive test scripts

* Send localDescriptions as offer/asnwer, as they are different

* Tracks need to be added after setting remote description for multi-cam streaming to work

* Remove WebRTCStreamingMetadata

* Wait for tracks

* Move stuff to separate files, rename some things

* Refactor everything, create WebRTCStreamBuilder for both offer and answers

* ta flight done time to grind

* wait for incoming tracks and channels

* Dummy track and frame reader track. Fix timing.

* dt based on camera type

* first trial of the new api

* Fix audio track

* methods for checking for incoming tracks

* Web migration part 2

* Fixes for stream api

* use rtc description for web.py

* experimental cereal proxy

* remove old code from bodyav

* fix is_started

* serialize session description

* fix audio

* messaging channel wrapper

* fix audiotrack

* h264 codec preference

* Add codec preference to tracks

* override sdp codecs

* add logging

* Move cli stuff to separate file

* slight cleanup

* Fix audio track

* create codec_mime inside force_codec function

* fix incoming media estimation

* move builders to __init__

* stream updates following builders

* Update example script

* web.py support for new builder

* web speaker fixes

* StreamingMediaInfo API

* Move things around

* should_add_data_channel rename

* is_connected_and_ready

* fix linter errors

* make cli executable

* remove dumb comments

* logging support

* fix parse_info_from_offer

* improve type annotations

* satisfy linters

* Support for waiting for disconnection

* Split device tracks into video/audio files. Move audio speaker to audio.py

* default dt for dummy video track

* Fix cli

* new speaker fixes

* Remove almost all functionality from web.py

* webrtcd

* continue refactoring web.py

* after handling joystick reset in controlsd with #30409, controls are not necessary anymore

* ping endpoint

* Update js files to at least support what worked previously

* Fixes after some tests on the body

* Streaming fixes

* Remove the use of WebRTCStreamBuilder. Subclass use is now required

* Add todo

* delete all streams on shutdown

* Replace lastPing with lastChannelMessageTime

* Update ping text only if rtc is still on

* That should affect the chart too

* Fix paths in web

* use protocol in SSLContext

* remove warnings since aiortc is not used directly anymore

* check if task is done in stop

* remove channel handler wrapper, since theres only one channel

* Move things around

* Moved webrtc abstractions to separate repository

* Moved webrtcd to tools/webrtc

* Update imports

* Add bodyrtc as dependency

* Add webrtcd to process_config

* Remove usage of DummyVideoStreamTrack

* Add main to webrtcd

* Move webrtcd to system

* Fix imports

* Move cereal proxy logic outside of runner

* Incoming proxy abstractions

* Add some tests

* Make it executable

* Fix process config

* Fix imports

* Additional tests. Add tests to pyproject.toml

* Update poetry lock

* New line

* Bump aiortc to 1.6.0

* Added teleoprtc_repo as submodule, and linked its source dir

* Add init file to webrtc module

* Handle aiortc warnings

* Ignore deprecation warnings

* Ignore resource warning too

* Ignore the warnings

* find free port for test_webrtcd

* Start process inside the test case

* random sleep test

* test 2

* Test endpoint function instead

* Update comment

* Add system/webrtc to release

* default arguments for body fields

* Add teleoprtc to release

* Bump teleoprtc

* Exclude teleoprtc from static analysis

* Use separate event loop for stream session tests
old-commit-hash: f058b5d64eed31878533a85f25eb53386ff9e330
2023-12-01 21:13:37 -08:00
Justin Newberry
52500d88fb Pytest: add cpp harness (#30471)
cpp harness
old-commit-hash: 8d3bf1f41a52825e43ce9542ee86dea4b32f9b6c
2023-11-22 13:45:49 -08:00
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: ba3067a560dca8d94ebf2c63b0d5fab7922c56e4
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: a5d99e0ebbfdad405ec86ca4907325926f3e0bfb
2023-11-15 10:16:51 -08:00
Kacper Rączy
7cac430ecc Remove laika submodule (#30453)
* Remove laika submodule

* Remove laika check for minimal builds

* Fix minimal build check

* Bring back exclude for opendbc in codespell

* Fix typo

* Copy GNSS indices from laika

* Delete laika dependencies
old-commit-hash: 2de13bea91d7c095491d9f3f21cb71d995c63bb4
2023-11-15 10:06:37 +01:00
Justin Newberry
337b156518 Pytest: load by group by default (#30466)
* wip

* use a class marker

* this one should be grouped too
old-commit-hash: 31c682d40743f4b102a70d72e6993b383d85a040
2023-11-14 17:33:47 -08:00
Justin Newberry
efaa3ea500 Pytest: default settings on PC improvements (#30441)
* always multithreaded

* multithreaded

* pkill correct process

* escape more

* load for interfaces
old-commit-hash: 2ad82cbfb064676401876a20e49e3965c40344a0
2023-11-13 10:45:24 -08:00
Justin Newberry
a0b0c1c4e7 CI: codecov for multiprocessing (#30432)
old-commit-hash: 26294173207cd5e3c586ca71a88fdd3a09fc7345
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: 863fdec50e6e222b4b50157c7fe2e254de3435bd
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: 1e91cf92a180f7093279d19e4a8694c353910d15
2023-11-09 15:19:10 -08:00
Justin Newberry
3027a428cb Pytest: tici mark for skipping on-device tests (#30412)
* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
old-commit-hash: aec7cea30d48dc8915eea38c86de7d4effa0548d
2023-11-07 17:35:44 -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: 61288dfe068e6127dcff64b8e7ac81844f7c31ff
2023-10-29 07:08:28 -10:00
Adeeb Shihadeh
58df021bd7 Update Python packages and pre-commit hooks (#30269)
* Update Python packages and pre-commit hooks

* fix pyqt

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 13bf8c26f35073cdadc7d3d5e38e06c776a362f1
2023-10-18 20:18:08 -07:00
Justin Newberry
5b16fda00c add random order plugin (#30166)
add random order
old-commit-hash: 2048808827bff61977465939297b9d5941e91cb7
2023-10-04 11:51:24 -07:00
Adeeb Shihadeh
a24af381f7 remove some python packages (#30135)
* less dependencies

* rm that

* add that back for now

* revert for now
old-commit-hash: 0694d3b8f6727a5a83cb52e978c7e3743eb928ab
2023-10-02 17:13:45 -07:00
Justin Newberry
07c27071a4 remove carla dependency (#30139)
* only docs and default

* remove carla dependency

* remove carla dependency
old-commit-hash: 3c55f76790a5663a62892581c9554391aebae1de
2023-10-02 16:11:56 -07:00
Justin Newberry
fb4e774a2e Update metadrive (#30128)
update metadrive
old-commit-hash: f32294772d15d5797f087c006601d2aa783e6088
2023-10-02 13:18:03 -07:00
Justin Newberry
eb33a751f6 Revert "run unit tests in a random order (#29799)" (#30116)
This reverts commit 36bcfb117d12049be554ec0f82684827fc99f68a.
old-commit-hash: 2dd13c60ccdd513821cad4570fe140c9749d06f3
2023-09-30 17:23:38 -07:00
Adeeb Shihadeh
f7d5a2b216 run unit tests in a random order (#29799)
* run unit tests in a random order by default

* bump panda

* fix startup

* re-add random order plugin

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: b483efe764c001454b0fe917ce0b1023bc08ab88
2023-09-30 15:56:23 -07:00
Kacper Rączy
fedd4a886d aarch64: onnxruntime (#30095)
base onnxruntime for aarch64
old-commit-hash: bfddcdaf891b76ac0eb1e7aa781ef07f80ceb85f
2023-09-28 22:32:21 -07:00