cl0cks4fe
dd9d5d4528
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>
11 months ago
Shane Smiskol
e964c5944d
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>
1 year ago
Justin Newberry
16d1339553
test_logreader: test internal scenarios ( #31484 )
...
* test source scenario
* test source scenario
* fix
1 year ago
Justin Newberry
8aee0d2af2
test_logreader: test interactive mode + fix typo in AUTO_INTERACTIVE ( #31481 )
...
* fix spelling
* test interactive
* remove that
* test taht
* move that
1 year ago
Justin Newberry
1436f576df
LogReader: retain old behavior for direct parsing of files ( #31419 )
...
* maintain exception
* test that head is not called
* annoying mock
* test with cache
1 year ago
Shane Smiskol
796671fe1a
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
1 year ago
Shane Smiskol
8fe9bc7a69
SegmentRange: simplify slice ( #31455 )
...
* simplify slicing
* rm
1 year ago
Shane Smiskol
c4f7991bb6
SegmentRange: test API call ( #31456 )
...
* test
* better
* better
1 year ago
Shane Smiskol
8276371009
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
1 year ago
Shane Smiskol
0846175f44
tools/lib: format code ( #31454 )
...
easier to read. pylint used to catch all this stuff, but it's mostly missing in ruff :'(
1 year ago
Justin Newberry
f873224235
LogReader: test auto mode fallback ( #31390 )
...
* test auto mode
* better
* slow
* better
1 year ago
Justin Newberry
b17f24d68e
test_logreader: test run_across_segments ( #31305 )
...
* more logreader tests
* not in ci for now
* enable cache
1 year ago
Justin Newberry
c782fbc34e
LogReader: add ```.filter``` ( #31222 )
...
add filter
1 year ago
Justin Newberry
88dcaa51c4
LogReader: no redownloading on multiple iterations ( #31141 )
...
* no redownload
* sort
1 year ago
Justin Newberry
d574013d7b
LogReader: don't use route for max_segment ( #31129 )
...
* dont use route
* fix and cleanup
1 year ago
Justin Newberry
35e1e8ecd2
SegmentRange: __str__ get preferred format ( #31126 )
...
get canonical
1 year ago
Justin Newberry
2967cada71
auto_source: optimize api calls and use head to determine if file exists ( #31025 )
...
* fast
* catch all
* source
* fix file_exists
* remove duplicate reset
* test multiple loops
* iterations
* cleanup imports
1 year ago
Justin Newberry
0739d5d7b2
LogReader: support lists of identifiers ( #31020 )
...
* support lists of logs
* mark as slow instead
1 year ago
Adeeb Shihadeh
e17e66180c
CI: speedup unit test job ( #30995 )
...
* start
* mv to buildjet
* fix
1 year ago
Justin Newberry
3d73512c07
rename segmentrangereader to logreader ( #30981 )
...
* Replace multilogiterator
* replace logreader
* update readme
* fix from_Bytes
* new section
* reset before iter
* selector
* fix internal
* whitespace
1 year ago
Justin Newberry
eb09294fc2
segmentrangereader: support direct parsing ( #30973 )
...
* use correct source
* revert
* cleanup imports
* clean
* direct parsing
* rename
* move up
* fixes
* fix that
* better error message
1 year ago
Justin Newberry
fb994ae782
segmentrangereader: support more sources ( #30970 )
...
* support more sources
* remove this
1 year ago
Justin Newberry
be814ed447
SegmentRangeReader: log type selector ( #30960 )
...
* log type selector
* test this too
* and this
* invalid selector
* use strenum
* don't hardcode size
* oneline
1 year ago
Justin Newberry
0d126e1e9e
SegmentRangeReader: new format for reading multiple segments ( #30940 )
...
* segment range reader
* rename that
* revert that
* cleanup
* revert this for now
* revert this for now
* Fix + test
* rm that
* rm that
* use for auto_fingerprint
* simpler
* for notebook too
* match numpy indexing
* just use numpy directly
* remove that
* spacing
* spacing
* use qlog for auto fingerprint
* add 'read mode'
* pass in read mode
* add test for modes
* numpy indexing
* fix that case
* more examples
* fix the notebook
* cleanup the notebook
* cleaner
* fix those
1 year ago