Commit Graph

94 Commits

Author SHA1 Message Date
Adeeb Shihadeh
853febe21d visionipc: remove RGB support (#33739)
* visionipc: remove RGB support

* bump

* msgq master

* fix sim
2024-10-07 13:24:57 -07:00
Shane Smiskol
66ec788005 Test all of selfdrive/ (#33575)
* test selfdrived!

* exit() is for interactive sessions

* fix

* comments

* more

* test all of selfdrive/

* ignore what we used to

* fix test_alerts

* fix test_alertmanager.py
2024-10-03 23:39:13 -07:00
Kacper Rączy
b2791a8e07 process_replay: in-place modification for message migration (#33695)
* Inplace modification of lr

* Replace the original function

* Add comment

* Change the return type

* Fix carParams retrieval

* Remove the newline

* Include carState migration

* Remove TODO

* Comment

* List instead of gen

* Fix deletion

* Delete camera state if not valid

* Update ref commit

* Remove sorting at the end

* Use migrate_all in ui report

* Allow more control in what to migrate

* Add type annotations

* Static analysis

* Improve type annot

* Fix linter issues

* Remove f-string

* Migrate carState too in test_ui

* Fix peripheralState migration

* Sort at the end

* Fix regen issue

* Fix comments
2024-10-02 20:47:16 -07:00
Dean Lee
6dfc154c59 ci: add OVERRIDE and DISENGAGED state to ui report (#33639)
add state
2024-09-24 10:15:01 -07:00
Dean Lee
fc8762ab51 ci: fix ui report issues (#33585)
* fix ui report issues

* fix indentation

* Update selfdrive/ui/tests/test_ui/run.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-09-18 22:53:47 -07:00
Dean Lee
45b887a08e ci: add toggles to ui report (#33577)
add toggles
2024-09-17 21:04:08 -07:00
Dean Lee
782d959b4c CI: continuously send messages to keep them active during alert screenshots (#33544)
keep alive
2024-09-16 15:47:15 -07:00
Maxime Desroches
f1331ae9bc ci: make ui preview more deterministic (#33526)
set ping time
2024-09-09 14:35:40 -07:00
Maxime Desroches
838746c831 ui preview: keyboard (#33520)
keyboard
2024-09-09 10:35:22 -07:00
Dean Lee
870214c909 ci: add a 0.5-second delay before taking screenshots of the onroad widgets (#33504)
Add a 0.5-second delay before taking screenshots of the onroad widgets
2024-09-07 09:27:44 -07:00
Adeeb Shihadeh
e04455cbaa selfdrived: controlsd only does controls (#33485)
* selfdrived

* process replay

* lil more

* set the valids

* rename that
2024-09-06 17:16:32 -07:00
Dean Lee
c45e2731ae CI: integrate pairing device and prime user widgets into UI report (#33486)
add prime widgets
2024-09-06 13:38:38 -07:00
Adeeb Shihadeh
f6d5f8fccf ui: controls -> selfdrive (#33487)
* ui: controls -> selfdrive

* lil more
2024-09-06 11:40:06 -07:00
Dean Lee
e0be4a1f85 ci: eliminate unnecessary sleep to shorten UI report run time (#33462)
reduce sleep
2024-09-05 16:24:25 -07:00
Adeeb Shihadeh
53288d4dbf Move vCruise to card (#33439)
* Move vCruise to card

* cleanup drive_helpers

* works in sim

* update refs

* update that

* too slow :(
old-commit-hash: 2f3256ed8baa3d7a5c4d1befe9148dbfecb37246
2024-09-02 17:18:43 -07:00
Alexandre Nobuharu Sato
351d7bf16e Fix small typos on run.py (#33434)
old-commit-hash: 352d0b6c0ca9a10f319fc64f288b786c467b8798
2024-09-01 20:38:59 -07:00
Dean Lee
9cd2bcbb39 ci: add body to ui report (#33429)
add body
old-commit-hash: fefb0330d65db56092a6251035f1d012b9efae19
2024-09-01 10:40:41 -07:00
Dean Lee
e318ca0948 ci: integrate offroad alerts and update notifications to ui report (#33408)
add offroad alerts
old-commit-hash: db9263d064502000642931742e08a748e586e760
2024-09-01 09:57:00 -07:00
Dean Lee
9785c6b62b ci: display lead car indicator in on-road screenshots (#33416)
Show lead car in on-road screenshots
old-commit-hash: 100ca65b39
2024-08-31 22:57:45 -07:00
Dean Lee
78fe867ccd ci: add controlsState back to ui report (#33424)
add controlsState back
old-commit-hash: ff4cce2677
2024-08-31 20:38:15 -07:00
Adeeb Shihadeh
1b2bc44227 controlsd: split out state/alerts into selfdriveState (#33421)
* setup selfdriveState

* little more

* update refs

* migration

* all too slow
old-commit-hash: 87051803ab
2024-08-31 18:48:17 -07:00
Dean Lee
574b94c171 ci: add driver camera to ui report (#33409)
add driver camera
old-commit-hash: 338b69be11
2024-08-30 19:51:18 -07:00
Alexandre Nobuharu Sato
9f1d49ef32 small typo on run.py (#33413)
old-commit-hash: a51b83b4d8
2024-08-30 16:39:14 -07:00
Dean Lee
1af4686ea0 ui: fix Incorrect path in .gitignore for test_ui/report (#33403)
fix gitignore
old-commit-hash: 5bfad23442
2024-08-29 12:48:46 -07:00
Dean Lee
c51889b05e ui: remove deprecated Qt ui_snapshot (#33402)
remove ui_snapshot
old-commit-hash: ac5cd06a3a
2024-08-29 12:24:21 -07:00
Dean Lee
5cdd421db1 ci: add cameras to ui reports (#33401)
add cameras
old-commit-hash: db5c0419ce
2024-08-29 12:11:51 -07:00
Dean Lee
d21917ffb3 ci: add all onroad hud elements to ui report (#33395)
* add model

* merge master

* make static analysis happy
old-commit-hash: 341e7a4384
2024-08-28 14:00:01 -07:00
Dean Lee
3e37261209 ci: add onroad alerts to ui report (#33394)
* add onroad alerts to ui report

* print
old-commit-hash: 5fe1f5fa87
2024-08-28 11:13:05 -07:00
Kacper Rączy
e66855c54d ui: remove GPS status from the sidebar (#33304)
* Remove usage of llk in ui

* Remove GPS from sidebar

* Remove it from test
old-commit-hash: c61d504516
2024-08-14 15:52:47 -07:00
Maxime Desroches
c551f1d239 fix bash + python3 shebangs (#33287)
fix shebangs
old-commit-hash: 1dcd660815
2024-08-13 21:22:13 -07:00
Shane Smiskol
988d16a4c8 remove map from ui preview (#33265)
* rm map from ui preview

* fix
old-commit-hash: 4e122ed2d1
2024-08-11 21:54:40 -07:00
Maxime Desroches
144e9e271c remove cv2 usage (#33101)
remove cv2
old-commit-hash: 583e89d3a4
2024-07-28 15:08:27 -07:00
Mauricio Alvarez Leon
42cee115ad CI: test the tests (#32869)
old-commit-hash: 0fecfd6c45
2024-07-03 15:27:29 -07:00
Dean Lee
f35fcbc050 ui: remove tests/playsound.cc (#32870)
remove playsound.cc
old-commit-hash: a312a102aa
2024-06-30 09:46:21 -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: e71ec4e8d7
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: c59887c810
2024-06-03 15:48:56 -07:00
cl0cks4fe
6d3a8c09e0 remove unittest dependency from test_ui (#32432)
old-commit-hash: 173d966444
2024-05-17 20:54:08 -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
thenhnn
77d6d1a8f1 PlatformConfig: automatically get platform_str from the enum name (#31868)
* get platform_str from the enum name

* fix tests

* add migration table

* remove impossible todo

* Add link to PR in MIGRATION table

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

* Remove useless brand name comments and rename RAM_1500 to RAM_1500_5TH_GEN

* rename RAM_HD to RAM_HD_5TH_GEN

* rename references to RAM_HD and RAM_1500

* change "mock" to "MOCK" and rename torque data of Nissan Leaf 2018 IC

* remove MOCK from fingerprints.py

* change hard-coded car model in test_can_fingerprint.py/test_timing

* migration

* update ref

* space

* prius

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: justin newberry <justin@comma.ai>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 489528dcae
2024-03-19 11:16:02 -07:00
Adeeb Shihadeh
da31ce154a refactor camera transformations (#31818)
* refactor camera transormations

* update users

* more stuff

* more fix

* swap

* tici

* lil shorter
old-commit-hash: e3589e4b5c
2024-03-10 16:56:50 -07:00
Cameron Clough
9bd90112d0 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae49
2024-02-24 16:41:23 -08:00
Justin Newberry
05204fbde3 Create message mocking tools (#31249)
* add mocking tools

* fix map renderer

* use for power draw

* fix those

* whitespace

* rename to services

* fix the rate

* remove
old-commit-hash: 086c509fde
2024-01-31 18:47:49 -08:00
Justin Newberry
d9a324dc92 CI: generate test_ui report (#31151)
* add test

* simpler

* simpler

* false

* move these here

* faster

* map takes logner to render
old-commit-hash: faf99ba711
2024-01-25 16:49:38 -08:00
Justin Newberry
89e0ad2902 test_ui: add onroad state (#31148)
add onroad
old-commit-hash: 3676ae4da3
2024-01-24 16:51:06 -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
Shane Smiskol
f9db24d9d4 pre-commit: speed up translation step (#30966)
* formatting

fix

* fix missing class attr warning

* add translation_files option, remove pluralonly, type hint

* updates

* update
old-commit-hash: bef6d7f0bb
2024-01-11 00:39:15 -08:00
royjr
f82d7f453f multilang: parameterize unit tests (#30842)
* init

* fix indents

* remove import

* safer

* TemporaryDirectory

* much cleaner

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9d7f618bc5
2024-01-01 14:54:16 -08:00
royjr
b2112b81af multilang: bad language translation check (#30783)
* compare bad against list

* use web

* Update test_translations.py

* uncomment

* override

* wrap

* AssertionError

* better

* detent

* selfish

* check numerusforms

* already checked

* use name

* not again

* combined

* sets

* assume available

* fix assume

* check regardless of other tests

* assert not print

* raise for status

* better

* done

* useless

* happy ruff

* better set

* quiet

* clean

* obvious

* clearer

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

* IGNORED_WORDS

* assert match

* direct assert

* show bad word

* fix numerous empty string checks

* fix IGNORED_WORDS

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd88990006
2023-12-31 10:58:15 -08:00
Justin Newberry
817161f3ac Soundd: move to python (#30567)
soundd python
old-commit-hash: abe39e5076
2023-12-05 18:10:01 -08:00
royjr
ea3352af59 ui: better Arabic translations (#30004)
* initial

* fix additional tag

* fix missing semicolon

* fix missing semicolon

* fix missing whitespace/punctuation

* dont translate

* fix deleted source

* mark missing as unfinished

* needs to be fixed

* typo

* dont translate

* translate wifi

* dont translate sidebar

* missing space

* dont translate

* these are good

* missing

* fix unfinished

* more fixes

* fix typo

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

* dont translate

* fix vanished translation

* add test_entities_error test

* fix entity

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

* dont translate comma prime

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: e156ab41ad
2023-09-30 15:37:07 -07:00