Commit Graph

117 Commits

Author SHA1 Message Date
commaci-public
6a9be01857 [bot] Update Python packages and pre-commit hooks (#32411)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-05-13 08:40:23 -07:00
commaci-public
3c32585a92 [bot] Update Python packages and pre-commit hooks (#32355)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-05-06 13:46:58 -07:00
commaci-public
fa7edadaa7 [bot] Update Python packages and pre-commit hooks (#32314)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
2024-04-29 09:10:03 -07:00
commaci-public
5d7b01bbe0 [bot] Update Python packages and pre-commit hooks (#32276)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <9648890+jnewb1@users.noreply.github.com>
2024-04-22 08:42:22 -07:00
Adeeb Shihadeh
16e0864f38 [bot] Update Python packages and pre-commit hooks (#32123)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-04-08 11:35:04 -07:00
Adeeb Shihadeh
b743e5cff5 [bot] Update Python packages and pre-commit hooks (#32071)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2024-04-01 10:03:26 -07:00
Adeeb Shihadeh
de8df59748 [bot] Update Python packages and pre-commit hooks (#31998)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-03-25 08:59:56 -07:00
Adeeb Shihadeh
881b38d061 [bot] Update Python packages and pre-commit hooks (#31906)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-03-18 09:56:37 -07:00
Adeeb Shihadeh
72cab4342f [bot] Update Python packages and pre-commit hooks (#31824)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-03-11 10:56:38 -07:00
Adeeb Shihadeh
a1fefabbca [bot] Update Python packages and pre-commit hooks (#31595)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-26 09:08:24 -08:00
Adeeb Shihadeh
96ce470b73 VSCode settings (#31582)
* base config

* add launch.json

* little more

* cleanup

* fix

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
2024-02-24 20:54:04 -08:00
Justin Newberry
c9c2ab9cc8 pre-commit: run ruff first (#31548)
move ruff up
2024-02-22 18:34:42 -08:00
Milan Medić
69fb3c2ed5 add Cython static analysis (#31491)
* Adding pre-commit hook for cython static analysis

* Adding changes to cython files to pass static analysis

* Revert "Adding changes to cython files to pass static analysis"

This reverts commit 9a0eb733199abd9eef1eac3d024ef2760348d67c.

* Adding ignore rule for indentation of 4 spaces (E111)

* Fixes for cython-lint static analysis

* Revert "Fixes for cython-lint static analysis"

This reverts commit 972741735b2bdc73460d65a4d7ea167dfc0f4644.

* Adding two new rules into ignore list (2 new lines after difinition of class)

* Adding fixes for cython static analysis
2024-02-19 12:11:56 -08:00
Adeeb Shihadeh
be4bbca9a3 [bot] Update Python packages and pre-commit hooks (#31508)
* Update Python packages and pre-commit hooks

* remove that

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
2024-02-19 10:45:10 -08:00
Adeeb Shihadeh
5f087010a9 [bot] Update Python packages and pre-commit hooks (#31413)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-12 09:34:15 -08:00
Adeeb Shihadeh
f0b591e345 [bot] Update Python packages and pre-commit hooks (#31300)
Update Python packages and pre-commit hooks

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-02-05 10:06:18 -08:00
Adeeb Shihadeh
eb04935b95 Update Python packages and pre-commit hooks (#31108)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-22 09:15:22 -08:00
Adeeb Shihadeh
74a2e3178f pre-commit: only check translations on update (#31102) 2024-01-21 16:40:12 -08:00
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>
2024-01-15 10:34:25 -08:00
Adeeb Shihadeh
6743487d78 Update Python packages and pre-commit hooks (#30939)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
2024-01-08 13:54:09 -08:00
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>
2024-01-05 15:17:49 -08:00
Adeeb Shihadeh
1f9970ba3d stricter file size limits (#30839)
* move all pics to lfs

* wav and rest of so

* more to lfs

* ignore a few

* push that up
2023-12-26 15:22:59 -08:00
Justin Newberry
3713e4d5ea add script to automatically format fingerprints file (#30792)
* Add script

* fix script

* fix script

* fix for subaddr

* run the script

* old style can fingerprints

* cleanup

* sort imports, make executable, fix path

* newline w/o newline

* match og can formatting

* match og formatting

* generate template once

* standard name

* less nested

* can fingerprints comments

* fix spacing

* no need for PLATFORM_TO_ENUM_NAME!

* prep for PRs

* comments for all, add honda comments

* Auto-generated fingerprint PR from fuzzy fingerprinting cars

* Revert "Auto-generated fingerprint PR from fuzzy fingerprinting cars"

This reverts commit 97bc9e3bdb9d819dcbe684ceba92ea702d40eaf0.

* even closer to original

* readd this comment

* and run script

* add to precommit

* add comments

* add comments

* add to release

* use for auto fingerprint

* disable precommit for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-20 11:18:29 -08:00
Kacper Rączy
f058b5d64e 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
2023-12-01 21:13:37 -08:00
Adeeb Shihadeh
eb3833037f Update Python packages and pre-commit hooks (#30529) 2023-11-26 09:31:20 -08:00
Adeeb Shihadeh
2a55ff4f55 Update Python packages and pre-commit hooks (#30509)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-21 11:50:35 -08:00
Logan Lasiter
5b2bcf6bf2 adding --local-partial-types mypy opt (#30491) 2023-11-18 22:47:11 -08:00
Kacper Rączy
2de13bea91 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
2023-11-15 10:06:37 +01:00
Adeeb Shihadeh
51207aaae2 Update Python packages and pre-commit hooks (#30463)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-14 15:18:42 -08:00
Adeeb Shihadeh
3c043ba570 Update Python packages and pre-commit hooks (#30403)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-11-07 10:58:01 -08:00
Adeeb Shihadeh
c04e019af4 Update Python packages and pre-commit hooks (#30352)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-31 11:31:57 -07:00
Adeeb Shihadeh
d3d51980bc Update Python packages and pre-commit hooks (#30321)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-24 11:25:39 -07:00
Adeeb Shihadeh
13bf8c26f3 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>
2023-10-18 20:18:08 -07:00
Adeeb Shihadeh
ac21dcbdcb Update Python packages and pre-commit hooks (#30215)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-10 10:37:54 -07:00
Adeeb Shihadeh
377722fd5e Update Python packages and pre-commit hooks (#30149)
* Update Python packages and pre-commit hooks

* fixes

* Update common/transformations/README.md

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-03 15:31:26 -07:00
Adeeb Shihadeh
2d5a2e3ab6 Update Python packages and pre-commit hooks (#30062)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-27 21:42:41 -07:00
Adeeb Shihadeh
425fa316d1 pre-commit: always check all file sizes (#30050)
* pre-commit: always check all file sizes

* fix release
2023-09-25 22:22:48 -07:00
Shane Smiskol
37422d0437 pre-commit: use non-deprecated lock file check command (#30003)
Update .pre-commit-config.yaml
2023-09-21 17:41:44 -07:00
Justin Newberry
1f8ceb4ca1 Simulator: fix port issues in devcontainer (#29977)
* fix sim devcontainer

* use host.docker.internal instead

* devcontainer supports jsonc
2023-09-20 16:34:29 -07:00
Adeeb Shihadeh
cd75dcb03f Update Python packages and pre-commit hooks (#29974)
* Update Python packages and pre-commit hooks

* fix linter

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-19 16:24:58 -07:00
Adeeb Shihadeh
ac2d052512 Update Python packages and pre-commit hooks (#29891)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-12 13:12:55 -07:00
Justin Newberry
d3c5ac5545 Precommit: do a sanity check on github workflows (#29790)
* sanity check on github actions

* That one doesn’t apply to us
2023-09-06 10:40:52 -07:00
Justin Newberry
4e69937d0d Precommit: ensure executable bit is set (#29784)
* precommit ensure executable

* exclude tinygrad

* bump submodules

* exclude tinygrad globally
2023-09-05 16:33:26 -07:00
Adeeb Shihadeh
e0eb4d726c Update Python packages and pre-commit hooks (#29774)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-09-05 20:02:21 +01:00
Adeeb Shihadeh
9719b22761 Update Python packages and pre-commit hooks (#29739)
* Update Python packages and pre-commit hooks

* fix linter

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-31 15:00:13 -07:00
Dean Lee
7bfd3dac81 cpplint: add filter whitespace/comma (#29595) 2023-08-24 10:42:06 -07:00
Dean Lee
9c7bf50703 cpplint: add filter whitespace/tab (#29588) 2023-08-24 08:06:58 -07:00
Dean Lee
21da5a216f cpplint: add filter build/include_subdir (#29585) 2023-08-24 15:42:17 +01:00
Dean Lee
ac93902983 cpplint: add filter whitespace/forcolon (#29582)
whitespace/forcolon
2023-08-23 22:46:02 -07:00
Dean Lee
f203648de0 cpplint: add filter whitespace/semicolon (#29568) 2023-08-23 15:00:30 -07:00