Commit Graph

459 Commits

Author SHA1 Message Date
Justin Newberry
62c1e65924 Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
2023-08-11 15:33:49 -07:00
Justin Newberry
8793cbff40 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
2023-08-10 18:58:22 -07:00
Justin Newberry
4a9afd7554 Ruff: comprehensions conventions (#29317)
ignore c408
2023-08-10 16:40:30 -07:00
Justin Newberry
af3ed37c5c Ruff: flake8 pie (misc lints) (#29318)
flake8 pie
2023-08-10 15:28:51 -07:00
Adeeb Shihadeh
670fa9af5f pytest unit test running (#29261)
* setup config

* collect passes

* pytest system/ works
2023-08-10 08:23:19 -07:00
Adeeb Shihadeh
44c76257a1 rm some old tests 2023-08-09 22:31:47 -07:00
Justin Newberry
7fdd9fc37c 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
2023-08-09 13:26:54 -07:00
Justin Newberry
cf64b27168 Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
2023-08-08 17:13:35 -07:00
Justin Newberry
a91764954b Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit cb31a53d8a.
2023-08-08 14:24:04 -07:00
Justin Newberry
cb31a53d8a CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
2023-08-08 13:41:30 -07:00
Dean Lee
8076107b4f camerad: auto free the buffer when it goes out of scope (#28807) 2023-08-08 13:26:04 -07:00
Adeeb Shihadeh
e3ca9f3e85 tici: reset panda state in amp test setup (#29237) 2023-08-04 15:07:01 -07:00
Adeeb Shihadeh
42e106dd47 rawgpsd: accept alt assistance file (#29202)
Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 13:38:08 -07:00
Adeeb Shihadeh
39ce23420c pre-commit: autoupdate hooks (#29198)
* Update pre-commit hook versions

* fix

* bump submodules

* one more

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-01 12:32:21 -07:00
Adeeb Shihadeh
f310d501f4 rawgpsd: better download proc cleanup (#29199)
* rawgpsd: better download proc cleanup

* more

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 12:31:04 -07:00
Dean Lee
940954c13e swaglog: enable type-checked against format string (#29096)
* check&fix fmt

* bump rednose

* correct format string

* bump rednose

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-31 17:49:50 -07:00
Maxime Desroches
eec99436c1 hardware: move gpio_export (#29154) 2023-07-26 15:12:01 -07:00
Adeeb Shihadeh
67ef6dd844 tici: add siren gpio 2023-07-26 11:35:11 -07:00
Adeeb Shihadeh
ed07c3ceda tici: better cleanup in amp test (#29146) 2023-07-25 21:41:31 -07:00
Mitchell Goff
f0ae0c34cd Added python VisionBuf class (#29075)
* Added python VisionBuf class

* fixed property names

* Bump cereal
2023-07-25 01:08:39 -07:00
Adeeb Shihadeh
14001be605 rawgpsd: retry injecting assistance data (#29115)
* rawgpsd: retry injecting assistance data

* sleep a bit

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 22:10:36 -07:00
Adeeb Shihadeh
9113816e1d rawgpsd: fix double setup (#29108)
* rawgpsd: fix double setup

* speedup test

* update that one

* minimal diff

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 15:59:26 -07:00
Adeeb Shihadeh
5fb2f7072b rawgpsd: speedup tests (#29110)
* rawgpsd: speedup tests

* fix that one

* little more

* prevent subtle bugs

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 15:38:47 -07:00
Dean Lee
c0c00e1997 loggerd: check userFlag outside the while loop (#29095)
* improve check userFlag

* rename to ServiceState

* setxattr once
2023-07-23 12:33:06 -07:00
Adeeb Shihadeh
d92c9aef23 tici: speedup power save setting (#29100)
* speedup

* update type

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-22 17:15:58 -07:00
Adeeb Shihadeh
1945c356c2 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>
2023-07-20 21:56:57 -07:00
Cameron Clough
98a30f10f4 deleter: preserve flagged segments (#28814) 2023-07-20 21:30:26 +01:00
Dean Lee
269ceca27a common/swaglog: remove trailing semicolon from macros (#29042) 2023-07-19 19:46:42 -07:00
Harald Schäfer
9054590c95 Rawgpsd: retry even more on setup (#29045) 2023-07-19 18:54:27 -07:00
Vivek Aithal
f7471f9108 [Qcom GPS] BearingAccuracyDeg should not be 0 when inaccurate (#28989)
change bearingAccuracyDeg from 0 to 180 deg, when invalid
2023-07-18 11:21:11 -07:00
Harald Schäfer
601d133bba qcom gps: Always pull in thread (#28951)
* Laikad: cleanup zmq cloudlog warnings

* Handle in cloudlog

* whitespace

* whitespace

* Always pull in thread

* Stop downloading when you have fix

* check if exist

* Atomic move after download

* Increase wait

* merge
2023-07-17 23:58:57 -07:00
Harald Schäfer
8f3037c956 Cloudlog: cleanup zmq cloudlog warnings (#28896)
* Laikad: cleanup zmq cloudlog warnings

* Handle in cloudlog

* whitespace

* whitespace

* suppress before reconnecting in thread
2023-07-17 23:06:13 -07:00
Dean Lee
65fe3c8c34 encoder: remove function publisher_init, init PubMaster in constructor (#28980) 2023-07-17 19:25:41 -07:00
Cameron Clough
f14447ad66 loggerd: fix whitespace and indentation 2023-07-17 22:55:20 +01:00
Adeeb Shihadeh
e2b5d1e29a mapsd: rendering tests (#28981)
* mapsd: rendering tests

* run

* speedup
2023-07-16 14:39:34 -07:00
Dean Lee
06aef9edd3 encoder: remove public function encoder_init (#28971) 2023-07-15 23:57:44 -07:00
Dean Lee
cbed057789 encoderd: get avaiable streams from vipc server (#28935)
* get avaiable streams

* use std::thread

* assert buf size

* Update system/loggerd/encoderd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-15 12:41:49 -07:00
Dean Lee
713d2ec586 loggerd/encoder: refactor constructors to take EncoderInfo as parameter (#28921)
* refactor constructors to take EncoderInfo as parameter

* remove last arg codec

* use macro to init function pointers
2023-07-15 10:39:40 -07:00
Harald Schäfer
966c5f476a Qcom gps: retry logs setup (#28952) 2023-07-15 10:31:30 -07:00
Cameron Clough
5d45d1fadc loggerd: add types to tests and use pathlib (#28943) 2023-07-14 15:12:11 +01:00
Harald Schäfer
c8965b0e60 Qcom gps: retry assistance (#28723)
* Retry assistance

* rm whitespace

* Only inject when it's there

* will be rmd anyway

* Update test

* Actually disable internet in test

* Fix tests

* cleanup test

* fix tests more

* add late assist test

* use process

* Dont double clear

* ignore

* Small improvements

* Make tests

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-13 14:52:47 -07:00
Harald Schäfer
80eff1b6ce Rawgpsd: cleanup init (#28890)
* Rawgpsd: cleanup init

* back to default

* Fix injection time check

* add quotes

* change to 12 hrs

* Fixes
2023-07-11 23:05:25 -07:00
Dean Lee
f1a1456f27 logger: use reference in range based loop (#28894) 2023-07-11 19:28:50 -07:00
Harald Schäfer
47ee0932db Qcom rawgps: Timestamp svpolys (#28738)
* Timestamp svpolys

* leap seconds handled fine

* Fix error

* bump laika

* Update test route

* update ref
2023-07-11 13:22:09 -07:00
Harald Schäfer
221cd0ab09 Laikad: fix qcom report collection (#28879)
* Make report aggregation variable

* Add laikad test now it passes

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-11 01:25:49 -07:00
Harald Schäfer
771e410262 Test rawgpsd: Make sure we get fix (#28875)
* Add fix test

* Add laika to test

* Add fix test

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-11 00:51:26 -07:00
Adeeb Shihadeh
f2bbb33a8a rawgpsd: bring back SUPL config (#28858) 2023-07-10 13:26:50 -07:00
Robbe Derks
c0e88991b0 Increase expected sensor frequency for LSM6DS3 (#28863)
expected freq of lsm accel/gyro is 104Hz
2023-07-10 16:21:13 +02:00
ntegan1
0ddecd36cf v4l_encoder: enable hevc vui header timing info flag (#27156)
v4l_encoder: enable hevc vui timing info flag

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-09 20:38:30 +01:00
Cameron Clough
62ae247417 update modem script (#28793) 2023-07-03 18:21:31 +02:00