Shane Smiskol
13381ed446
services: capitalize constant service list ( #30005 )
...
* rename
* bump
* Apply suggestions from code review
old-commit-hash: 7f073483bb2586053d6c5508ef3f420947941d90
2023-09-21 18:25:15 -07:00
Dean Lee
4c3381c2cd
proclogd: fix test failures ( #29971 )
...
old-commit-hash: 494228e0e1d511bc1479bd768c4a6e0cee6ff95e
2023-09-21 10:25:35 -07:00
Adeeb Shihadeh
1bbc16633c
sensord: test update for provisioning ( #29942 )
...
sensord: update for provisioning
old-commit-hash: ccc8e099b6e3457cc3a4e263491d1bfc92e8c897
2023-09-15 18:50:43 -07:00
Adeeb Shihadeh
1f8459d285
use pytest for cpp tests ( #29833 )
...
* add pytest-cpp package (#29828 )
* add pytest-cpp package
* disable for now
* use in ci
* use pytest cpp
* use my branch
* add missing tests
* that doesn't make sense
* it was merged upstream
* replace TEST_RLOG_URL with a publicly accessible url
* PR Cleanup
* assert instead
* update poetry lock
* add comment about pytest-cpp
---------
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com >
Co-authored-by: Justin Newberry <justin@comma.ai >
Co-authored-by: deanlee <deanlee3@gmail.com >
old-commit-hash: 2c1dfc2f341b09381af2cc7872c4092df28dc9d5
2023-09-11 14:01:50 -07:00
Justin Newberry
759ab03b03
Ruff: disallow non-openpilot imports ( #29841 )
...
old-commit-hash: 110cfef1c2a56b333b684cd7ae98b321ae0e72eb
2023-09-08 10:43:02 -07:00
Adeeb Shihadeh
85ef987bfe
ubloxd: remove unused file ( #29829 )
...
old-commit-hash: 4111ac36b2d676e4a8014b8728f3487b5252892d
2023-09-07 19:29:34 -07:00
Justin Newberry
5b1e60f5da
Pytest: enforce a default timeout ( #29793 )
...
* pytest: enforce default timeout
* disable that for now
* 30 second timeout on tests
old-commit-hash: b0a71d45536d6fe0c0e8365913c6ffbc64a58b1b
2023-09-07 17:53:51 -07:00
Justin Newberry
37e4b2cba9
CI: run unittests in parallel with xdist ( #29756 )
...
* parallel tests
* review suggesions
* add to pyproject
* add a bit more buffer on that
* fix rare athena issue
* remove from pypoetry
old-commit-hash: dde225221e8fa0063bb52786232be33b8374dfcd
2023-09-07 16:29:36 -07:00
Justin Newberry
dc6078a6c3
System: use paths for download folders too ( #29818 )
...
* use paths for download folders too
* trailing slash
* reset that
old-commit-hash: 73eda51a11955627f4d149fdf12c1c781983d52e
2023-09-07 12:49:03 -07:00
Justin Newberry
c7029ea15a
System: cleanup paths to use a common class ( #29816 )
...
* use OP prefix for logmessage
* cleanup paths too
* cleanup the paths too
* add hw.py to release
* fix those issues
* fix unittests
* fix unittests
* fix unittests
* do swaglog_ipc properly across all the files
* fix that
* fix swaglog in c++
* review suggestions
old-commit-hash: bfe990b112a83f245bb5244553c84202aec7d86c
2023-09-07 11:32:47 -07:00
Justin Newberry
3b91610c0b
Precommit: ensure executable bit is set ( #29784 )
...
* precommit ensure executable
* exclude tinygrad
* bump submodules
* exclude tinygrad globally
old-commit-hash: 4e69937d0d3fbdc7d1d42cbc18d7ccf8ddb115f1
2023-09-05 16:33:26 -07:00
Adeeb Shihadeh
6a3da36632
sensord: test updates for provisioning ( #29768 )
...
* sensord: test updates for provisioning
* fix
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 0908be80bda09d7cc476693ab17208cf0fca4ded
2023-09-05 15:32:57 -07:00
Justin Newberry
839e72de70
CI: use pytest for unittesting ( #29709 )
...
* switch to pytest
* static analysis
* fix the helpers
* static analysis
* remove that
* more parallel test
* cleanup
* static analysis
* durations min and tolerance
* reduce those iterations
* sleep time could be decreased too
* in case it's negative
* try using caching
* remove parallelization for first PR
* PR Cleanup
* reduce diff
* fix that
* bump panda
old-commit-hash: ca435d344714f08276f9f9da5039f730987f31fa
2023-09-04 11:54:35 -07:00
Greg Hogan
ada436be39
gnss raw measurements through nmea port ( #29745 )
...
* gnss measurements through nmea port
* document values
* flags always zero
* fix linter errors
* fix linter errors
old-commit-hash: de97d32fe0a019186eee03d4bf39d85a2d62dfd8
2023-09-02 16:58:34 -07:00
Kacper Rączy
4040d85159
encoderd: fix crash when filename is null ( #29748 )
...
Use publish_name for thread name and debugging messages
old-commit-hash: 0bda43d71c46b02b8d9d2043243388f8a2839497
2023-09-01 11:51:59 -07:00
Shane Smiskol
33a1122f5c
timezoned: set headers ( #29725 )
...
* timezoned: set headers
* Update system/timezoned.py
* this is useful
* newline
old-commit-hash: 2dd7a6fc64d9ac49161e2ccc489b8db28ca73001
2023-08-31 14:11:51 -07:00
Adeeb Shihadeh
9397618cfb
Update test_camerad.py
...
old-commit-hash: 18fbc1c29a0a8f42b73ecf9fa0b091ff2a9b3ebf
2023-08-31 14:09:52 -07:00
Justin Newberry
e3053e6659
Tests: loggerd reduce iterations ( #29713 )
...
* reduce those iterations
* sleep time could be decreased too
* in case it's negative
old-commit-hash: a5ef9febb9bb2ddd646ea8051fc31bb7247ad73a
2023-08-30 13:36:55 -07:00
Greg Hogan
de996d76bb
rename GPIO pin with ublox in the name that is not ublox specific ( #29702 )
...
* rename UBLOX_PWR_EN to GNSS_PWR_EN
* add schematic label as comment
old-commit-hash: 5058f31908ec10e1dad10fc8f1e9921d6df52efe
2023-08-29 22:24:37 +00:00
Justin Newberry
279bd020dc
Tests: logmessaged reduce global state ( #29680 )
...
* reduce global state
* use a decorator here too
* use that one
* use base imports
* ipchandler in setup
* move to common dir
* move to helpers
* wip
* fix the decorator
old-commit-hash: 5dc7028f91079dfa07347a4d24ff56b72c24bd20
2023-08-29 13:36:26 -07:00
Adeeb Shihadeh
cc29c6640d
pytest: strict config ( #29676 )
...
* pytest: strict config
* collection works
* fixes
old-commit-hash: 72e2e2c9ec4e3a42cf35c23dfc0d66ea0565ace6
2023-08-28 10:26:19 -07:00
Adeeb Shihadeh
26c7c08982
pandad: recover from bad bootstub ( #29638 )
...
* pandad: recover from bad bootstub
* more
* adjust that
* ugh guess multipanda is still a thing
* reset
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 683b3b596678b6acd491493901e71b018e8e5d51
2023-08-25 17:03:00 -07:00
Dean Lee
d5631664d3
v4l_encoder: convert macro checked_ioctl to funtion ( #29609 )
...
* break to multiple lines
* convert to function
* format errno
* use safe_ioctl
* cleanup
old-commit-hash: 1e62999e75b2ba85b7c443af0d8b3132e8e909d2
2023-08-25 11:05:22 -07:00
Justin Newberry
c4f322ce2d
Linter: remove pylint ( #29611 )
...
remove pylint
old-commit-hash: 1ee6ed4b16e2ade0dd887c0687243aee769043e5
2023-08-24 16:30:54 -07:00
Adeeb Shihadeh
61cf541322
Minimal build ( #29600 )
...
* add build flag for minimum build
* add minimal build
* update
* fix pj
* bump opendbc
* update subaru
old-commit-hash: 4917e22615adbfcc9b3c3ec89b00d240e0b48883
2023-08-24 14:58:30 -07:00
Dean Lee
86692bf177
v4l_encoder: fix error handling for poll ( #29166 )
...
* fix error handling for poll
* revert
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: d54fa5c7f198af93474a73643b9363fc2a2043ba
2023-08-24 12:56:06 -07:00
Dean Lee
de809632bf
cpplint: add filter whitespace/comma ( #29595 )
...
old-commit-hash: 7bfd3dac811ae95bfd09495e88377dfbaacda393
2023-08-24 10:42:06 -07:00
Dean Lee
228d30d5a9
cpplint: add filter whitespace/tab ( #29588 )
...
old-commit-hash: 9c7bf50703e4da45163e175766b4bdfabcb9916c
2023-08-24 08:06:58 -07:00
Dean Lee
0984736972
cpplint: add filter build/include_subdir ( #29585 )
...
old-commit-hash: 21da5a216fc8f5269d2deedc538c2f543a1c270a
2023-08-24 15:42:17 +01:00
Dean Lee
56b582a059
cpplint: add filter whitespace/forcolon ( #29582 )
...
whitespace/forcolon
old-commit-hash: ac939029835542a02b866e8a0d174f09773e4e6e
2023-08-23 22:46:02 -07:00
Dean Lee
9bb3316925
encoder/VideoWriter: remove unnecessary call to avcodec_close ( #29039 )
...
old-commit-hash: 95e9232963ad2deed377a3d840f25e40f921b8ca
2023-08-23 20:08:19 -07:00
Dean Lee
8c6cb78f38
encoderd: remove unnecessary calls to encoder_close() on exit. ( #28970 )
...
old-commit-hash: ddd849a882ded042c1f5fb71cb4e200fe2cb8327
2023-08-23 17:56:22 -07:00
Dean Lee
5f4b422305
cpplint: add filter whitespace/semicolon ( #29568 )
...
old-commit-hash: f203648de0a9d78121d3a775ae454a43e1211e62
2023-08-23 15:00:30 -07:00
Dean Lee
db211ce617
cpplint: add filter whitespace/parens ( #29565 )
...
old-commit-hash: 5480d32bb5d98d57100fd709b9ffe7bfcc6e020a
2023-08-23 14:25:05 -07:00
Adeeb Shihadeh
8960a0912b
sensord: fix LSM magnetometer thermal variation ( #29265 )
...
* do set reset for every measurement cycle
* use one sensorvec
* convert from continuous to manual mode
* separate the set/reset and TM_M
* make magnetometer readings manual, set appropriate sleep
* add more sleep and check validity of values
* add magnetometer to a separate thread
* refactor
* bugfix
* each sensor in a new thread, handle generically
* bugfix
* rm global
* update cpu
* update test
* update test
* revert cereal change
* split out temp sensors
* little more
* fix
* fix
* bump cereal
* linter fixes
---------
Co-authored-by: nuwandavek <vivekaithal44@gmail.com >
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 239d6a24bed850a6fbd3e0794da19130cdb773f7
2023-08-23 14:21:10 -07:00
Adeeb Shihadeh
44f1d480f9
sensord: run as many sensors as possible ( #29564 )
...
old-commit-hash: d3fb75a972338e37d5537d900c8d2f55439db961
2023-08-23 14:07:00 -07:00
Adeeb Shihadeh
0ae2523a16
sensord: lower temperature sensor freq to 2Hz ( #29563 )
...
old-commit-hash: 42769345d505cc30978aaf9ed735cb8d644b13aa
2023-08-23 14:00:26 -07:00
Adeeb Shihadeh
6b2ffe9490
bump cereal ( #29561 )
...
old-commit-hash: e726505918bfbaa4ee75714bd6ea391d7fff7fb8
2023-08-23 13:42:37 -07:00
Dean Lee
97e9d55588
cpplint: build/include_what_you_use ( #29556 )
...
* include_what_you_use
* remove comments
* include <memory>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 2d99521e7500902070d0aacce69528bcfd8b9964
2023-08-23 13:25:17 -07:00
Adeeb Shihadeh
5c213d7a38
sensord: setup per-sensor threads ( #29558 )
...
* sensord: setup per-sensor threads
* revert cereal
* more cleanup
* bump cereal
* update test
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 6a66b7555679c5cd3511e03ba6e1cb528706f84e
2023-08-23 12:58:09 -07:00
Dean Lee
004a097c95
cpplint: add readability/braces filter ( #29554 )
...
old-commit-hash: 363740a497620249066522c87ddb03e1362749d4
2023-08-23 10:13:46 -07:00
Adeeb Shihadeh
701cd6f6fe
add cpplint ( #26855 )
...
* setup cpplint
* only start that
* check line length
* check these
* rm exceptions
old-commit-hash: 952d720b6e854b3ebbb9fd0fd82cd38f3ae04b90
2023-08-22 13:55:23 -07:00
Adeeb Shihadeh
d46981cac5
tici: add wait_for_power helper ( #29507 )
...
* tici: add wait_for_power helper
* deque
* cleanup
---------
Co-authored-by: Bruce Wayne <batman@z840-provisioning2.internal >
old-commit-hash: 985af1ce3cc9849c0c677d2f1a062daef1b8d0dc
2023-08-21 13:46:00 -07:00
Adeeb Shihadeh
29977caa45
sensord: rm light sensor ( #29503 )
...
old-commit-hash: f5071411cb460cc64474f533143f37ba3eb54ce6
2023-08-20 22:38:39 -07:00
Dean Lee
97631ec362
common: C++ RateKeeper ( #29374 )
...
* c++ RateKeeper
* add to files_common
* use util::random_int
* improve monotor_time
* remove ~ratekeeper
old-commit-hash: 3eef63af9b4f4a25bc4c3a0d6ad450bba9f62205
2023-08-20 21:27:02 -07:00
Adeeb Shihadeh
16ec56398c
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
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Cameron Clough
8b0902e324
agnos: alt system image
...
old-commit-hash: 3861fca9409d3b4950367d32fad2a0da5da816fd
2023-08-20 20:18:52 +01:00
Cameron Clough
868643d111
agnos manifest: add alt system image ( #29468 )
...
old-commit-hash: 3972c85e9711c8bf5e6231e80ee7d01f99384e83
2023-08-20 11:50:08 +01:00
Adeeb Shihadeh
1ca3343d0c
add small ui for jenkins runners ( #29382 )
...
old-commit-hash: 09ffce80737ec54ada27be5643e223ba1db12bd1
2023-08-13 18:01:51 -07:00
Adeeb Shihadeh
f50fedb647
Fixes for PYTHONWARNINGS=error ( #29381 )
...
old-commit-hash: db287496d82be87971a619b2659c47737142a385
2023-08-13 17:22:56 -07:00