Commit Graph

39 Commits

Author SHA1 Message Date
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
2022-04-18 17:55:23 -07:00
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
2022-02-16 14:30:54 +01:00
Adeeb Shihadeh
aa72de42c5 master and forks aren't dirty
old-commit-hash: 3f89834e4e
2022-01-17 13:51:30 -08:00
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
2022-01-14 15:25:16 -08:00
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
2022-01-10 15:21:48 +01:00
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
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh
5e37ac43be selfdrive/version: remove one unnecessary write to .git/ (#23183)
old-commit-hash: 13b4ff504d
2021-12-14 22:35:18 -08:00
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
2021-12-14 12:15:13 +01:00
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
2021-11-29 19:38:55 +01:00
Adeeb Shihadeh
6cdb496204 version.py: set terms and training version
old-commit-hash: a19738cba8
2021-09-11 21:07:41 -07:00
Adeeb Shihadeh
54270d569c update tested branches
old-commit-hash: 116bb0b524
2021-07-23 15:47:00 -07:00
Greg Hogan
a86a549b5d athena: version endpoint (#21045)
* athena: version endpoint

* get_version function

* more explicit version validation
old-commit-hash: ea0f7e2797
2021-05-26 18:33:27 -07:00
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
2021-01-18 13:29:01 +01:00
Adeeb Shihadeh
58f07d754c add type hints to selfdrive/version.py
old-commit-hash: 0040ac987a
2020-09-19 14:55:27 -07:00
Adeeb Shihadeh
8c86886f75 fix get_git_remote not returning a value
old-commit-hash: 0394b8b921
2020-08-12 13:50:51 -07:00
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
2020-08-12 11:38:38 +02:00
Adeeb Shihadeh
dff8e1310d fix tested branch detection
old-commit-hash: ede5b632b5
2020-07-20 13:59:10 -07:00
Adeeb Shihadeh
e8ced8bee5 Cleanup startup event handling (#1748)
* cleanup startup event

* always show permanent

* lowest

* update refs
old-commit-hash: ccf6b80c7e
2020-06-19 16:16:48 -07:00
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
2020-06-03 16:13:34 -07:00
Willem Melching
dea4e5681e default values in version.py, fixes #1187
old-commit-hash: 4695b2daa9
2020-03-03 15:21:34 -08:00
Willem Melching
9013795434 Fix dirty files reporting
old-commit-hash: c770f54103
2020-02-03 15:12:59 -08:00
Willem Melching
45b524f592 Fix version.py in case of no branch
old-commit-hash: 1de0b9c233
2020-01-28 16:18:26 -08:00
Willem Melching
7f36b608f1 cleanup version.py
old-commit-hash: b552a627e1
2020-01-28 15:55:24 -08:00
George Hotz
a7fa20b566 selfdrive/*.py
old-commit-hash: 2f9379a139
2020-01-17 11:03:42 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00
Vehicle Researcher
07aa8b1bf3 openpilot v0.6.1 release
old-commit-hash: 94053536b4
2019-07-22 19:17:47 +00:00
Vehicle Researcher
e47a2e6e30 openpilot v0.5.13 release
old-commit-hash: dd34ccfe28
2019-06-06 04:38:45 +00:00
Nigel Armstrong
042ef10fe5 Fix dirty flag
Git diff-index doesn't rebuild index, so files with modified dates or touched
are marked as modified with a SHA1 of all 0.

To fix this, we run update-index --refresh before diff index. Any touched
files are updated in the index.

https://stackoverflow.com/questions/36367190/git-diff-files-output-changes-after-git-status

old-commit-hash: 0a7fed9437
2019-04-17 00:33:13 -07:00
Nigel Armstrong
912d6aee39 Better logging of dirty files
old-commit-hash: a201322160
2019-04-16 20:22:38 -07:00
Nigel Armstrong
241d542eba Log dirty files
old-commit-hash: d64025cca4
2019-04-16 13:50:38 -07:00
Vehicle Researcher
242328f92c openpilot v0.4.7 release
old-commit-hash: ae5cb7a0da
2018-06-16 20:59:34 -07:00
Vehicle Researcher
7c1e812922 openpilot v0.4.5 release
old-commit-hash: 37285038d3
2018-04-28 09:44:39 +00:00
Vehicle Researcher
e4ba9edefa openpilot v0.4.4 release
old-commit-hash: 9a9ff839a9
2018-04-14 06:10:58 +00:00
Vehicle Researcher
171647c2fc openpilot v0.4.3.1 release
old-commit-hash: 3d628a6fe2
2018-03-19 23:40:24 -07:00
Vehicle Researcher
df22dac4f6 openpilot v0.4.3 release
old-commit-hash: 9a411ebf32
2018-03-17 00:01:50 -07:00
Vehicle Researcher
5de48a7668 openpilot v0.3.0-devel release
old-commit-hash: 4653a9aef0
2017-05-11 12:41:17 -07:00