Commit Graph

26 Commits

Author SHA1 Message Date
Adeeb Shihadeh 8d3a5970d4 jenkins: use build.py to manage cache size (#30440)
* jenkins: use build.py to manage cache size

* label

* set pp

* double

* cleanup

* non mimimal build on PC

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 5f7143df02b857201e2615240ccd1be06daa32fe
2023-11-10 16:55:25 -08: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
Adeeb Shihadeh e9a497dc5b build.py: retry with less threads (#29543)
* build.py: retry with less threads

* cleanup

* fix no output

* cleanup
old-commit-hash: bb1b641812353e9723cad0aa6f844466c67d9c6b
2023-08-22 20:58:43 -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
Shane Smiskol 92ff85f4b4 Update TOTAL_SCONS_NODES
Should add a CI test for this
old-commit-hash: 3e2903a0c184a203718e2430aa33da6e3b62bf7f
2023-08-14 17:34:19 -07:00
Shane Smiskol 9710be7ba1 Bump total scons nodes
old-commit-hash: cb50244a89fde385f55b2f6ad3ecd83c9b8f5c3a
2023-02-02 13:03:53 -08:00
Shane Smiskol 53d41b8967 Update total scons nodes
old-commit-hash: cbe1c89698a20d7eb26897c1e202bcc7d48ee1cd
2022-09-01 13:39:00 -07:00
Willem Melching c3d47448f9 build.py: remove retry logic (#24986)
old-commit-hash: 712445c5314d0634e1f6a78a95901dd14ac6bc57
2022-06-28 17:39:22 +02:00
Adeeb Shihadeh 3c48bc47b7 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
old-commit-hash: 0fce5d90459b77bf2cfa70f55f322f0e1fb8d01c
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh 9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b01f34de9714c99228f411558b44231
2022-06-11 16:38:24 -07:00
Shane Smiskol f1f5924a71 update scons nodes
old-commit-hash: 058bbc356be30f7afbc72503ca98247f43d395ae
2022-06-03 03:17:33 -07:00
Willem Melching 753045c73d less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

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

* Update selfdrive/hardware/hw.h

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

* Update selfdrive/hardware/base.h

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

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2100a4f1401a93d88064ddbbbd935c1
2022-06-02 15:20:51 +02:00
grekiki cc943ac9a5 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b8b15d5cf1d2507c89bbe0e3b1de1ff043d9078e
2022-04-21 18:27:45 +02:00
George Hotz 86a39e838b Add More Types for mypy (#23268)
* mypy passes

* a few more

* a few in manager

* more types, will lint

* more

* simple types

* events type

* Update selfdrive/thermald/thermald.py

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc96d4bee7b898172a6a15de4799af0e2d35605e
2021-12-28 18:07:00 +01:00
Shane Smiskol ef38c36435 version.py: make function names more clear (#23216)
* rename a few version functions

* and is_prebuilt

* and some formatting 😊
old-commit-hash: b745a14ff71622fe1fe4c9c043c7d7694d23dc08
2021-12-14 12:15:13 +01:00
grekiki 9e4cc1f7ff Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

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

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6951b3271d1770297cb6bd53878463035ec0bf43
2021-12-03 22:57:19 -08:00
Adeeb Shihadeh 78a7cf85d3 increase scons cache size for CI devices
old-commit-hash: bc57ffd16ff2154a9c9126648233c8439dcffe9c
2021-11-30 14:51:31 -08:00
Willem Melching 28dd415759 Do not run code on version.py import (#23063)
* Do not run code on version.py import

* fix athena
old-commit-hash: f7c46c694985456e569ce2313b29e43607c62a12
2021-11-29 19:38:55 +01:00
grekiki 5b2511162a replace list comprehensions with generators (#23037)
old-commit-hash: 68c1a666a03a381768673a1b29a73f9131f0ed62
2021-11-25 15:53:11 -08:00
Adeeb Shihadeh 3e064c4dd5 build.py: don't hang on text window in CI (#21335)
old-commit-hash: cefbd6734eecaada43d306f114aebfeba0c67369
2021-06-18 15:37:53 -07:00
Adeeb Shihadeh fb62002e92 use scons cache by default (#21102)
* always use scons cache

* cleanup
old-commit-hash: a0dabd94e9d04fdc772b3cb34b6cd016da29d971
2021-06-01 17:12:32 -07:00
Adeeb Shihadeh 884736efc2 better scons cache handling (#20980)
* better scons cache handling

* nicer

* max size

* fast
old-commit-hash: 4f4cb56de920f42cc8646ba569ef362910be6185
2021-05-22 20:13:39 -07:00
Comma Device 6edf67788b update scons nodes
old-commit-hash: 7f428eadc12a12d966447f1911d610e997fd05e4
2021-03-25 23:14:44 -07:00
Greg Hogan 183d9f98a1 log to file and send through athena (#20250)
* log to file and send through athena

* rename logging level

* pass thru log formatter

* logMessage is TEXT

* send queue always strings

* switch to xattr and lower priority queue

* enable cloud logging for devices

* time or size based log rotation

* basename -> dirname

* remove HARDWARE.get_cloudlog_enabled

* fix errors

* fix another exception

* xattrs need to be bytes

* sending works

* cleanup files at start

* add id and adjust formatting

* do not send active log file

* better names

* separate log formatters

* fix formatter super init

* fix log file order

* ensure file always has file formatter

* i see why there was no formatter

* apply same formatting to cpp log msgs

* apply same formatting to cpp log msgs

* update queue names in tests

* strip deprecated keys in STATUS_PACKET

* strip DEPRECATED from dict recursively

* athena log queue test

* instanceof instead of type

* isinstance instead of type

* use super

* remove logentries

* last_scan param unused

* comment about special log msg attr names

* add dict_helpers.py to release files

* use monotonic time and counter for log rotation

* update for adjusted log file naming

* use monotonic clock for tracking last log file scan
old-commit-hash: 3d48bd934d6c84a5352c2a1d56e6f93ed59e28c4
2021-03-25 13:30:09 -07:00
Willem Melching 5c08699614 Start ui before manager preimport (#20468)
* start ui early

* test sets this afer import
old-commit-hash: 261045668bf7cf99c07f64034c7538aaeb227b9e
2021-03-25 17:27:15 +01:00
Willem Melching c0098cec09 Manager cleanup (#20231)
* move manager in folder

* inital refactor

* call start

* small cleanup

* add comments

* use self.signal()

* order shouldnt matter

* newlines

* add helpers

* newlines

* add process config

* split out build part of manager

* this should fix most tests

* no sensord on pc

* dont start athena

* remove comment

* fix old athena test

* fix inject model

* fix test car models

* should be not none

* fix helpers exitcode

* ignore manage_athenad

* Use time.monotonic()

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

* combine init, remove spinner

* move manager test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5a3b51130649356b14b24e3c82e014b3a0be95a8
2021-03-05 11:03:23 +01:00