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>
3 years ago
Dylan Herman
ee0021b86c
Add --warn-redundant-casts to mypy checks ( #24304 )
...
* add mypy checks for redundant-casts and unused-ignores
* revert unnecessary changes
* ignore
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Adeeb Shihadeh
7c9fa91fb8
fix missing time import
3 years ago
Adeeb Shihadeh
7c611cd711
flush progress print from agnos and neos updaters
4 years ago
Adeeb Shihadeh
425020a849
agnos updater: support non-sparse images ( #22371 )
...
* print progress for all partitions
* noop generator
* less spammy
* cleanup
4 years ago
Adeeb Shihadeh
060592e34a
only show updater UI if necessary ( #21787 )
...
* only show updater UI if necessary
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
6bc5566340
fix unused
4 years ago
Comma Device
56d682831b
fix updater UI repaints
4 years ago
Adeeb Shihadeh
14d26d6d89
agnos updater UI ( #21776 )
...
* start agnos updater UI
* wifi
* progress
* sometimes things fail
* fix wifi
* in launch script
* fwd
* fwd stderr
* update that
* release files
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
f4d87cecf7
agnos.py: retry swap ( #21608 )
...
* retry until success
* try this
* redirect stderr
* also check positive
* add logging
* f string
4 years ago
Adeeb Shihadeh
21c7981919
fix agnos updater bug + type hints ( #21566 )
...
* add type hints
* fix bug
* more hints
4 years ago
Willem Melching
7c6bf89e04
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>
4 years ago
Josh Smith
77321dbac4
Add type hints, small cleanups ( #21080 )
...
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl
* unpack more efficiently
* minor improvements
* agnos.py match spec better
* manual_ctrl test missing queue arg
* fix incorrect type annotation
* queues are generic
* varname reuse resulting in incorrect type inference
* bytes().hex() rather than bytes.hex(bytes())
* a bit of type hinting stuff
4 years ago
Adeeb Shihadeh
c95c4df51d
don't reflash agnos update if already flashed ( #19944 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
grekiki
7408569c1b
Add Github SSH keys ( #19879 )
4 years ago
Willem Melching
fe91b8a1b4
OS Updater improvements ( #19914 )
...
* Clear hashes before swapping
* add retry logic
* better retry logic
* actually fail on retries exceeded
4 years ago
Adeeb Shihadeh
b276881fcd
agnos updater ( #2600 )
...
* agnos updater
* add manifest
* fix path
* get manifest from overlay
* update manifest
* remove merge markers
* add streaming decompressor
* dont need read all
* Unsparsify
* Fix output filename
* Optimization
* cleanup
* Small cleanup
* Read manifest from merged overlay
* Write hash at end of partition
* Sync before writing hash
* Write bytes in file
* add manifest with image sizes
* Fix manifest path
* File was closed already
* Format string
* Put raw hash
* Read hashes in launch script
* update launch script
* should be agnos version
* fix slot
* Make sure we clear the hash
* Verify partition size
* move updated
* Standalone flasher
* Don't rely on ordering
* Get path
* Debug log
* Download agnos
* Info is enough
* update manifest
* Remove f
* Check downloader return code
* Exit on wrong manifest
* Fix typos
* Set pythonpath before hardware init
* move agnos into hardware folder
* remove comments
* Fix abstractmethod
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago