Commit Graph

100 Commits

Author SHA1 Message Date
Adeeb Shihadeh
e11869d4c9 updated: wait 1m before first cycle (#30492)
old-commit-hash: 99fbd4b150421102cba217791e1c81f8ff94ece0
2023-11-18 21:55:56 -08: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
Justin Newberry
3ee0786de3 CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
old-commit-hash: 7fdd9fc37c1c5febf1cd3dc86441ebf0dec7f370
2023-08-09 13:26:54 -07:00
Justin Newberry
ff96892511 Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b0c9bfe5ccfc8e64321af6bb6c56536
2023-08-08 14:24:04 -07:00
Justin Newberry
99006365a3 CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
old-commit-hash: cb31a53d8a93cf6cb1f8bd2fff1431716b3a47e4
2023-08-08 13:41:30 -07:00
Justin Newberry
f465c3f3ac Updated: fix setting update time (#29004)
* sleep in launch

* set time loop

* log

* try longer delay + logging

* try longer delay + logging

* fix order of update

* fix order of update

* fix order of update

* revert panda

* also don't show connectivity error without failed checks

* slightly cleanup updated

* fix type error

* init overlay first

* minimal diff

* comment

* minimal diff

* minimal diff

* explicit parameter to make it clear

* explicit parameter to make it clear

* use finally

* dont use finally

* PR cleanup

* reduce frequency

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ce2708fa67e9f2b7117e710054e25ed631fa1816
2023-07-18 21:26:05 -07:00
Adeeb Shihadeh
57dc8534b5 updated: fix brief notification of update for same version (#27182)
old-commit-hash: 24f4ada36d21a8ec841b2d866b1dc142baae8eb2
2023-02-02 10:25:20 -08:00
Cameron Clough
edd1a638f0 updated: reset working tree in each submodule (#26316)
* updated: reset working tree in each submodule

* run after fetch too
old-commit-hash: 15828c4feaa69af43867cae89c4de2ca2e8a734b
2022-11-03 19:02:39 -07:00
Adeeb Shihadeh
2bb68d4c29 UI: show git commit date (#26240)
* show version description while offroad

* ui fixups

* parse date

* cleanup
old-commit-hash: 4639862baecfc8ed708827580f441a34731ba137
2022-10-25 15:21:43 -07:00
Cameron Clough
497c4decc5 updated: sync submodules (#26121)
old-commit-hash: e6cab24e08323ce1e8d846365a6ca1770a54f851
2022-10-17 15:38:31 -07:00
Cameron Clough
e9ee61769c Revert "updated: configure branch upstream (#25916)"
This reverts commit 5b59c71a03842f81e3e7ca57d381ce109d0d09f0.

old-commit-hash: c9c46c1b36d5784ed4245979eee5cc5f042fba12
2022-10-05 19:07:59 -07:00
Adeeb Shihadeh
a8780343d8 updated: don't show failed alert with no internet (#25948)
old-commit-hash: cd40652e64b41a87539909bab2887e7930d3001a
2022-10-02 16:13:28 -07:00
Adeeb Shihadeh
33508cd811 updated: clean untracked nested git repos (#25917)
* updated: clean untracked nested git repos

* ff all the cleans
old-commit-hash: 4e32387ce5b916df1a62ddb695c0cd10ba6f4f38
2022-09-28 16:33:42 -07:00
Adeeb Shihadeh
1bade71c4f updated: configure branch upstream (#25916)
old-commit-hash: 17ed8dd0e9a8ecd0dcf8b573176ea27355c6a1ee
2022-09-28 16:08:32 -07:00
Adeeb Shihadeh
7e200374a8 updated: check overlay mounted
old-commit-hash: d2869f4779495685730c5eb27e90fabf559f68d4
2022-09-26 16:57:21 -07:00
Adeeb Shihadeh
3e18ef26d4 updated: allow reusing overlay (#25883)
old-commit-hash: b2376909f4b3c95f27eb11d081d3952566b06815
2022-09-23 19:44:18 -07:00
Cameron Clough
8fdfc606c2 updater: enable branch switching with installer gitconfig (#25854)
old-commit-hash: e29988ab7b5aad52f8e0c1903cca6ecabd9ed143
2022-09-20 16:41:20 -07:00
Adeeb Shihadeh
7f6ef061bf updated: commits are always strings
old-commit-hash: 805a54ad0f24b64bb1253f5aeed6e5b99c3f842e
2022-09-19 17:41:37 -07:00
Adeeb Shihadeh
46cfb5c45b 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
old-commit-hash: c4e63d14ab158118efc6eadd0e20d8d533f9e046
2022-09-15 15:12:36 -07:00
Adeeb Shihadeh
768ca2ab2b updated: remove niceness (#25791)
old-commit-hash: 96ef9b1f0c15ecc0695401ca4e5c103d52fb088f
2022-09-14 20:06:19 -07:00
Adeeb Shihadeh
8e7b9f68fc updated: prevent blocking on git (#25788)
* updated: prevent blocking on git

* remove that
old-commit-hash: e8c8bd902d6c21173e4067b348e2762e5aefc4ab
2022-09-14 18:02:06 -07:00
Adeeb Shihadeh
4c68149cb0 updated: run lfs prune (#25729)
old-commit-hash: f2d9ecb08afdab2c547d4114fb6804ccffde00e5
2022-09-12 15:31:12 -07:00
Adeeb Shihadeh
d9c279aea9 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
old-commit-hash: 90a4565eb29fe95fc83acf6e4f0ea0851c284d61
2022-08-26 20:46:19 -07:00
Shane Smiskol
58c7b65b78 Fix release tests
old-commit-hash: 758069464cfcc2d0c3c991533aa800707aa823c1
2022-07-18 22:05:11 -07:00
Adeeb Shihadeh
95df2c9b48 updated: add branch switching (#25200)
* switch param

* add to ui

* fix that

* fetch for new branch

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cc3857eb62cd169be05a4cb22c844a8b2ec94139
2022-07-18 21:18:10 -07: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
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
Adeeb Shihadeh
d33afc2cac remove custom markdown rendering (#24538)
* remove custom markdown rendering

* remove from release
old-commit-hash: 222c7cd60d96c5972fa9fd163d54c93116ffdd2c
2022-05-14 22:18:13 -07:00
Dylan Herman
2dfba97175 add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c777ef6110c7a74d2a9ca9e4e1d958c
2022-05-12 14:59:00 +02:00
Adeeb Shihadeh
66065b527b updated: reduce frequency of unnecessary updates (#24301)
* updated: reduce frequency of unnecessary updates

* little cleanup
old-commit-hash: e8a9b9ed8c31d119ab0d3043db305966b3103c33
2022-04-22 19:18:49 -07:00
Willem Melching
b9fb3cb647 updated: only run offroad & disable automatic git garbage collection (#24269)
* updated: disable automatic git garbage collection

* set gc.autoDetach false

* add gc cloudlogs

* trigger updated

* handle exception

* trigger updated

* only while offroad

* no trigger needed

* trigger updated

* check if git gc was interrupted

* trigger updated

* dont set params when shutting down

* let manager clear params

* no offroad check anymore

* event is nicer to parse

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3063c70ff1b6277b002639679e18e2990b2296d2
2022-04-22 14:43:44 -07:00
Adeeb Shihadeh
5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86a621dd35f4ff25da7a26ee506bac76
2022-04-18 17:55:23 -07:00
Willem Melching
5a420cb9e6 updated: reduce data usage (#24204)
* reduce updated data usage

* Update selfdrive/updated.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0b2b1f3e566227915f9573b83ff940ca1c9e7f26
2022-04-13 13:48:38 -07: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
Ewout ter Hoeven
f206ebd054 Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305)
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default

Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a8241fba9459cb70c76840b9670e6993a
2021-12-24 11:18:39 -08:00
Ewout ter Hoeven
a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +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
Adeeb Shihadeh
db8e512ee5 updated: handle execptions while setting params
old-commit-hash: c6d3306dbe32a7f438c5422426d570316a697cba
2021-12-10 22:49:32 -08:00
Adeeb Shihadeh
fc641646ed updated: move update alerts out of thermald (#23028)
* updated: move update alerts out of thermald

* cleanup last update time

* set on startup
old-commit-hash: b79eaca18df6535066a23a128d124f75e8bb6bdd
2021-12-04 22:15:55 -08:00
Mayfield
72c892e014 ui: render markdown in release notes (#22754)
* convert release notes from markdown to html

* fall back to previous behavior if utf8 decoding or markdown parsing throws

* make simple markdown parser to avoid needing a library

* add unit test

* move markdown parser to common. add unit test

use `markdown-it-py` instead of `markdown` dependency for test comparison since it's already in Pipfile.lock

* test (almost) all release notes and add some extra html encoding

* update lock

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1aebe6ff6e7097cef973f73a990c270d1f6d682b
2021-11-04 16:12:39 +01:00
Adeeb Shihadeh
104ba7be84 updated: add a few missing type hints
old-commit-hash: 9ca16560e2314e9b953a5fcc04d19f0fb6b9ab6b
2021-10-25 15:58:26 -07:00
Adeeb Shihadeh
47a983fb00 updated: add persistent param for build date (#22237)
old-commit-hash: ed70c5aaf537d14ca870d30851172c7a5242b7d1
2021-09-14 20:24:41 -07:00
Adeeb Shihadeh
9193e1afa1 Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e9dbc29dcf5ea02bb257a8f576a0556
2021-09-10 17:03:54 -07:00
Adeeb Shihadeh
ef7b6016b1 updated: move final git reset before finalizing update (#22168)
old-commit-hash: d4b42042331fe797efa144d7e5646c92925386db
2021-09-08 10:47:38 -07:00
Adeeb Shihadeh
8b512c4b75 updated: log successful update swap (#22144)
old-commit-hash: da1aa2704603fc15d1a6bbbe1d603c15b6be0cf5
2021-09-06 13:48:19 -07:00
Adeeb Shihadeh
8b8e77575c fix crash due to permissions when clearing update staging dir (#21790)
old-commit-hash: 3a7444250cb8ac9b6315d76df240de6a4b9aec51
2021-07-29 19:50:34 -07:00
Adeeb Shihadeh
57cc915aa9 updated: clear overlay on exception (#21489)
old-commit-hash: a44072753d43dc6bb67e3e326438637bc9a62d20
2021-07-05 19:27:06 -07:00
Willem Melching
c8810406da tici: flash bootloader partitions from manifest (#21399)
* move swapping to python

* only create downloader if needed

* typo

* number

* add sanity check

* boot full check to test

* manifest is required argument

* implement full hash check

* off by one

* new manifest

* only write tag for system

* bump splash

* review comments part 1

* trigger update

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: 7c6bf89e043fe559b3bc4d19391c9c9af095a998
2021-06-30 14:20:58 +02:00
Adeeb Shihadeh
e56a6919bd fixup release build (#21430)
* fixup release3 build

* works on pc

* install release3

* push dashcam

* only import on tici

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49d96f0acc5d6675357b5f9bed3958ada48c0874
2021-06-28 14:30:44 -07:00