Commit Graph

92 Commits

Author SHA1 Message Date
Adeeb Shihadeh 7cd9568423
remove dashcam branch (#31081)
* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
2024-01-19 14:05:03 -08:00
Adeeb Shihadeh 4c2bb9f380
updated: only fetch on metered connection when necessary (#31041)
* updated: only fetch on metered connection when necessary

* button always fetches
2024-01-17 16:30:08 -08:00
Adeeb Shihadeh b92e71a2b6
updated: persist more state between runs for UI (#30963)
* persist branches and more

* fix target

* typo

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-10 23:23:13 -08:00
Adeeb Shihadeh 35f819c823
swaglog.py goes in common/ (#30631)
* swaglog.py goes in common/

* all of these go in release

* we'll even include the pyx
2023-12-06 17:27:51 -08:00
Adeeb Shihadeh 99fbd4b150
updated: wait 1m before first cycle (#30492) 2023-11-18 21:55:56 -08:00
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 db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
2023-08-20 20:49:55 -07:00
Justin Newberry 7fdd9fc37c
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
2023-08-09 13:26:54 -07:00
Justin Newberry a91764954b
Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit cb31a53d8a.
2023-08-08 14:24:04 -07:00
Justin Newberry cb31a53d8a
CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
2023-08-08 13:41:30 -07:00
Justin Newberry ce2708fa67
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>
2023-07-18 21:26:05 -07:00
Adeeb Shihadeh 24f4ada36d
updated: fix brief notification of update for same version (#27182) 2023-02-02 10:25:20 -08:00
Cameron Clough 15828c4fea
updated: reset working tree in each submodule (#26316)
* updated: reset working tree in each submodule

* run after fetch too
2022-11-03 19:02:39 -07:00
Adeeb Shihadeh 4639862bae
UI: show git commit date (#26240)
* show version description while offroad

* ui fixups

* parse date

* cleanup
2022-10-25 15:21:43 -07:00
Cameron Clough e6cab24e08
updated: sync submodules (#26121) 2022-10-17 15:38:31 -07:00
Cameron Clough c9c46c1b36
Revert "updated: configure branch upstream (#25916)"
This reverts commit 17ed8dd0e9.
2022-10-05 19:07:59 -07:00
Adeeb Shihadeh cd40652e64
updated: don't show failed alert with no internet (#25948) 2022-10-02 16:13:28 -07:00
Adeeb Shihadeh 4e32387ce5
updated: clean untracked nested git repos (#25917)
* updated: clean untracked nested git repos

* ff all the cleans
2022-09-28 16:33:42 -07:00
Adeeb Shihadeh 17ed8dd0e9
updated: configure branch upstream (#25916) 2022-09-28 16:08:32 -07:00
Adeeb Shihadeh d2869f4779 updated: check overlay mounted 2022-09-26 16:57:21 -07:00
Adeeb Shihadeh b2376909f4
updated: allow reusing overlay (#25883) 2022-09-23 19:44:18 -07:00
Cameron Clough e29988ab7b
updater: enable branch switching with installer gitconfig (#25854) 2022-09-20 16:41:20 -07:00
Adeeb Shihadeh 805a54ad0f updated: commits are always strings 2022-09-19 17:41:37 -07:00
Adeeb Shihadeh c4e63d14ab
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
2022-09-15 15:12:36 -07:00
Adeeb Shihadeh 96ef9b1f0c
updated: remove niceness (#25791) 2022-09-14 20:06:19 -07:00
Adeeb Shihadeh e8c8bd902d
updated: prevent blocking on git (#25788)
* updated: prevent blocking on git

* remove that
2022-09-14 18:02:06 -07:00
Adeeb Shihadeh f2d9ecb08a
updated: run lfs prune (#25729) 2022-09-12 15:31:12 -07:00
Adeeb Shihadeh 90a4565eb2
params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
2022-08-26 20:46:19 -07:00
Shane Smiskol 758069464c Fix release tests 2022-07-18 22:05:11 -07:00
Adeeb Shihadeh cc3857eb62
updated: add branch switching (#25200)
* switch param

* add to ui

* fix that

* fetch for new branch

Co-authored-by: Comma Device <device@comma.ai>
2022-07-18 21:18:10 -07:00
Adeeb Shihadeh 0fce5d9045
Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh 1139fe507b
Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
2022-06-11 16:38:24 -07:00
Willem Melching f49a9c9fd2
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>
2022-06-02 15:20:51 +02:00
Adeeb Shihadeh 222c7cd60d
remove custom markdown rendering (#24538)
* remove custom markdown rendering

* remove from release
2022-05-14 22:18:13 -07:00
Dylan Herman d2eef1955c
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>
2022-05-12 14:59:00 +02:00
Adeeb Shihadeh e8a9b9ed8c
updated: reduce frequency of unnecessary updates (#24301)
* updated: reduce frequency of unnecessary updates

* little cleanup
2022-04-22 19:18:49 -07:00
Willem Melching 3063c70ff1
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>
2022-04-22 14:43:44 -07:00
Adeeb Shihadeh 5c48e7bc86
remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
2022-04-18 17:55:23 -07:00
Willem Melching 0b2b1f3e56
updated: reduce data usage (#24204)
* reduce updated data usage

* Update selfdrive/updated.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-13 13:48:38 -07:00
George Hotz dc96d4bee7
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>
2021-12-28 18:07:00 +01:00
Ewout ter Hoeven 332f568a82
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>
2021-12-24 11:18:39 -08:00
Ewout ter Hoeven 55390d273f
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>
2021-12-16 14:58:17 +01:00
Shane Smiskol b745a14ff7
version.py: make function names more clear (#23216)
* rename a few version functions

* and is_prebuilt

* and some formatting 😊
2021-12-14 12:15:13 +01:00
Adeeb Shihadeh c6d3306dbe updated: handle execptions while setting params 2021-12-10 22:49:32 -08:00
Adeeb Shihadeh b79eaca18d
updated: move update alerts out of thermald (#23028)
* updated: move update alerts out of thermald

* cleanup last update time

* set on startup
2021-12-04 22:15:55 -08:00
Mayfield 1aebe6ff6e
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>
2021-11-04 16:12:39 +01:00
Adeeb Shihadeh 9ca16560e2 updated: add a few missing type hints 2021-10-25 15:58:26 -07:00
Adeeb Shihadeh ed70c5aaf5
updated: add persistent param for build date (#22237) 2021-09-14 20:24:41 -07:00
Adeeb Shihadeh b3705ede5e
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>
2021-09-10 17:03:54 -07:00
Adeeb Shihadeh d4b4204233
updated: move final git reset before finalizing update (#22168) 2021-09-08 10:47:38 -07:00
Adeeb Shihadeh da1aa27046
updated: log successful update swap (#22144) 2021-09-06 13:48:19 -07:00