Adeeb Shihadeh
86b6103657
test_*.py files are no longer executable ( #32610 )
...
* test_*.py files are no longer executable
* cleanup empty lines
* update precommit
* fixme
* enable
* build
old-commit-hash: c59887c810
11 months ago
Adeeb Shihadeh
3358745103
ruff: enable UP
...
old-commit-hash: b2e4c64cf8
11 months ago
cl0cks4fe
639a634f7c
Unittest to pytest ( #32366 )
...
* add pytest-asyncio
* switch common
* switch selfdrive
* switch system
* switch tools
* small fixes
* fix setUp and valgrind pytest
* switch to setup
* fix random
* switch mock
* switch test_lateral_limits
* revert test_ui
* fix poetry.lock
* add unittest to banned-api
* add inline ignores to remaining unittest imports
* revert test_models
* revert check_can_parser_performance
* one more skip
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528
11 months ago
Greg Hogan
a17639bddb
logreader: skip internal source if connection refused ( #32418 )
...
* logreader: skip internal source if connection refused
* fix indentation
* fix spacing
* explicit ipv4 and tcp
old-commit-hash: 2a46d71fc8
12 months ago
Justin Newberry
6cc3c1ee0f
jenkins: publish casync releases from device ( #32142 )
...
* publish in ci
* overwrite
* publish in ci
* fix
* test it
* Revert "test it"
This reverts commit b3de51dc69
.
* use right token
* cleanup after uploading
---------
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8364cd2f2c
1 year ago
Justin Newberry
881ccd321e
fix logreader after `segment_numbers` api removal ( #32073 )
...
fix
old-commit-hash: fc9f50c90d
1 year ago
Cameron Clough
c401892058
tools: remove unused timestamp_to_datetime ( #31950 )
...
old-commit-hash: 27d2a6066d
1 year ago
Justin Newberry
b899592b18
cars: platform enums -> prepend brand name ( #31927 )
...
* with brand name
* migrate
* Fix
* fixes
* more
* passes
* fix
* fix the doc
* collects
* these too
* more stuff
* body exception :/
* more
* hardcode i guess
* update ref
* toyota
* more toyota
* and here
* final!
* fix notebooks and ccs
* move this here
old-commit-hash: b0eb3ba4f4
1 year ago
thenhnn
77d6d1a8f1
PlatformConfig: automatically get platform_str from the enum name ( #31868 )
...
* get platform_str from the enum name
* fix tests
* add migration table
* remove impossible todo
* Add link to PR in MIGRATION table
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Remove useless brand name comments and rename RAM_1500 to RAM_1500_5TH_GEN
* rename RAM_HD to RAM_HD_5TH_GEN
* rename references to RAM_HD and RAM_1500
* change "mock" to "MOCK" and rename torque data of Nissan Leaf 2018 IC
* remove MOCK from fingerprints.py
* change hard-coded car model in test_can_fingerprint.py/test_timing
* migration
* update ref
* space
* prius
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: justin newberry <justin@comma.ai>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 489528dcae
1 year ago
Justin Newberry
529699f3fe
logreader: fix auto source + interactive modes ( #31847 )
...
* interactive modes
* these exceptions don't matter
old-commit-hash: a819292073
1 year ago
Shane Smiskol
bc7664aa2b
LogReader: fix sort by time and union types ( #31565 )
...
* fix :(
* test_sort_by_time
* this isn't required
* not slow, and just compare sorted
* messy
* works
* clean up
* clean up
* not here
* clean up
* clean up
* clean up
* makes network call
---------
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: e964c5944d
1 year ago
Adeeb Shihadeh
9735cf2eb6
timeless routes ( #31119 )
...
* timeless route
* update sort
* update test
* fix param name
old-commit-hash: 7cfc571f56
1 year ago
Justin Newberry
6f9f45182b
disable commaCarSegments tests ( #31632 )
...
disable this test too
old-commit-hash: f4a7e8eae6
1 year ago
Justin Newberry
c799790b9b
move with_http_server to selfdrive/test/helpers ( #31597 )
...
* move
* fix
old-commit-hash: 9d1cafd0fc
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
Justin Newberry
cc77d0ca34
segment range docs update ( #31560 )
...
* the format
* cleaner
old-commit-hash: 556f973896
1 year ago
Greg Hogan
b4479b4155
URLFile: default value test ( #31544 )
...
* URLFile: default value test
* cleanup
* fix env
* improvements
* fix GET response
* only delete cache dir if it exists
* env pop
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 43f64ec500
1 year ago
Shane Smiskol
aeb904d5da
test_fw_query_on_routes: get first qlog ( #31496 )
...
* fast
* this isn't internal
* see
old-commit-hash: c5f1f4c676
1 year ago
Justin Newberry
8dbdd4736c
test_logreader: test internal scenarios ( #31484 )
...
* test source scenario
* test source scenario
* fix
old-commit-hash: 16d1339553
1 year ago
Justin Newberry
42f292b3ce
test_logreader: test interactive mode + fix typo in AUTO_INTERACTIVE ( #31481 )
...
* fix spelling
* test interactive
* remove that
* test taht
* move that
old-commit-hash: 8aee0d2af2
1 year ago
Greg Hogan
6c51d1563d
URLFile: add typing and internalize pool manager ( #31466 )
...
* URLFile: add typing and internalize pool manager
* cleanup
old-commit-hash: e59fe0014a
1 year ago
Justin Newberry
edd4649d24
LogReader: add typing hints ( #31464 )
...
logreader typing
old-commit-hash: 33cf6bda9e
1 year ago
Justin Newberry
38fc6f9dd6
LogReader: retain old behavior for direct parsing of files ( #31419 )
...
* maintain exception
* test that head is not called
* annoying mock
* test with cache
old-commit-hash: 1436f576df
1 year ago
Shane Smiskol
9d941a9682
SegmentRange: more explicit slice matching ( #31451 )
...
* more explicit
* fix it
* use non capturing group
* only needed for regex101
* make test_logreader.py executable
* fix
* stash
* passes test
* none
* type anotate
* test
* fix
* nice for syntax highlighting
old-commit-hash: 796671fe1a
1 year ago
Shane Smiskol
5c16ae62d8
SegmentRange: simplify slice ( #31455 )
...
* simplify slicing
* rm
old-commit-hash: 8fe9bc7a69
1 year ago
Shane Smiskol
ae65a01afd
SegmentRange: test API call ( #31456 )
...
* test
* better
* better
old-commit-hash: c4f7991bb6
1 year ago
Shane Smiskol
7afdb2393d
SegmentRange: type annotations ( #31453 )
...
* type annotate SegmentRange
* proper formatting
* oops
* numpy?
format test too
* draft
* fixed
* clean up
* rm
* more
* clean up
* clean up
* rm
* not here
* revert
old-commit-hash: 8276371009
1 year ago
Shane Smiskol
4c7ad7f3b7
tools/lib: format code ( #31454 )
...
easier to read. pylint used to catch all this stuff, but it's mostly missing in ruff :'(
old-commit-hash: 0846175f44
1 year ago
Shane Smiskol
a4e61c1022
SegmentRange: define __repr__
...
old-commit-hash: 884bd5c7f6
1 year ago
Justin Newberry
8b5f1235f4
live_logreader to its own file ( #31436 )
...
own file
old-commit-hash: d6762c3035
1 year ago
Adeeb Shihadeh
1efa8db1b4
dongle id is only hex ( #31426 )
...
* dongle id is only hex
* so is the count
old-commit-hash: e9071f1198
1 year ago
Justin Newberry
fbf5ada69f
LogReader: live_logreader helpers ( #31416 )
...
live helper
old-commit-hash: 0a92c5bf96
1 year ago
Greg Hogan
1384c10fb0
logreader: skip internal source if not available ( #31400 )
...
* logreader: skip internal source if not available
* raise exception
* but only when appropriate
old-commit-hash: 667693b8c2
1 year ago
Justin Newberry
02aea8b757
test_caching: use with_http_server ( #31393 )
...
use http server
old-commit-hash: 664a3c86ba
1 year ago
Justin Newberry
bcd22c1683
LogReader: test auto mode fallback ( #31390 )
...
* test auto mode
* better
* slow
* better
old-commit-hash: f873224235
1 year ago
Greg Hogan
cb6a47c6bf
simplify URLFile ( #31365 )
...
* simplify URLFile
* more space
old-commit-hash: ec9f3dcef3
1 year ago
Justin Newberry
3f934381fe
test_logreader: test run_across_segments ( #31305 )
...
* more logreader tests
* not in ci for now
* enable cache
old-commit-hash: b17f24d68e
1 year ago
Greg Hogan
54dc43fe14
make URLFile safe after fork() ( #31309 )
...
* make URLFile safe after fork()
* cache the pool manager in each instance
* type hints
old-commit-hash: a8aa04e6bd
1 year ago
Justin Newberry
9b4b5d3cf5
LogReader: skip file_exists check for comma_api ( #31251 )
...
* valid file
* missed this one
old-commit-hash: 6010a39bf8
1 year ago
Justin Newberry
16e0907129
LogReader: add ```.filter``` ( #31222 )
...
add filter
old-commit-hash: c782fbc34e
1 year ago
Justin Newberry
223b1ed065
LogReader: add tqdm back to run_across_segments ( #31216 )
...
tqdm
old-commit-hash: 7835f9cce0
1 year ago
Justin Newberry
abfa8fcda9
CommaCarSegments: BIG Database! ( #31169 )
...
* sanetized selector
* god damn
* add to re
* slog branch
* slog
* source
* big
* not slog
* cleanup
* no space
* works!
* trigger
* main!
old-commit-hash: 824ddffec8
1 year ago
Adeeb Shihadeh
048629564e
bootlog: remove timestamp from filename ( #31187 )
...
* bootlog: remove timestamp from filename
* revert route
* test
* revert that
* fix loggerd test
old-commit-hash: 2504341070
1 year ago
Adeeb Shihadeh
f1a81dd57e
tools: add LOG_ID regex pattern ( #31186 )
...
old-commit-hash: 52c7514452
1 year ago
Justin Newberry
0d0e6191a8
commaCarSegments cleanup ( #31182 )
...
* cleanup
* no space
old-commit-hash: 9518b66c9e
1 year ago
Greg Hogan
01eccef5de
filereader should use connection pool for file_exists ( #31158 )
...
* filereader should use connection pool for file_exists
* remove debug var
old-commit-hash: 6901aada14
1 year ago
Justin Newberry
9edc902106
LogReader: fail-fast on invalid segments ( #31152 )
...
* don't check all
* is
old-commit-hash: edd2428b60
1 year ago
Justin Newberry
7d76ac8eba
LogReader: replace get_first_message with LogReader.first ( #31146 )
...
* first
* str
old-commit-hash: dd0c474e6c
1 year ago
Justin Newberry
67bb21219c
LogReader: no redownloading on multiple iterations ( #31141 )
...
* no redownload
* sort
old-commit-hash: 88dcaa51c4
1 year ago
Justin Newberry
0d558d02ee
auto_source: add commaCarSegments source ( #31137 )
...
add source
old-commit-hash: ac71c30ad5
1 year ago