Commit Graph

135 Commits

Author SHA1 Message Date
commaci-public
039d41fbaf [bot] Update Python packages and pre-commit hooks (#33037)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 27faa8f82b67989dc099b39483d2c8dbd3b05676
2024-07-22 10:10:39 -07:00
Shane Smiskol
e8c4fb0177 Reapply "selfdrive/car: ban imports from external modules" (#32993) (#32994)
* Reapply "selfdrive/car: ban imports from external modules" (#32993)

This reverts commit 626d78ec548fe19acfdf3c2c3e063fac3b257dc6.

* controls will just use controls

* also these

* ignore
old-commit-hash: d684d8f0f6900d80a2a1618099b0b8e19e6492a2
2024-07-15 11:59:25 -07:00
Shane Smiskol
a878118b00 Revert "selfdrive/car: ban imports from external modules" (#32993)
Revert "selfdrive/car: ban imports from external modules (#32973)"

This reverts commit c1e8ff2dbc47ccb07fb41a4e88bfb66af2669254.
old-commit-hash: 35a4a773f1ff6c7b171b7acdb2fd4a65279edebd
2024-07-15 11:14:04 -07:00
Dean Lee
58df39a2ba selfdrive/car: ban imports from external modules (#32973)
* lint import

* Update selfdrive/car/__init__.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 83d4623590f87dcb7df2b458a8814d5ad6ea711b
2024-07-15 11:12:24 -07:00
commaci-public
daf3d15d72 [bot] Update Python packages and pre-commit hooks (#32990)
* Update Python packages and pre-commit hooks

* fix ruff

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: dd2787b7a1f2ebb6f71eb3a667848db6caa9963c
2024-07-15 17:29:57 +00:00
commaci-public
dda0de4866 [bot] Update Python packages and pre-commit hooks (#32931)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 012eb07466ba7242a611dd57699fbbd1dd5f1d07
2024-07-08 19:10:53 +00:00
commaci-public
e7ccd98e76 [bot] Update Python packages and pre-commit hooks (#32906)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 3dc08fb679a3aac4a3ea89e47d8ba2eed7d38e2d
2024-07-05 17:26:44 +00:00
Maxime Desroches
a1a0e9e8a0 switch to uv (#32853)
* switch to uv

* pin back numpy

* remove lock

* try without cache

* test with no cache

* no cache for all

* debug

* remove debug

* remove pygame dep

* Update README.md

* remove lower bound

* update repo maintenance job

* upgradable

* repo maintenance

* copy poetry api

* build system

* unpin pygame

* readd cache

* readd cache

* basic command

* lower delay

* macos

* fix authors

* macos fix

* use uv

* preview

* other way

* new metadrive

* uv sync

* cp lock in docker

* fix docker

* use hatchling

* fix devcontainer

* fix container

* path

* uv run

* cleanup

* pre-commit

* format

* release_file
old-commit-hash: 12d5afba731b193b6992304c9e31b87603602ae6
2024-06-28 00:04:05 +00:00
Shane Smiskol
6cd2b2fb78 ruff: check shadowed variables (#32851)
* check shadowed variables

* fix
old-commit-hash: 69d4b0fdf0ff2856b7a2785d8210f42d654374da
2024-06-27 14:44:26 -07:00
commaci-public
8df7b4a20a [bot] Update Python packages and pre-commit hooks (#32818)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: 1de7126d343b6a05b5cf2883b6679993cc53412e
2024-06-24 07:34:06 -07:00
Maxime Desroches
1b836bdb86 Ubuntu 24.04 (#32624)
* noble build

* workflow

* symlink

* map only for noble

* sym

* add qt to cppcheck

* cppcheck noreturn in non void funct

* get kaitai header

* kaitai header

* syntax

* try new pyopencl

* try this version

* install lsb-core manually

* support old 20.04 lsb-core

* try arm

* try latest pyopencl

* revert

* use pocl icd

* no lock

* no arm pyopencl

* new intel opencl runtime

* pin filelock

* undo

* glsl version

* new version

* build test

* remove test

* new metadrive

* remove glsl restrictions

* <optional>

* Update .github/workflows/tools_tests.yaml

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

* cache

* new cache

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5c4ea14a3cb7bcb443fbee8c5b1d52c10788c9e8
2024-06-18 03:30:32 +00:00
commaci-public
359ca9883f [bot] Update Python packages and pre-commit hooks (#32770)
Update Python packages and pre-commit hooks

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: b99fe718ecfbc6044cb5fa53f34e077b9d9a2a4f
2024-06-17 09:26:22 -07:00
commaci-public
0ee93c6a90 [bot] Update Python packages and pre-commit hooks (#32682)
* Update Python packages and pre-commit hooks

* fix linter

* poetry lock

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 71063d66cd526bf1e498618e1aec3440736ab5b7
2024-06-10 17:19:01 -07:00
Harald Schäfer
f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7e39a56235f590227e7cb361cd8b79d
2024-06-06 14:31:56 -07:00
Adeeb Shihadeh
86b6103657 test_*.py files are no longer executable (#32610)
* test_*.py files are no longer executable

* cleanup empty lines

* update precommit

* fixme

* enable

* build
old-commit-hash: c59887c8109dd8d33ea2e7169995184fbe38cc3a
2024-06-03 15:48:56 -07:00
Adeeb Shihadeh
6dc8eecee7 Make release files a blacklist (#32540)
* blacklist

* little nicer

* whitelist

* cleanup

* igore body

* more skip
old-commit-hash: fe7d3429abd85c120f0205093149eb9eabc81cb1
2024-05-25 18:47:16 -07:00
Adeeb Shihadeh
d9c8f22082 fix pre-commit warning
old-commit-hash: af991b143ae4b89a15217cee77fcf8e93ec2508f
2024-05-20 16:46:34 -07:00
Adeeb Shihadeh
c61ed86e93 cleanup old ignore paths
old-commit-hash: 332542fad842a4d12ef289c89d5e8a8709c3c7a7
2024-05-20 16:01:17 -07:00
commaci-public
6281b1da26 [bot] Update Python packages and pre-commit hooks (#32411)
Update Python packages and pre-commit hooks

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

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

Co-authored-by: Vehicle Researcher <user@comma.ai>
old-commit-hash: fa7edadaa7113387bd107aab568f23176975c3a3
2024-04-29 09:10:03 -07:00
commaci-public
1e945bbd98 [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>
old-commit-hash: 5d7b01bbe0eaecce2e81df4e819b7933d72cc427
2024-04-22 08:42:22 -07:00
Adeeb Shihadeh
be4581a027 [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>
old-commit-hash: 16e0864f3808ca4ef0e05873c42705cf0d5dd60c
2024-04-08 11:35:04 -07:00
Adeeb Shihadeh
f545575bf9 [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>
old-commit-hash: b743e5cff588b8d80aa18758bdeb0e13c1f3e874
2024-04-01 10:03:26 -07:00
Adeeb Shihadeh
0095ed059f [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>
old-commit-hash: de8df59748505799aceb8c822697c93c59b0922e
2024-03-25 08:59:56 -07:00
Adeeb Shihadeh
b0349d9c40 [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>
old-commit-hash: 881b38d061e6ae516a6069e216725a228591ddf6
2024-03-18 09:56:37 -07:00
Adeeb Shihadeh
7b03aaea80 [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>
old-commit-hash: 72cab4342f447b96ab006b40fd7b4d41b48050e2
2024-03-11 10:56:38 -07:00
Adeeb Shihadeh
50a34d5ac6 [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>
old-commit-hash: a1fefabbca852923dee83b5ee58c748ce861cdad
2024-02-26 09:08:24 -08:00
Adeeb Shihadeh
67d357baa5 VSCode settings (#31582)
* base config

* add launch.json

* little more

* cleanup

* fix

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 96ce470b7356a5dc3ca2e02aa6fc8d08646faf78
2024-02-24 20:54:04 -08:00
Justin Newberry
1219678ef1 pre-commit: run ruff first (#31548)
move ruff up
old-commit-hash: c9c2ab9cc858bc2bc1ce16a3f4b04545582fcb1d
2024-02-22 18:34:42 -08:00
Milan Medić
284450400e 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
old-commit-hash: 69fb3c2ed5b41858545461466004339325e413a1
2024-02-19 12:11:56 -08:00
Adeeb Shihadeh
c925fd2d89 [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>
old-commit-hash: be4bbca9a32f3bd3f65eaf26f4f5b65d2fc14608
2024-02-19 10:45:10 -08:00
Adeeb Shihadeh
548ec4c545 [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>
old-commit-hash: 5f087010a9898443628f848bcce7cd7f20bdcdc1
2024-02-12 09:34:15 -08:00
Adeeb Shihadeh
9205780c13 [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>
old-commit-hash: f0b591e345f6523c6c0534a90df192e5d10a7eb4
2024-02-05 10:06:18 -08:00
Adeeb Shihadeh
1795861884 Update Python packages and pre-commit hooks (#31108)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: eb04935b95e424b0cad526c0067542401e64c892
2024-01-22 09:15:22 -08:00
Adeeb Shihadeh
53a379c341 pre-commit: only check translations on update (#31102)
old-commit-hash: 74a2e3178fb16fe498a84147c14732e6fa3f7417
2024-01-21 16:40:12 -08:00
Adeeb Shihadeh
e9e1d4559b 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>
old-commit-hash: a8afaf39d4d8c1b1b2b4070441d05aed14f982f5
2024-01-15 10:34:25 -08:00
Adeeb Shihadeh
8b1a12644e Update Python packages and pre-commit hooks (#30939)
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: 6743487d78f607b482a498518472b1e6c55d159f
2024-01-08 13:54:09 -08:00
Adeeb Shihadeh
8d11c3b742 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>
old-commit-hash: 46f3fdc090cef3b4b1b8bb4938ad68e1ca7cb280
2024-01-05 15:17:49 -08:00
Adeeb Shihadeh
e25712ddd2 stricter file size limits (#30839)
* move all pics to lfs

* wav and rest of so

* more to lfs

* ignore a few

* push that up
old-commit-hash: 1f9970ba3db588301f97716fa5f1e891e2324f38
2023-12-26 15:22:59 -08:00
Justin Newberry
611e3fe8e7 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>
old-commit-hash: 3713e4d5eaed783738ea8ecdbd3b7e6abaa974c0
2023-12-20 11:18:29 -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
Adeeb Shihadeh
623ce34558 Update Python packages and pre-commit hooks (#30529)
old-commit-hash: eb3833037f8389fb7b86efa0a4205e89ca4a3194
2023-11-26 09:31:20 -08:00
Adeeb Shihadeh
872b9cc6e9 Update Python packages and pre-commit hooks (#30509)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 2a55ff4f5534dfb48a524cfb11f947a67b975817
2023-11-21 11:50:35 -08:00
Logan Lasiter
4f1ed42285 adding --local-partial-types mypy opt (#30491)
old-commit-hash: 5b2bcf6bf220f88e11978e04a77226127b520efb
2023-11-18 22:47:11 -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
Adeeb Shihadeh
d7ed164459 Update Python packages and pre-commit hooks (#30463)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 51207aaae250f76af6d32c4a5105309bf8ad5fe3
2023-11-14 15:18:42 -08:00
Adeeb Shihadeh
1963c5969a Update Python packages and pre-commit hooks (#30403)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 3c043ba57008ffc053b896d7e7e9a090aaf138ea
2023-11-07 10:58:01 -08:00
Adeeb Shihadeh
5904226de2 Update Python packages and pre-commit hooks (#30352)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: c04e019af4e3789541493083391ef88cc4b702d2
2023-10-31 11:31:57 -07:00
Adeeb Shihadeh
82a3db0f94 Update Python packages and pre-commit hooks (#30321)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: d3d51980bc38b0df4a66e0dd8639f76801b68c9a
2023-10-24 11:25:39 -07:00