Commit Graph

21 Commits

Author SHA1 Message Date
Devin Leamy
8cb83b29a6 athena: persist upload queue to disk (#22659)
* revert submodules

* lowercase

* addressed comments

* add test for cancelled uploads

* formatting

* catch all exceptions

* handle empty param

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-14 13:29:17 +01:00
Adeeb Shihadeh
9ceb1a15eb registration: remove key generation (#23111)
* registration: remove key generation

* add test
2021-12-03 22:58:34 -08:00
Willem Melching
0e78502181 remove broken athena test 2021-11-11 17:32:26 +01:00
Devin Leamy
12165c8865 athena: Do not show canceled upload items in listUploadQueue (#22627)
* do not show canceled upload items in listUploadQueue

* return item._asdict()

* athena: updated test for listUploadQueue
2021-10-20 16:16:05 +02:00
Adeeb Shihadeh
de7a9e0116 move athena tests to github actions (#22475)
* move athena tests to actions

* run

* fix timeout
2021-10-07 13:22:14 -07:00
Adeeb Shihadeh
f7bd264db8 need a jwt for those tests 2021-08-19 15:48:26 -07:00
Adeeb Shihadeh
7e3d002066 athena: hardcode jwt for tests 2021-08-19 14:19:14 -07:00
Greg Hogan
1d64c18e49 athena: change test tearDown to setUp (#21935) 2021-08-14 22:27:22 -07:00
Greg Hogan
2dff84121e athena: add prefix param to listDataDirectory (#21906)
* athena: add prefix param to listDataDirectory

* only traverse directories that match prefix

* tests
2021-08-13 12:14:20 +02:00
Willem Melching
28823917ea athena: return current upload status in listUploadQueue (#21903)
* return current upload item in listUploadQueue

* update progress on read

* move to file helpers

* use dict instead of global
2021-08-13 11:51:08 +02:00
Willem Melching
d5b6746ac5 athenad: retry failed and timed out uploads (#21745)
* retry failed uploads

* test cleanup

* update comment

* also catch SSL error

* use defaults

* sleep in chunks
2021-07-29 11:13:59 +02:00
Greg Hogan
0964871239 athenad: fix log sort (#21703)
* athenad: fix log sort

* add test for logs to send

* use temp dir for logs

* fix changing SWAGLOG_DIR

* better way to patch SWAGLOG_DIR

* fix grammar
2021-07-24 20:11:29 -07:00
Greg Hogan
ea0f7e2797 athena: version endpoint (#21045)
* athena: version endpoint

* get_version function

* more explicit version validation
2021-05-26 18:33:27 -07:00
Adeeb Shihadeh
b93ccc465d offroad alert for unregistered devices (#20870)
* offroad alert for unregistered devices

* update tests

* add param

* fix stretch
2021-05-11 03:18:45 -07:00
Adeeb Shihadeh
5b764ab477 registration unit tests (#20792)
* start tests

* more test

* done
2021-05-01 17:16:58 -07:00
Greg Hogan
1e3f8b014e logging cleanup (#20502)
* switch some uploader messages to debug log

* use allow_sleep

* log when not request or response

* test both with params and without params
2021-03-26 17:36:01 -07:00
Greg Hogan
3d48bd934d 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
2021-03-25 13:30:09 -07:00
Willem Melching
5a3b511306 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>
2021-03-05 11:03:23 +01:00
Adeeb Shihadeh
312b681a46 cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
7c82bac27e athena fixups (#19791)
* fix leak

* assert raises

* no q

* guess the queue did something
2021-01-16 15:36:10 -08:00
Adeeb Shihadeh
ffa7e0cbdb manager tests + make all processes exit cleanly (#19595)
* manager tests

* logcatd exits cleanly

* sigint

* boardd

* multiple dbus connections hangs for some reason

* clocksd proclogd

* network type from thermal

* fix tests

* fix android logcatd

* fix mac

* fix mac proclogd

* move on device athena tests

* build first

* build first

Co-authored-by: Comma Device <device@comma.ai>
2020-12-29 22:32:03 -08:00