Shane Smiskol
2d4f0e2af8
remove old cache wrapper ( #32653 )
...
* remove wrapper that is functools.cache
* format
old-commit-hash: 451e171ad9
11 months ago
Adeeb Shihadeh
3358745103
ruff: enable UP
...
old-commit-hash: b2e4c64cf8
11 months ago
Justin Newberry
89f9181d6e
casync build: remove channel from build metadata json ( #32212 )
...
* remove channel
* fix
* reset
* remove this
* no channel
old-commit-hash: cedf98de5a
1 year ago
Justin Newberry
933dd500c4
agnos casync script improvements ( #32156 )
...
* build agnos
* include path
* cleanup
* rm this
* test it
* all agnos partitions are AB
* fix that
* correct
* build agnos first
* better temp dir
* revert the order
* try it on pc
* test it
* upload and fix
* build
* pass in environemnt variable
* not in jenkins
old-commit-hash: ecb648a68a
1 year ago
Justin Newberry
8a39433d7e
add ui description helper to build_metadata ( #32113 )
...
add ui_description
old-commit-hash: c95404d564
1 year ago
Justin Newberry
f2baf77e02
casync build: caidx filename is canonical representation of build ( #31964 )
...
* canonical
* short commit
* channel
* cleanup
* let's do 9 characters
* fixes
* set the build style during release creation
* as a property
old-commit-hash: 33f9193c94
1 year ago
Justin Newberry
4637e77f38
add helper for creating build_metadata from a dict ( #31958 )
...
helper
old-commit-hash: c197b3f52c
1 year ago
Justin Newberry
1548b673e0
use build_metadata everywhere we used to use get_version, get_commit, etc ( #31941 )
...
* use build_metadata
* fix normailzed
* also normalized
* and here
* fix diff
* and that one
* cleanup
old-commit-hash: effee900c4
1 year ago
Justin Newberry
1e238a2163
git commands: more parameterization on path ( #31942 )
...
* more cwd
* here top
* and here
* basedir
old-commit-hash: 806f743e12
1 year ago
Justin Newberry
3ab117d599
add get_build_metadata function ( #31923 )
...
* version
* Get build metadata
* two lines
* channel
* cwd
* default to unknown
* dataclass
old-commit-hash: 38d03b9979
1 year ago
Justin Newberry
1f218e4169
parameterize get_version and add get_release_notes function ( #31922 )
...
version
old-commit-hash: 018b6d0fae
1 year ago
Justin Newberry
a5bc36ea9d
move git commands to common/git.py ( #31921 )
...
move git into common/git.py
old-commit-hash: 4fbc8a3896
1 year ago
Cameron Clough
9bd90112d0
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
old-commit-hash: 995250ae49
1 year ago
Adeeb Shihadeh
df6154b591
log git commit date ( #31490 )
...
* log git commit date
* unix ts
* fix
* bump cereal
* cleanup
old-commit-hash: 0723c2bc5f
1 year ago
Greg Hogan
14e12980f5
simplify git remote is comma check ( #31284 )
...
* simplify git remote is comma check
* cast to str
* eliminate default and always return string
* add type annotation for cache decorator
* fix up default handling
old-commit-hash: 7affba06d8
1 year ago
Adeeb Shihadeh
972650f0eb
remove dashcam branch ( #31081 )
...
* remove dashcam branch
* fix
* more cleanup
* remove param
* one more
old-commit-hash: 7cd9568423
1 year ago
Adeeb Shihadeh
59eb2988de
swaglog.py goes in common/ ( #30631 )
...
* swaglog.py goes in common/
* all of these go in release
* we'll even include the pyx
old-commit-hash: 35f819c823
1 year ago
Justin Newberry
3b91610c0b
Precommit: ensure executable bit is set ( #29784 )
...
* precommit ensure executable
* exclude tinygrad
* bump submodules
* exclude tinygrad globally
old-commit-hash: 4e69937d0d
2 years ago
Adeeb Shihadeh
16ec56398c
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
old-commit-hash: a9626f95b6
2 years ago
Justin Newberry
7d6d3dc9ea
Ruff: flake8 pie (misc lints) ( #29318 )
...
flake8 pie
old-commit-hash: af3ed37c5c
2 years ago
Adeeb Shihadeh
858a5654b1
setup pre-built master-ci ( #27205 )
...
* try this
* add as release branch
* set the name
* build on master-ci
old-commit-hash: 0374d4817d
2 years ago
Adeeb Shihadeh
4cb61240b3
enable experimental longitudinal control on devel ( #26544 )
...
old-commit-hash: 94aa39bdd4
2 years ago
Adeeb Shihadeh
3c48bc47b7
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
old-commit-hash: 0fce5d9045
3 years ago
Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
3 years ago
Dylan Herman
2dfba97175
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>
old-commit-hash: d2eef1955c
3 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
3 years ago
Jack Huang
c0478078ee
statsd: fix crash if there is no git repository ( #23775 )
...
* fix crash if there is no git repository
* return default
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a84ddaecf1
3 years ago
Adeeb Shihadeh
aa72de42c5
master and forks aren't dirty
...
old-commit-hash: 3f89834e4e
3 years ago
Adeeb Shihadeh
fa8ba3617b
sentry fixups ( #23249 )
...
* set env
* do init in same place
* no sentry for forks
* start session
* start session
* remove that
* val
old-commit-hash: b63bc89bc9
3 years ago
Robbe Derks
323febbf37
Statsd ( #23413 )
...
* device side of statsd
* need to start it
* enable in manager
* add sleep
* cleanup
* remove aggregates for now and standardize on industry terms
* manager needs main
* need to have a try/except
* atomic_write_on_fs_tmp does not work
* cleaner
* use dump
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* one file at a time
* limit amount of files
* move to influx line protocol and cleanup
* needs to be a list
* fix timezone bug
* actually rate limit
* add to release
* normalized origin
* also log deviceType
* more stats
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1b49ce6ec4
3 years ago
Ewout ter Hoeven
a962365292
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>
old-commit-hash: 55390d273f
3 years ago
Adeeb Shihadeh
5e37ac43be
selfdrive/version: remove one unnecessary write to .git/ ( #23183 )
...
old-commit-hash: 13b4ff504d
3 years ago
Shane Smiskol
ef38c36435
version.py: make function names more clear ( #23216 )
...
* rename a few version functions
* and is_prebuilt
* and some formatting 😊
old-commit-hash: b745a14ff7
3 years ago
Willem Melching
28dd415759
Do not run code on version.py import ( #23063 )
...
* Do not run code on version.py import
* fix athena
old-commit-hash: f7c46c6949
3 years ago
Adeeb Shihadeh
6cdb496204
version.py: set terms and training version
...
old-commit-hash: a19738cba8
4 years ago
Adeeb Shihadeh
54270d569c
update tested branches
...
old-commit-hash: 116bb0b524
4 years ago
Greg Hogan
a86a549b5d
athena: version endpoint ( #21045 )
...
* athena: version endpoint
* get_version function
* more explicit version validation
old-commit-hash: ea0f7e2797
4 years ago
Willem Melching
8a187ec406
Linux tombstones: add stacktrace and upload ( #19737 )
...
* Add stacktrace to tombstones
* make sentry output prettier
* Refactor
* Generate upload filename
* Actually move file
* Fix spaces
* copy and upload
* dont delete just yet
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f3db94a0c4
4 years ago
Adeeb Shihadeh
58f07d754c
add type hints to selfdrive/version.py
...
old-commit-hash: 0040ac987a
5 years ago
Adeeb Shihadeh
8c86886f75
fix get_git_remote not returning a value
...
old-commit-hash: 0394b8b921
5 years ago
Willem Melching
eab33adbc9
Don't check dirty on prebuilt release ( #2014 )
...
* dont check dirty on prebuilt release
* cleanup
* Command cleanup
* Only log dirty comma branch
* Less whitespace
* Consistentcy
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c3a4558026
5 years ago
Adeeb Shihadeh
dff8e1310d
fix tested branch detection
...
old-commit-hash: ede5b632b5
5 years ago
Adeeb Shihadeh
e8ced8bee5
Cleanup startup event handling ( #1748 )
...
* cleanup startup event
* always show permanent
* lowest
* update refs
old-commit-hash: ccf6b80c7e
5 years ago
Adeeb
9027018368
Update Flake8 config ( #1624 )
...
* update flake8 checks
* add E502
* no whitespace warnings
* fix violations
* no W391
Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a
5 years ago
Willem Melching
dea4e5681e
default values in version.py, fixes #1187
...
old-commit-hash: 4695b2daa9
5 years ago
Willem Melching
9013795434
Fix dirty files reporting
...
old-commit-hash: c770f54103
5 years ago
Willem Melching
45b524f592
Fix version.py in case of no branch
...
old-commit-hash: 1de0b9c233
5 years ago
Willem Melching
7f36b608f1
cleanup version.py
...
old-commit-hash: b552a627e1
5 years ago
George Hotz
a7fa20b566
selfdrive/*.py
...
old-commit-hash: 2f9379a139
5 years ago
George Hotz
81dd5a50cf
root commit
...
old-commit-hash: 6c33a5c1f3
5 years ago