Commit Graph

32 Commits

Author SHA1 Message Date
Adeeb Shihadeh f50fedb647 Fixes for PYTHONWARNINGS=error (#29381)
old-commit-hash: db287496d82be87971a619b2659c47737142a385
2023-08-13 17:22:56 -07:00
Dean Lee cfef62bbd6 encoderd: fix indentation (#29356)
fix indentation
old-commit-hash: 51cdf155d94aa7ed4fac79db8b042a591ba8c75d
2023-08-12 13:30:54 -07:00
Vivek Aithal 8d11558056 [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>
old-commit-hash: 81322a48059bfb77c1e5613dea35e24181c8bb14
2023-08-11 15:34:25 -07:00
Justin Newberry a14f162bc7 Ruff: comprehensions conventions (#29317)
ignore c408
old-commit-hash: 4a9afd7554060ac5353e96f1d7feb06d3a3671e9
2023-08-10 16:40:30 -07:00
Justin Newberry 7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168614f851087adab2d7f766425922f64
2023-08-08 17:13:35 -07:00
Dean Lee b80325aa04 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>
old-commit-hash: 940954c13e4fb352618448e435b5c1a722fdc3aa
2023-07-31 17:49:50 -07:00
Dean Lee c4aeaba7c6 loggerd: check userFlag outside the while loop (#29095)
* improve check userFlag

* rename to ServiceState

* setxattr once
old-commit-hash: c0c00e1997a6919701a183b9d4757a74b17ac141
2023-07-23 12:33:06 -07:00
Cameron Clough b120aec2f5 deleter: preserve flagged segments (#28814)
old-commit-hash: 98a30f10f447b3c28d92f089012ec66c93066bf0
2023-07-20 21:30:26 +01:00
Dean Lee bd93cd7db3 encoder: remove function publisher_init, init PubMaster in constructor (#28980)
old-commit-hash: 65fe3c8c344233832e6aa79a2007ff5624a2c914
2023-07-17 19:25:41 -07:00
Cameron Clough c22ad5e0cf loggerd: fix whitespace and indentation
old-commit-hash: f14447ad660b16755449a6fbe7fc0b9426227c50
2023-07-17 22:55:20 +01:00
Dean Lee ad461bedb2 encoder: remove public function encoder_init (#28971)
old-commit-hash: 06aef9edd35b09382fac2616b190816bd8fe9a98
2023-07-15 23:57:44 -07:00
Dean Lee d4cd751101 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>
old-commit-hash: cbed0577899433be6c351b402b59a2104eb7f952
2023-07-15 12:41:49 -07:00
Dean Lee b59b27e01e 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
old-commit-hash: 713d2ec5865e4d64b5bb543f6641783e75e72d0b
2023-07-15 10:39:40 -07:00
Cameron Clough 182ef3fe52 loggerd: add types to tests and use pathlib (#28943)
old-commit-hash: 5d45d1fadc145dddca23a402300274901257fa01
2023-07-14 15:12:11 +01:00
Dean Lee 434a7c3505 logger: use reference in range based loop (#28894)
old-commit-hash: f1a1456f274881d08b8b3858aa3feeeb8f4a128c
2023-07-11 19:28:50 -07:00
ntegan1 1c5075bfcd 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>
old-commit-hash: 0ddecd36cf4772bbfc3dc62f871cd3660a568ce6
2023-07-09 20:38:30 +01:00
Dean Lee 0ac70b51fa loggerd: pass encoder_info by reference (#28694)
old-commit-hash: 36fe84ccdd2e757510ce9438ddcabd2961f19108
2023-06-25 14:51:28 -07:00
Harald Schäfer e841a5ef81 Encoderd: refactor msg getters and setters (#28509)
* Encoderd: refactor msg getters and setters

* whitespace

* whitespace

* whitespace
old-commit-hash: 2453d3a04b38c59447184bde08e76aed66be3439
2023-06-12 00:08:00 -07:00
Harald Schäfer f4bf6a3ddd Encoderd: Give encoder threads good names (#28508)
old-commit-hash: 5df4ac61d37334c568745d7b78e2853d48d481bb
2023-06-11 23:25:16 -07:00
Harald Schäfer 1581ba80f8 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
old-commit-hash: ac45b77d3bd86d7f6fc6fdb740bdfd28a5dea9e8
2023-06-11 22:23:40 -07:00
Harald Schäfer 0705a97292 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>
old-commit-hash: d8f677c5eb8c3e5e7e42042144680e5ac454fe52
2023-06-11 15:02:42 -07:00
Adeeb Shihadeh 22882d740c Revert "Encoderd: encoders just encode, no writing (#28482)"
This reverts commit eed43696f113feeac757b147a782b8c063638a63.

old-commit-hash: 5161c2364538236b51674fbc63c7f9666e95928b
2023-06-11 08:27:09 -07:00
Harald Schäfer c4bc3964a6 Encoderd: encoders just encode, no writing (#28482)
Encoders dont write, they encode
old-commit-hash: 1fd7542eae10e78fb363548da428a9c7a907638e
2023-06-10 23:44:01 -07:00
Shane Smiskol 8a7283d315 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>
old-commit-hash: 7f7637f3e51ca01ad26a77336cc0b1991664f5bc
2023-05-16 21:55:24 -07:00
Adeeb Shihadeh 2f8939dd0e 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>
old-commit-hash: 1a3125bb8fae70485256099b1be36dfd55129e7d
2023-05-10 13:56:44 -07:00
Adeeb Shihadeh 3689bd2e77 loggerd: log HW-specific extras (#28084)
* loggerd: log HW-specific extras

* fix value

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e24d28fd4512d8fd41a4a9ba610b1d450a3734a0
2023-05-08 19:21:22 -07:00
Cameron Clough c0fa2f3ea2 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
old-commit-hash: 712636309324844465017a7785236a55030114b0
2023-04-26 20:45:58 -07:00
Cameron Clough 3bb5167aa8 uploader: add missing types
old-commit-hash: e03efa723b7a20f412029fa946eef99b95a5a798
2023-04-21 23:06:47 -07:00
Cameron Clough 6626f3036f uploader: add typing (#28001)
* uploader: add typing

* fix types
old-commit-hash: a27ce83b28ae8938df87600fb3bcdcf9b0f839bf
2023-04-21 22:03:26 -07:00
Adeeb Shihadeh 3913d4197f log current bootlog (#27645)
* log current bootlog

* rm path

* mv that

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: be659c976c633876a58ee282550f9ccf52a1e504
2023-03-21 17:28:38 -07:00
Harald Schäfer 515645da51 LaikaD new cache version (#27596)
old-commit-hash: 38cb42f76aa9fe21b0e71569934864d578499c8e
2023-03-15 20:26:19 -07:00
Adeeb Shihadeh 3a968c67e1 loggerd: move to system/ (#27534)
old-commit-hash: 94eb2159802d3dba99620db0b08731c68a7e4733
2023-03-08 11:20:49 -08:00