Cameron Clough
995250ae49
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
1 year ago
Adeeb Shihadeh
be4bbca9a3
[bot] Update Python packages and pre-commit hooks ( #31508 )
...
* Update Python packages and pre-commit hooks
* remove that
---------
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
1 year ago
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 db5e13b991
.
* fix pm test
2 years ago
Adeeb Shihadeh
74f741d0be
agnos updater: set timeout on download ( #25927 )
3 years ago
Adeeb Shihadeh
c6b749fb96
add pyside2 package ( #25602 )
3 years ago
Adeeb Shihadeh
6590fb2b93
pre-commit: add codespell ( #25571 )
3 years ago
Willem Melching
906a8a912c
casync: only when run from updater ( #25130 )
...
* casync: only when run from updater
* also here
3 years ago
Willem Melching
b6df0cd242
casync: handle hash failure ( #25081 )
...
* casync: handle hashing failure due to IO errors
* fix comment
* all exceptions
* fix typo
* Update system/hardware/tici/agnos.py
3 years ago
Willem Melching
4080f729be
casync: compute seed caibx url on the fly ( #25046 )
...
* compute seed hash on the fly
* more logging
* partition name in url
* fix comment
3 years ago
Willem Melching
3900781092
add casync support to agnos updater ( #23654 )
...
* add casync option to agnos updater
* open if necessary
* add python implementation
* last chunk can be small
* check flags
* cleaner check
* add remote and file stores
* remote caibx file
* print stats
* use python implementation
* clean up imports
* add progress
* fix logging
* fix duplicate chunks
* add comments
* json stats
* cleanup tmp
* normal image is still sparse
* Update system/hardware/tici/agnos.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update system/hardware/tici/agnos.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add some types
* remove comment
* create Chunk type
* make readers a class
* try agnos 5.2
* add download retries
* catch all exceptions
* sleep between retry
* revert agnos.json changes
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Adeeb Shihadeh
1139fe507b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
3 years ago
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