Commit Graph

17 Commits (cb5a2996e75658ac61f057fb729c229a554c551e)

Author SHA1 Message Date
Adeeb Shihadeh cb5a2996e7
NEOS background updater (#1892) 2020-08-12 11:39:21 -07:00
Adeeb Shihadeh 60e2267f02 fix linter 2020-08-11 20:37:51 -07:00
Adeeb Shihadeh 8e63f06540
Alert when updated consistently fails (#2013)
* alert when update fails more than 10 times

* bring over offroad alert refactor from other branch

* and we have tests

* use it in snapshot

* bump apk

* don't show exceptions on release branches

* only write when changed

* why does delete use so much cpu

* clean that up

* little more
2020-08-11 16:23:57 -07:00
Adeeb Shihadeh fe18a014c7
Updater tests (#1974)
* refactor exit handling

* test update

* more reliable?

* better

* init git in CI

* testy tester

* CI should work

* test overlay reinit

* only one

* still need to fix loop test

* more patience

* more patience in CI

* no ping in CI

* this is cleaner

* need to run these in jenkins

* clean up

* run in jenkins

* fix test file path

* it's a git repo now

* no commit

* reinit

* remove duplicate

* why not git

* la

* git status

* pythonpath

* fix

* no CI fro now

* check overlay consistent

* more tests

* make more changes in the update commit

* sample

* no k
2020-08-06 21:49:05 -07:00
Adeeb Shihadeh a115366ddd
Improve update reliability and responsiveness (#1986)
* handle orphaned git lock

* trigger update after going offroad

* git ping
2020-08-06 12:49:11 -07:00
Adeeb Shihadeh f61dcb6e12
Cleanup updated (#1981)
* remove dead code from updated

* no short

* simpler

* simplify that

* move that into the class

* little more
2020-08-05 13:29:03 -07:00
Adeeb Shihadeh 88c67e7e9f
improve updated responsiveness (#1973) 2020-08-04 13:48:19 -07:00
Adeeb Shihadeh 62a94eb0cd
fix blocking sleep in updated (#1860) 2020-07-12 01:46:18 -07:00
Jason Young c43df81214
Make updated more resilient (#1853)
* Add sleep at updated startup

* Mitigate symlink-related FS damage
2020-07-10 07:41:26 -04:00
George Hotz cb495bb8c9
Add an SSH param to disable updates (#1807)
* disable updates with optional param

* dont create the alert

* Revert "dont create the alert"

This reverts commit 7179a6c8b4b4656e0b203b5a590b33d3388aa9c9.

* keep alert, but allow engagement

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-07-01 14:26:35 -07:00
Adeeb 367155168a
Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
2020-06-03 16:13:34 -07:00
Willem Melching 843a64c72f
Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
2020-06-02 16:29:32 -07:00
Willem Melching 0418da517a
updater read git config first (#1376) 2020-04-16 11:55:16 -07:00
Andy 54f34abdb3
Replace usages of datetime.now() with datetime.utcnow() (#1267) 2020-03-26 19:49:58 -07:00
Adeeb e8cb6ea06a
Abstract common events + event cleanup (#1129)
* too many if

* unused

* whitespace

* key

* sefldrive/car/*

* no more gctx

* lower

* start abstracting common events

* all cars

* start small

* all cars

* reverse gear

* wrongCarMode

* wrongGear

* espDisabled

* steerUnvailable

* make linter happy

* c isn't used

* fix esp_disabled in VW

* update ref

* more red

* more cleanup

* fix subaru

* update ref
2020-02-20 16:22:25 -08:00
Willem Melching a5bd1d2a88
Only show update alert if updater failed once since reboot (#1078)
* Only show update alert if updater failed

* no negetive days in warning message

* Also increase failed count when no internet

* Only set count to zero on actual update

* First run always fails because IsOffroad is not set yet
2020-02-11 14:59:37 -08:00
George Hotz 2f9379a139 selfdrive/*.py 2020-01-17 11:03:42 -08:00