Commit Graph

41 Commits

Author SHA1 Message Date
Adeeb Shihadeh
9a605d2617 bump c++ version for index_log 2020-10-23 22:12:30 -07:00
Willem Melching
529e9a23ea add check for partial response code (#2282) 2020-10-07 12:14:22 +02:00
Greg Hogan
2293a6a36c eliminate round-trip reading entire file (#2275)
* eliminate round-trip reading entire file

* only if reading entire file

* print headers in errors

* fix end
2020-10-05 16:59:19 -07:00
Willem Melching
927ef086f7 remove parallel url downloader 2020-09-21 10:32:08 +02:00
grekiki
05b64257df FileReader: cache files locally (#2170)
* framework for updates

* File caching

* update .gitignore

* update .gitignore

* Store in home tmp directory

* fix bugs in old code, add tests

* add test

* revert bug

* Fixed some bugs, more testing

* doing some style fixes

* Update caching with lenghts

* doing some style fixes

* doing some style fixes

* doing some style fixes

* subrepositories

* try to fix the tests

* change submodules back

* doing some style fixes

* if we don't cache, we don't cache length either

* fix curls

* make sure tests run in ci

* Cleanup tests

* Use int for cache flag

* fix linter

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-17 13:03:34 +02:00
Greg Hogan
1e6c7c94e4 fix pylint errors 2020-09-03 18:46:13 -07:00
Willem Melching
c7152d5419 Hardware abstraction class (#2080)
* hardware abstraction class

* De Morgan

* Rename pc hardware class

* Fix sound card in controlsd

* Pc get sim info

* fix hardware in test

* two more

* No more random imei on android

* no randomness on android

* Need to return something that looks like imei for registration to work

* Return proper network strength

* Unused import

* Bug fixes + gpsd is only android
2020-08-26 14:57:17 +02:00
Willem Melching
c70700758d Speedup URLFile (#1888)
* add parallel download support to URLFile

* make python 3.8 happy

* Fix chunk size

* Automatic number of threads

* No daemon threads in unlogger

* Cache length

* dont touch old filereader

* Remove debug info

* remove debug script

* Ignore type
2020-07-20 17:10:08 +02:00
Greg Hogan
32c4367ffb ffmpeg hwaccel is better 2020-06-12 16:11:40 -07:00
Adeeb Shihadeh
3463f1165e quick LGTM fixes 2020-06-05 11:29:09 -07:00
Willem Melching
63c8e8439b Model + camerad test (#1622)
* kind of works

* move that

* hack to get camerad to reliably terminate

* not sure why SIGTERM wasn't working before

* compare bytes

* clean up some hacks

* gitignore

* fix that

* WIP

* no reboot

* comparison works

* pretty print

* fix build

* run in jenkins

* python path

* space

* raise timeout

* new eon

* skip the copy

* spinner

* spin less

* update model ref commit

* reenable that

* clean up

* fix jenkinsfile

* parallel

* wrap it in a stage

* fix linter

* better progress

* lower timeout

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-06-04 18:57:25 -07:00
Adeeb
367155168a Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
2020-06-03 16:13:34 -07:00
Adeeb
ab83e48ec4 Add pre-commit hooks (#1629) 2020-06-03 12:54:49 -07:00
Willem Melching
843a64c72f Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
f3dcf861c7 enable flake8 E303: too many blank lines 2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
27754a277c enable E261 in flake8: two spaces before inline comment 2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
efd5dffb1e enable flake8 E231: missing whitespace after comma 2020-05-31 12:49:11 -07:00
Adeeb
d9bf9f0a40 Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
2020-05-30 20:14:58 -07:00
Greg Hogan
d112a58366 FrameReader env vars FFMPEG_THREADS and FFMPEG_CUDA 2020-05-28 17:33:34 -07:00
Willem Melching
3d08dcc3b2 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
2020-05-28 15:05:04 -07:00
Greg Hogan
2d0686faa1 framereader single threaded env var 2020-05-28 13:39:28 -07:00
Willem Melching
639cf2288f framereader only has to support h265 and raw (#1588) 2020-05-28 12:45:38 -07:00
Willem Melching
29aaa44740 flake8 in pre-commit(#1583) 2020-05-27 20:33:05 -07:00
Willem Melching
bd06434243 pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
2020-05-27 20:00:14 -07:00
Willem Melching
43f7fe178d not needed 2020-05-14 17:59:26 -07:00
Willem Melching
43873c9600 use system capnp 2020-05-14 17:58:43 -07:00
Willem Melching
cd79cee41a ffprobe use -f instead of -format 2020-05-11 15:32:40 -07:00
Adeeb Shihadeh
a25d535793 Revert "function doesn't have that arg"
This reverts commit d712d9cf3b.
2020-05-09 17:26:24 -07:00
Adeeb Shihadeh
d712d9cf3b function doesn't have that arg 2020-05-09 17:21:51 -07:00
Greg Hogan
0b5758f1be framereader index data as param 2020-05-07 18:23:19 -07:00
George Hotz
e568d3cadc More LGTM fixups (#1457)
* exclude lib dirs, fix 3 cpp errors

* fix more alerts, exclude mkvparse

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 20:00:41 -07:00
George Hotz
1295cfe06c Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 12:07:34 -07:00
Willem Melching
845abed5db Build log_index using scons 2020-04-30 16:26:11 -07:00
George Hotz
d4f8943075 more red diffs, remove hevc framereader stuff and two unused classes 2020-04-24 12:15:50 -07:00
Greg Hogan
f48e39778d support any number of top level dirs 2020-03-06 17:55:42 -08:00
George Hotz
2f2b85581c Add sentinels to logs and qlogs (#1205)
* sentinel WIP

* logger is now a cc, not a c

* simpler code doesn't touch loggerd.cc

* oops, double lock. and logreader is nicer
2020-03-05 14:29:34 -08:00
Andy Haden
327a255a1a tools: Print auth url to console 2020-02-25 11:44:13 -08:00
Andy Haden
4a94e507cf Revert "no more xx imports in tools"
This reverts commit 1f9485171e.
2020-02-25 11:36:02 -08:00
Willem Melching
1f9485171e no more xx imports in tools 2020-02-25 11:06:27 -08:00
Andy
c4af05868b Tools: Storage API (#1161)
* filereader

* support URLs in filereader, logreader

* unused

* use route files api; add auth file

* Implement browser auth

* Update readme, fix up cache paths

* Add tests, clear token on 401

* Factor out URLFile

* space
2020-02-24 21:24:54 -05:00
George Hotz
29ac3da7b8 merge in tools 2020-01-17 10:07:22 -08:00