rav4kumar
6f9401d902
Merge remote-tracking branch 'comma/master' into sync-20240706
2024-07-06 22:18:32 -04:00
Mauricio Alvarez Leon
0fecfd6c45
CI: test the tests ( #32869 )
2024-07-03 15:27:29 -07:00
Dean Lee
a312a102aa
ui: remove tests/playsound.cc ( #32870 )
...
remove playsound.cc
2024-06-30 09:46:21 -07:00
Jason Wen
9e63be9ba2
Sync: commaai/opendbc:master into sunnypilot/opendbc:master
...
Sync: `commaai/panda:master` into `sunnypilot/panda:master`
2024-06-12 21:09:05 -04:00
Jason Wen
1ffc59f65a
Merge branch 'upstream/openpilot/master' into sync-20240608
...
# Conflicts:
# cereal
# opendbc
# panda
# release/files_common
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/ui/translations/main_zh-CHS.ts
# selfdrive/ui/translations/main_zh-CHT.ts
2024-06-08 23:08:33 -04:00
Harald Schäfer
e71ec4e8d7
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
2024-06-06 14:31:56 -07:00
Adeeb Shihadeh
c59887c810
test_*.py files are no longer executable ( #32610 )
...
* test_*.py files are no longer executable
* cleanup empty lines
* update precommit
* fixme
* enable
* build
2024-06-03 15:48:56 -07:00
cl0cks4fe
173d966444
remove unittest dependency from test_ui ( #32432 )
2024-05-17 20:54:08 -07:00
cl0cks4fe
dd9d5d4528
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 >
2024-05-17 11:01:44 -07:00
Jason Wen
abb18380a1
Merge branch 'upstream/openpilot/master' into sync-20240502
...
# Conflicts:
# cereal
# common/params.cc
# opendbc
# panda
# selfdrive/car/chrysler/carcontroller.py
# selfdrive/car/honda/carstate.py
# selfdrive/car/honda/fingerprints.py
# selfdrive/car/honda/hondacan.py
# selfdrive/car/honda/interface.py
# selfdrive/car/honda/values.py
# selfdrive/car/hyundai/carcontroller.py
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/car/hyundai/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/subaru/carstate.py
# selfdrive/car/subaru/interface.py
# selfdrive/car/torque_data/override.toml
# selfdrive/car/torque_data/params.toml
# selfdrive/car/toyota/carcontroller.py
# selfdrive/car/toyota/carstate.py
# selfdrive/car/toyota/interface.py
# selfdrive/car/toyota/toyotacan.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/modeld/modeld.py
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/ui/qt/onroad/annotated_camera.cc
Revert "remove STM32F2 sources (#1873 )"
This reverts commit 7bfba5ef
2024-05-04 23:49:28 -04:00
thenhnn
489528dcae
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 >
2024-03-19 11:16:02 -07:00
Adeeb Shihadeh
e3589e4b5c
refactor camera transformations ( #31818 )
...
* refactor camera transormations
* update users
* more stuff
* more fix
* swap
* tici
* lil shorter
2024-03-10 16:56:50 -07:00
Jason Wen
9aca2536aa
Merge branch 'upstream/openpilot/master' into sync-20240224
...
# Conflicts:
# selfdrive/car/subaru/values.py
2024-02-24 20:46:45 -05:00
Cameron Clough
995250ae49
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
2024-02-24 16:41:23 -08:00
Jason Wen
daae551ea8
Merge remote-tracking branch 'commaai/openpilot/master' into sync-20240201
2024-02-05 11:41:19 -05:00
Justin Newberry
086c509fde
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
2024-01-31 18:47:49 -08:00
Justin Newberry
faf99ba711
CI: generate test_ui report ( #31151 )
...
* add test
* simpler
* simpler
* false
* move these here
* faster
* map takes logner to render
2024-01-25 16:49:38 -08:00
Justin Newberry
3676ae4da3
test_ui: add onroad state ( #31148 )
...
add onroad
2024-01-24 16:51:06 -08:00
Justin Newberry
e2ec5be6ee
test_ui: create test ui screenshots and html report ( #31147 )
...
* test ui
* report + common
* in ci
* fix
* dont enable in ci yet
2024-01-24 13:54:31 -08:00
Shane Smiskol
bef6d7f0bb
pre-commit: speed up translation step ( #30966 )
...
* formatting
fix
* fix missing class attr warning
* add translation_files option, remove pluralonly, type hint
* updates
* update
2024-01-11 00:39:15 -08:00
royjr
9d7f618bc5
multilang: parameterize unit tests ( #30842 )
...
* init
* fix indents
* remove import
* safer
* TemporaryDirectory
* much cleaner
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2024-01-01 14:54:16 -08:00
royjr
fd88990006
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 >
2023-12-31 10:58:15 -08:00
Justin Newberry
abe39e5076
Soundd: move to python ( #30567 )
...
soundd python
2023-12-05 18:10:01 -08:00
Jason Wen
cfeba34d5d
Merge branch 'upstream/openpilot/master-20231016-sync' into master-20231016
...
# Conflicts:
# cereal
# panda
# selfdrive/car/hyundai/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/subaru/values.py
# selfdrive/controls/controlsd.py
# selfdrive/controls/plannerd.py
# selfdrive/monitoring/dmonitoringd.py
2023-10-16 11:03:27 -04:00
royjr
e156ab41ad
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 >
2023-09-30 15:37:07 -07:00
Jason Wen
9bc73b85ff
Merge remote-tracking branch 'commaai/openpilot/master'
...
# Conflicts:
# .github/workflows/selfdrive_tests.yaml
# .pre-commit-config.yaml
# README.md
# cereal
# common/version.h
# opendbc
# panda
# selfdrive/car/chrysler/carcontroller.py
# selfdrive/car/chrysler/carstate.py
# selfdrive/car/chrysler/interface.py
# selfdrive/car/gm/carstate.py
# selfdrive/car/honda/carstate.py
# selfdrive/car/hyundai/carcontroller.py
# selfdrive/car/hyundai/carstate.py
# selfdrive/car/hyundai/hyundaican.py
# selfdrive/car/hyundai/interface.py
# selfdrive/car/hyundai/radar_interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/interfaces.py
# selfdrive/car/subaru/carcontroller.py
# selfdrive/car/subaru/carstate.py
# selfdrive/car/subaru/interface.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/car/torque_data/override.yaml
# selfdrive/car/toyota/carcontroller.py
# selfdrive/car/toyota/carstate.py
# selfdrive/car/toyota/interface.py
# selfdrive/car/toyota/toyotacan.py
# selfdrive/car/volkswagen/carstate.py
# selfdrive/controls/lib/desire_helper.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/monitoring/dmonitoringd.py
# selfdrive/thermald/power_monitoring.py
# system/loggerd/uploader.py
2023-09-05 11:50:47 -04:00
Harald Schäfer
75ead2c389
Soundd: Give each alert a volume ( #29767 )
...
* Give each alert a volume
* Update sound.h
2023-09-04 11:15:06 -07:00
Adeeb Shihadeh
a9626f95b6
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
2023-08-20 20:49:55 -07:00
Shane Smiskol
103d39259f
Multilang: check format arguments are consistent ( #29441 )
...
* format args
* global
2023-08-16 21:30:47 -07:00
Shane Smiskol
549a4e9a97
Multilang: more translation sanity checks ( #29439 )
...
* tests
* test finished translations
* fix new test failure
2023-08-16 21:10:25 -07:00
Justin Newberry
4a9afd7554
Ruff: comprehensions conventions ( #29317 )
...
ignore c408
2023-08-10 16:40:30 -07:00
Adeeb Shihadeh
44c76257a1
rm some old tests
2023-08-09 22:31:47 -07:00
Jason Wen
54c4dbd49b
Merge branch 'upstream/openpilot/master'
...
# Conflicts:
# cereal
# common/version.h
# opendbc
# panda
# selfdrive/car/honda/carstate.py
# selfdrive/car/honda/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/car/subaru/carcontroller.py
# selfdrive/car/subaru/subarucan.py
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/manager/manager.py
2023-06-22 14:52:51 -04:00
Jason Wen
8ba9748ad9
Parse and display sunnypilot changelogs
2023-06-02 18:20:43 -04:00
Cameron Clough
15ac8c041b
UI snapshot tool ( #28356 )
...
* UI: snapshot testing tool
* gitignore
* cleanup
* remove prime type arg
* rename
* add script
* commit snapshots
* use base setup
* updates
* always run base
* echo
* use imagemagick
* test_snapshots
* fixes
* update
* set language
* revert
* default arg
* just remove translations
* formatting
* output arg
* improved help
* fix assets
* change dir back before saving snapshot
* unused imports
* simpler
* add default to description
* use uiUpdate signal
2023-05-31 23:04:30 -07:00
Shane Smiskol
f540002e3f
translation badges: add number of unfinished translations ( #26429 )
...
* some clean up and add missing translations
* unfinished
* set proper width
* make this variable common
2022-11-09 16:49:17 -08:00
Shane Smiskol
35f624c628
translations: remove locations ( #25826 )
...
* Remove locations
* no line nos
2022-09-17 15:51:49 -07:00
Adeeb Shihadeh
c4e63d14ab
good updater experience ( #25724 )
...
* good updater experience
* set params on startup
* no fetch on first loop
* little type hinting
* little more
* update translations
* always set params with valid overlay
* wrap check
* use the param
* more wrapping
* vanish
* cleanup
* remove that
2022-09-15 15:12:36 -07:00
Shane Smiskol
719d5f7856
translations tests: ignore line numbers ( #25675 )
...
* no line numbers
* remove locations
* test
* ignore line numbers
* revert
revert
* fix that
* use relative
* non bytes, global
* clean up
2022-09-06 13:23:41 -07:00
Shane Smiskol
844d4d2ece
Multilang: add plural translation test ( #25491 )
...
Add test for correct format specifier for plural translations
2022-08-18 23:32:11 -07:00
AlexandreSato
42e4efe706
Multilang: add Portuguese (Brazil) translation ( #25287 )
...
* Add Portuguese-Brazil translations
* Fixing some Japanese I used as a base.
* Add pt_BR translation
* Add QM file
* multilang: Fix typo and missing pt_BR translation
* fix typos in calibration translation
* pt_BR new translations
* fix translations
* update qm
* add Thai translation tkx tape#7233
* fix pt_BR translation
* improve pt_BR translation
* connect means connection not connected
* update
* plurals and typo
* fix unitTest error
* Add pt badge
* Add test for missing plural translations
* Make sure this doesn't test for translation completeness, we skip that test
* fix missing plurals
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2022-08-15 12:14:29 -07:00
Shane Smiskol
eaf21e53e2
Multilang: test for vanished translations ( #25342 )
...
* Test for vanished translations
* this isn't needed anymore
* comment
* remove more unnecessary code since the great pluralization
2022-08-05 14:49:21 -07:00
Shane Smiskol
ecba873208
Multilang: handle localized plurals ( #25337 )
...
* Add localized plural handling
* Do another location with plurals
* fix test
2022-08-02 12:44:21 -07:00
Shane Smiskol
c528decd17
multilanguage: compile QM in scons ( #25217 )
...
* All in scons
* delete all this
* delete the qm files
* No need to check QM files in test_translations.py anymore
* readme
* add lupdate to third party
* fix
* one line
* update files_common
* readme imp
* add j flag
* add to path
* duplicate scons!
* update readme
* fix path
fix path
fix path
* no path
2022-07-20 18:44:47 -07:00
Shane Smiskol
464db126a5
Multilanguage: readme improvements ( #25214 )
...
* catch2 needs to iterate through the whole function each time to test this (spams warnings)
* Update readme
* Add update the ui header
* build in scons
* release by default
* scons in another pr
Co-authored-by: Vincent Wright <vincentw@kmwperformance.com >
2022-07-19 12:38:58 -07:00
Greg Hogan
93cd0285ac
nav: toggle to show on left side of onroad ui ( #25169 )
...
* nav: show on left side of onroad ui
* add toggle
* capitalization
* update translations
* single params object
* skip unfinished translations test
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2022-07-18 13:57:21 +02:00
Shane Smiskol
949de4d2b6
UI: Internationalization support ( #21212 )
...
* rough multiple language demo
* more wrappings
* stash
* add some bad translations
* updates
* map from french to spanish still has same problem of needing to call setText on everything
* add files
* restart UI
* use return code
* relative path
* more translations
* don't loop restart
* Toggle and prime translations
* try on device
* try QComboBox with readable style
* stash
* not yet scrollable
* stash
* dynamic translations (doesn't work for dynamic widget strings yet)
* clean up multiple option selector
* store languages in json
* try transparent
* Try transparent popup
* see how this looks
* tweaks
* clean up
* update names
* Add Chinese (Simplified) translations
* Do missing French translations
* unit tests caught that :)
* fix test
* fix other test (on PC)
* add entries to dialog to test
* add cancel button, clean up a bit
* just chinese
* some clean up
* use quotes
* clean up
* Just quit, set timeout to 0
* half a second
* use exitcode
* don't print if it's expected
* this comment is outdated
* update translations
* Update translations
* re-order input classes
* Update line numbers
* use enabled property for button style
* Get rid of ListWidget
* Update line numbers
* Log failed to load language
* Log failed to load language
* Move to utils and fix english logging
extra line
* Update translations
* spacing
* looks a bit better
* try this instead of exitcode
fixes
fix
* only one function
* comment
* Update line numbers
* fixup some japanese translations
* clean up multi option dialog
* Update line numbers
2022-07-08 20:25:54 -07:00
Shane Smiskol
5b4e39990a
Add Japanese translations ( #25078 )
...
* Add Japanese translations
* test japanese
* update tr file
* test for unfinished translation tags
* add compiled QM
add compiled QM
* mark as finished
* remove from tests, needs some design decisions
Co-authored-by: PONPC <fuzitanirenti@yahoo.co.jp >
2022-07-08 00:41:17 -07:00
Shane Smiskol
bd2ea15897
Add Chinese (traditional) translations ( #25064 )
...
* Add Chinese translations
* wrap these
* add to languages.json
* fix tests
* use tmp dir for tests (doesn't change translation files in git repo)
* defaultdict not used
* update main_zh.ts (test outdated QM file)
* test outdated QM file (prev commit tests missing)
* update qm file
* add sidebar translations
* no need for function
2022-07-07 14:19:30 -07:00
Shane Smiskol
7178800d84
Multilang prerequisites ( #24999 )
...
* some supporting code for multilang
* for now just english
* test for missing language files
* test for checking if ts file is up to date
* Skip test if causes exception, other test catches this
Test test
Should also work
should now fail
revert
rmn
* add to files_common
* fix files_common
* newlines
* no need to not update
* comment
* only english
* double quotes
* switch around
2022-06-30 11:02:53 +02:00