Shane Smiskol
7f073483bb
services: capitalize constant service list ( #30005 )
...
* rename
* bump
* Apply suggestions from code review
2 years ago
Adeeb Shihadeh
2c1dfc2f34
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>
2 years ago
Justin Newberry
73eda51a11
System: use paths for download folders too ( #29818 )
...
* use paths for download folders too
* trailing slash
* reset that
2 years ago
Justin Newberry
bfe990b112
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
2 years ago
Justin Newberry
4e69937d0d
Precommit: ensure executable bit is set ( #29784 )
...
* precommit ensure executable
* exclude tinygrad
* bump submodules
* exclude tinygrad globally
2 years ago
Kacper Rączy
0bda43d71c
encoderd: fix crash when filename is null ( #29748 )
...
Use publish_name for thread name and debugging messages
2 years ago
Justin Newberry
a5ef9febb9
Tests: loggerd reduce iterations ( #29713 )
...
* reduce those iterations
* sleep time could be decreased too
* in case it's negative
2 years ago
Adeeb Shihadeh
72e2e2c9ec
pytest: strict config ( #29676 )
...
* pytest: strict config
* collection works
* fixes
2 years ago
Dean Lee
1e62999e75
v4l_encoder: convert macro `checked_ioctl` to funtion ( #29609 )
...
* break to multiple lines
* convert to function
* format errno
* use safe_ioctl
* cleanup
2 years ago
Adeeb Shihadeh
4917e22615
Minimal build ( #29600 )
...
* add build flag for minimum build
* add minimal build
* update
* fix pj
* bump opendbc
* update subaru
2 years ago
Dean Lee
d54fa5c7f1
v4l_encoder: fix error handling for poll ( #29166 )
...
* fix error handling for poll
* revert
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Dean Lee
7bfd3dac81
cpplint: add filter `whitespace/comma` ( #29595 )
2 years ago
Dean Lee
21da5a216f
cpplint: add filter `build/include_subdir` ( #29585 )
2 years ago
Dean Lee
ac93902983
cpplint: add filter `whitespace/forcolon` ( #29582 )
...
whitespace/forcolon
2 years ago
Dean Lee
95e9232963
encoder/VideoWriter: remove unnecessary call to `avcodec_close` ( #29039 )
2 years ago
Dean Lee
ddd849a882
encoderd: remove unnecessary calls to ` encoder_close()` on exit. ( #28970 )
2 years ago
Adeeb Shihadeh
e726505918
bump cereal ( #29561 )
2 years ago
Dean Lee
2d99521e75
cpplint: `build/include_what_you_use` ( #29556 )
...
* include_what_you_use
* remove comments
* include <memory>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Dean Lee
363740a497
cpplint: add `readability/braces` filter ( #29554 )
2 years ago
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 db5e13b991
.
* fix pm test
2 years ago
Adeeb Shihadeh
db287496d8
Fixes for PYTHONWARNINGS=error ( #29381 )
2 years ago
Dean Lee
51cdf155d9
encoderd: fix indentation ( #29356 )
...
fix indentation
2 years ago
Vivek Aithal
81322a4805
[commabody] setup and run live stream encoders ( #29087 )
...
* op changes needed for body
* remove logmessaged callback
* add newlines
* add stream arg
* add stream_encoder to config
* supersets, avoid two encoderd
* fix recursive exit error
* fix loggerd crash
* add stream_encoderd cpu usage to test
* Update system/loggerd/loggerd.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* resolve comments
* stream_encoderd onroad to false
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Justin Newberry
4a9afd7554
Ruff: comprehensions conventions ( #29317 )
...
ignore c408
2 years ago
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
2 years ago
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>
2 years ago
Dean Lee
c0c00e1997
loggerd: check `userFlag` outside the while loop ( #29095 )
...
* improve check userFlag
* rename to ServiceState
* setxattr once
2 years ago
Cameron Clough
98a30f10f4
deleter: preserve flagged segments ( #28814 )
2 years ago
Dean Lee
65fe3c8c34
encoder: remove function `publisher_init`, init PubMaster in constructor ( #28980 )
2 years ago
Cameron Clough
f14447ad66
loggerd: fix whitespace and indentation
2 years ago
Dean Lee
06aef9edd3
encoder: remove public function `encoder_init` ( #28971 )
2 years ago
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>
2 years ago
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
2 years ago
Cameron Clough
5d45d1fadc
loggerd: add types to tests and use pathlib ( #28943 )
2 years ago
Dean Lee
f1a1456f27
logger: use reference in range based loop ( #28894 )
2 years ago
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>
2 years ago
Dean Lee
36fe84ccdd
loggerd: pass `encoder_info` by reference ( #28694 )
2 years ago
Harald Schäfer
2453d3a04b
Encoderd: refactor msg getters and setters ( #28509 )
...
* Encoderd: refactor msg getters and setters
* whitespace
* whitespace
* whitespace
2 years ago
Harald Schäfer
5df4ac61d3
Encoderd: Give encoder threads good names ( #28508 )
2 years ago
Harald Schäfer
ac45b77d3b
Encoderd: give every camera stream list of encoder streams ( #28480 )
...
* Compiles
* fixed something
* CLEANUP
* todo
* More cleanup
* Add TODO
* Update loggerd.cc
* remove write here too
2 years ago
Harald Schäfer
d8f677c5eb
Encoderd: encoders don't write, they only encode ( #28499 )
...
* Encoders dont write, they encode
* Delete words
* unused
---------
Co-authored-by: Harald Schaefer <torq_boi@Haralds-MacBook-Air.local>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Adeeb Shihadeh
5161c23645
Revert "Encoderd: encoders just encode, no writing ( #28482 )"
...
This reverts commit 1fd7542eae
.
2 years ago
Harald Schäfer
1fd7542eae
Encoderd: encoders just encode, no writing ( #28482 )
...
Encoders dont write, they encode
2 years ago
Shane Smiskol
7f7637f3e5
uploader: check upload key value ( #28206 )
...
* fix check
* tests
* fix test
* fix
* xattr truthy and falsy tests
---------
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2 years ago
Adeeb Shihadeh
1a3125bb8f
bootlog: log agnos partition hashes ( #28141 )
...
* bootlog: log agnos partition hashes
* full path
* trimming
* slot
* boot is big
* give some time to start
---------
Co-authored-by: Comma Device <device@comma.ai>
2 years ago
Adeeb Shihadeh
e24d28fd45
loggerd: log HW-specific extras ( #28084 )
...
* loggerd: log HW-specific extras
* fix value
---------
Co-authored-by: Comma Device <device@comma.ai>
2 years ago
Cameron Clough
7126363093
uploader: log actual uploaded file size ( #28000 )
...
* uploader: log actual uploaded file size
The size will be less if compressed before uploading.
* cleanup
* fix return type
* add request to FakeResponse
* cleanup
* fix
2 years ago
Cameron Clough
e03efa723b
uploader: add missing types
2 years ago
Cameron Clough
a27ce83b28
uploader: add typing ( #28001 )
...
* uploader: add typing
* fix types
2 years ago
Adeeb Shihadeh
be659c976c
log current bootlog ( #27645 )
...
* log current bootlog
* rm path
* mv that
---------
Co-authored-by: Comma Device <device@comma.ai>
2 years ago