Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SA-master to c05bff58b8fa5323a4633f5fb8029bbf700bdaac #562

Closed
wants to merge 213 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
a0eed0c
hyundai enable radar points script cleanup (#23451)
gregjhogan Jan 8, 2022
0c075a6
Toyota: use common DBC for TSSP Camry Hybrid (#23453)
sshane Jan 9, 2022
f6c6e34
calibrationd: remove extra comma (#23472)
deanlee Jan 9, 2022
b2beb5e
controls: check contents in tuple instead of list (#23463)
deanlee Jan 10, 2022
2d08f8b
controlsd: save lat_plan.dPathPoints to local variable (#23462)
deanlee Jan 10, 2022
67af095
controlsd: check all_valid only if not initialized (#23437)
deanlee Jan 10, 2022
842ba8e
C2 detection (#23439)
robbederks Jan 10, 2022
8eec818
events: cleanup function any (#23479)
deanlee Jan 10, 2022
1b49ce6
Statsd (#23413)
robbederks Jan 10, 2022
a653461
check in tuple instead of list (#23477)
deanlee Jan 10, 2022
4ff9ee8
monkeypatch os.link (#23480)
robbederks Jan 10, 2022
4208fe0
LongControl: remove redundant check on active (#23481)
deanlee Jan 10, 2022
779e602
add missing toyota fw engine (#23272)
AlexandreSato Jan 10, 2022
3ce4976
thermald: track engaged state in param and kmsg (#23478)
pd0wm Jan 10, 2022
1a54d7f
Ignore statsd for running process check (#23483)
robbederks Jan 10, 2022
fa3055f
smaller docker image (#23469)
adeebshihadeh Jan 10, 2022
7eca4d6
tools: better joystick instructions
adeebshihadeh Jan 10, 2022
ed5e58c
Hyundai: use regular Hyundai safety mode and add radar DBC (#23461)
hoomoose Jan 10, 2022
233a6e4
LanePlanner: offsets cleanup (#23459)
sshane Jan 10, 2022
24213ac
lfs: easier to use config (#23490)
gregjhogan Jan 11, 2022
6e817f9
manager: default driverview to False (#23492)
sshane Jan 11, 2022
44592f4
statsd: run at 2Hz (#23493)
pd0wm Jan 11, 2022
35ec6ac
use ndarray.tolist to convert numpy array to float (#23485)
deanlee Jan 11, 2022
8444f82
calibrationd: convert existing calibration to numpy (#23494)
pd0wm Jan 11, 2022
5fb9c6a
thermald has slowly started to use more CPU
pd0wm Jan 11, 2022
678732d
AlertManager: cleanup add_many (#23438)
deanlee Jan 11, 2022
85dcfbb
update comment (#23495)
haraschax Jan 12, 2022
a186bcc
cleanup iterate keys in dictionaries (#23497)
deanlee Jan 12, 2022
79577e4
boardd: remove ublox timestamp logging (#23498)
pd0wm Jan 12, 2022
dbae5e7
lateral_planner: use nympy.isnan().any() (#23500)
deanlee Jan 12, 2022
b1a226b
VW MQB: Add FW for 2022 Volkswagen Atlas (#23501)
jyoung8607 Jan 12, 2022
eb9f359
Toyota: Support Avalon 2022 (TSS2.5) (#23381)
sshane Jan 12, 2022
08a1ce0
update release notes
adeebshihadeh Jan 12, 2022
3816ecf
bump opendbc
adeebshihadeh Jan 12, 2022
9941c99
process replay: handle inf and nan in absolute tolerance
adeebshihadeh Jan 12, 2022
de572c3
calibrationd: fix indentation (#23502)
deanlee Jan 12, 2022
e5f9af4
calibrationd: Don't repeatedly call get_valid_idxs() (#23473)
deanlee Jan 12, 2022
f808b17
use roll std from locationd (#23449)
nuwandavek Jan 13, 2022
7d7c0ff
tools: add bootlog helpers (#23504)
adeebshihadeh Jan 13, 2022
ee52a61
add pre-commit hook for large files (#23505)
adeebshihadeh Jan 13, 2022
c214aee
cleanup .gitattributes (#23503)
gregjhogan Jan 13, 2022
9e1428f
Do not disable loggerd when below 5% space (#23440)
pd0wm Jan 13, 2022
48b6dfa
controlsd: check self.enabled out of the any() (#23507)
deanlee Jan 13, 2022
c84a085
bump cereal: more qlog decimation
pd0wm Jan 13, 2022
fcfea4c
Kia Niro EV - replace \000 by \x00 (#23509)
jonjander Jan 13, 2022
6d16b0c
can_printer.py: default no ascii
pd0wm Jan 13, 2022
1538013
pandad: only reset pandas on first run (#23511)
pd0wm Jan 13, 2022
6d5dce2
Subaru: fix missing commas in fingerprints (#23512)
adhintz Jan 13, 2022
2c94f15
linter: don't allow implicitly concatenated strings (#23513)
adeebshihadeh Jan 13, 2022
d5f4fdb
eliminate xx filereader (#23514)
gregjhogan Jan 13, 2022
57156c4
Chrysler: remove standstill exception for gas disengage (#23515)
jyoung8607 Jan 14, 2022
df35ebd
fix filereader cd:/ replacement
gregjhogan Jan 14, 2022
a6b46c3
filereader better name for cd:/ replacement
gregjhogan Jan 14, 2022
6dbae95
UI: reset interactivity timeout on PC (#23508)
deanlee Jan 14, 2022
9f4fd73
Toyota: DBC signal renames (#23452)
cydia2020 Jan 14, 2022
fd042a5
controlsd: cleanup parsing android log (#23421)
deanlee Jan 14, 2022
feae375
swaglog.cc: add test case. fixed the ctx of the first message is empt…
deanlee Jan 14, 2022
8c53adf
swaglog: add daemon name to context (#23518)
adeebshihadeh Jan 14, 2022
610b99f
Log android system shutdown to param (#23520)
adeebshihadeh Jan 14, 2022
ef3a549
thermald: remove modem version log (#23524)
pd0wm Jan 14, 2022
e72eb1d
thermald: remove brightness setting on ui crash (#23527)
pd0wm Jan 14, 2022
ed23177
thermald: remove panda disconnect logic (#23526)
pd0wm Jan 14, 2022
53ca036
thermald: let manager handle shutdown (#23528)
pd0wm Jan 14, 2022
b75e410
boardd: panda_state_thread run closer to 2 Hz (#23529)
pd0wm Jan 14, 2022
785180d
MainWindow::eventFilter: add static keyword for evts (#23521)
deanlee Jan 14, 2022
75be122
ui/WifiManager: inherit from QObject instead of QWidget (#23523)
deanlee Jan 14, 2022
39d904d
ui/networking: combine connect functions into one (#23522)
deanlee Jan 14, 2022
308a6f1
manager: log exit reason (#23532)
adeebshihadeh Jan 14, 2022
43a2674
ui/networking: simplify dbus calls with a helper function (#23531)
deanlee Jan 14, 2022
c6b892f
shutdownd is non essential
adeebshihadeh Jan 14, 2022
7e83d9a
camerad: Out of bounds memory write (#23534)
geohot Jan 14, 2022
b63bc89
sentry fixups (#23249)
adeebshihadeh Jan 14, 2022
6bd0e4b
ui: fix invalid line vertices on startup (#23541)
deanlee Jan 15, 2022
345c48a
sentry: rename release environment to release
adeebshihadeh Jan 15, 2022
cf89ded
sentry: rotate keys
adeebshihadeh Jan 15, 2022
a6e8d31
Toyota: fix typo (#23548)
incognitojam Jan 16, 2022
1221d88
swaglog: Fix random test failure (#23546)
deanlee Jan 16, 2022
d5bdf1e
docs/cars.md: fix brand sorting (#23551)
GregorKikelj Jan 17, 2022
fe0f9aa
test_logcatd_android.py: catch unicode decode error
pd0wm Jan 17, 2022
850a230
thermald: move dbus and other slow calls into thread (#23525)
pd0wm Jan 17, 2022
5cd103c
controlsd: remove extra space (#23553)
deanlee Jan 17, 2022
e38564b
Add missing CAMRY_TSS2 engine & fwdCamera f/w (#23555)
ErichMoraga Jan 17, 2022
f7932f8
ui/networking: async dbus calls (#23535)
deanlee Jan 17, 2022
3f89834
master and forks aren't dirty
adeebshihadeh Jan 17, 2022
59894a6
clear no entry alerts if engaged (#23559)
adeebshihadeh Jan 17, 2022
14bb145
Add missing COROLLA_TSS2 ESP f/w (#23562)
ErichMoraga Jan 18, 2022
2d7bb41
bump cereal
pd0wm Jan 18, 2022
e6a73e4
camerad: return 0 from main() (#23565)
deanlee Jan 18, 2022
f76328b
Log MPC solver time (#23566)
pd0wm Jan 18, 2022
498d54b
boardd: move main() to main.cc for test cases (#23564)
deanlee Jan 18, 2022
5b385c3
thermald refactor seems to have lower CPU usage
pd0wm Jan 18, 2022
0681474
work on acados lateral MPC (#23558)
FreyJo Jan 18, 2022
acb17e2
Add missing ALPHARD_TSS2 f/w (#23567)
ErichMoraga Jan 18, 2022
d31ff2c
dmonitoringd: make real-time process (#23554)
pd0wm Jan 18, 2022
f239a50
FW for Toyota Highlander 2021 Hybrid (#23571)
michaelhonan Jan 19, 2022
d3505fb
dmonitoringd: remove duplicate call on update when driver engaged (#2…
deanlee Jan 19, 2022
22d6c05
bump opendbc
adeebshihadeh Jan 19, 2022
14e45df
these dbcs are the same
adeebshihadeh Jan 19, 2022
7a0e9d5
fix suffix
adeebshihadeh Jan 19, 2022
f32f535
Toyota: use single DBC for Lexus NXH, Lexus RXH, HighlanderH, Rav4H (…
cydia2020 Jan 19, 2022
783db0c
Toyota: unify Sienna, Avalon, Highlander Lexus NX, Lexus RX into sing…
cydia2020 Jan 19, 2022
22d4321
loggerd: make test_loggerd.py run on PC (#23574)
deanlee Jan 19, 2022
f85a75c
Toyota: LKAS_HUD expansion (#23573)
cydia2020 Jan 20, 2022
5b2d2f3
Honda: use Pilot DBC for Ridgeline
adeebshihadeh Jan 20, 2022
fc8d402
androidd cloudlogs are errors
adeebshihadeh Jan 20, 2022
d898ccc
VW MQB: Update steering angle and actuator delay (#23584)
jyoung8607 Jan 20, 2022
9208298
Update refs for PR:#23584)
haraschax Jan 20, 2022
a4f4d4c
androidd: track system_server too
adeebshihadeh Jan 20, 2022
6a95145
NEOS 19 (#23586)
adeebshihadeh Jan 21, 2022
d3d10e0
Ensure controlsd can engage again in process replay (#23556)
pd0wm Jan 21, 2022
0f95e60
save dongleid as value to limit cardinality (#23594)
robbederks Jan 21, 2022
aa9e635
Add more type hinting (#23595)
Jan 21, 2022
bca92a9
ui: fix lead vertex coordinates (#23550)
deanlee Jan 21, 2022
61383dc
camerad: cleanup main.cc (#23593)
deanlee Jan 22, 2022
1e955b3
bringing the android to agnos
adeebshihadeh Jan 22, 2022
3305a6f
profiler setup
adeebshihadeh Jan 22, 2022
0a5115d
Toyota: add fwVersion for 2018 CHR (#23604)
rescircuit Jan 22, 2022
2e6e566
VW MQB: Add FW for 2015 Golf 7 2.0 TDI (#23603)
sraka1 Jan 22, 2022
1e90636
ui/setup: check http status code (#23597)
deanlee Jan 22, 2022
c51561c
process replay: disable alive checks for cpp replay
pd0wm Jan 24, 2022
1a96886
thermald: increase kmsg loglevel to end up in console-ramoops-0
pd0wm Jan 24, 2022
a4fefdc
RawLogger: downscale qcamera before encoding (#23607)
deanlee Jan 24, 2022
3e9cb7f
remove community features toggle (#23214)
adeebshihadeh Jan 24, 2022
f006e39
remove ridgeline DBC from release files
adeebshihadeh Jan 24, 2022
f295d51
tools: auto plotjuggler install
adeebshihadeh Jan 24, 2022
b18c4ee
Toyota: move gas pedal definitions into common DBC (#23582)
adeebshihadeh Jan 24, 2022
cdd3598
GM: use generated DBC (#23615)
adeebshihadeh Jan 25, 2022
652ef27
loggerd: less error logging
adeebshihadeh Jan 25, 2022
4f827e2
Honda: Merge Pilot_2019 into Pilot (#23590)
vanillagorillaa Jan 25, 2022
e50efd7
controlsd: remove redundant condition
adeebshihadeh Jan 25, 2022
347583d
Use Wide Road Camera as Light Sensor for Screen Brightness (#23610)
krkeegan Jan 25, 2022
b5b70ca
bump panda and cereal
pd0wm Jan 25, 2022
4e87b2b
bump panda
pd0wm Jan 25, 2022
31d147d
controlsd: verify unsafe mode consistency (#23563)
sshane Jan 25, 2022
6be70a0
LateralPlanner: Move lane change logic to another class (#23476)
sshane Jan 25, 2022
ea2da86
use codecov action (#23618)
pd0wm Jan 25, 2022
698ab6a
collect C++ code coverage (#23619)
pd0wm Jan 25, 2022
818d4a0
manager: don't start uploader with dongle id
adeebshihadeh Jan 25, 2022
173c3ae
Toyota: add fw for 2020 Lexus UX250h (#23626)
sshane Jan 26, 2022
a62e914
Revert "collect C++ code coverage (#23619)"
pd0wm Jan 26, 2022
1d41919
athena: unsuccessful upload handler requests. (#23620)
RyanDale Jan 26, 2022
9de8f8c
base LatControl class (#21967)
sshane Jan 26, 2022
5ac3270
compare_logs: catch typeError (#23632)
pd0wm Jan 26, 2022
cf9eee4
INDI: replace internal rate limit by actuatorsOutput (#23243)
pd0wm Jan 26, 2022
8b5b0ae
sentry improvements (#23627)
adeebshihadeh Jan 26, 2022
703efb9
Panda: check libusb_open status (#23622)
briskspirit Jan 26, 2022
1413306
Toyota: use common gear packet signal (#23634)
sshane Jan 27, 2022
013cccf
update refs
adeebshihadeh Jan 27, 2022
cb6a683
Prepare for using the ISP (#23621)
geohot Jan 27, 2022
3c62d9d
Toyota: Move EPS torque factor to openpilot (#23635)
sshane Jan 27, 2022
33c8468
Toyota: rav4 DBC is same as corolla now
adeebshihadeh Jan 27, 2022
2240b80
Toyota: Prius V 2017 support (#23636)
adeebshihadeh Jan 27, 2022
6a9a573
tesla: fix actuatorsOutput logging (#23637)
pd0wm Jan 27, 2022
ee71fd2
clip steer saturation counter to steerLimitTimer (#23638)
pd0wm Jan 27, 2022
6366d13
Statlog in C (#23596)
robbederks Jan 27, 2022
b321d65
Toyota: CT200H DBC merged into Rav4
adeebshihadeh Jan 27, 2022
2f01bf3
Toyota: unify TNGA-K platform DBCs
adeebshihadeh Jan 27, 2022
9a211ee
Toyota: remove Prius DBC
adeebshihadeh Jan 27, 2022
4c765ac
Toyota: use common DBC for IS and RC
adeebshihadeh Jan 27, 2022
036c179
Toyota: DBC rename
adeebshihadeh Jan 27, 2022
3ca8e36
replay: ncurses GUI (#23608)
deanlee Jan 27, 2022
eaebf01
Toyota: Prius V fixups (#23640)
CT921 Jan 27, 2022
fe5056f
Toyota: merge IS and RC params
adeebshihadeh Jan 28, 2022
220877f
bump
sshane Jan 28, 2022
3645186
CANParser: remove default values (#23642)
sshane Jan 28, 2022
43c6ea8
boardd: add blocked msg cnt (#23647)
adeebshihadeh Jan 28, 2022
9dca040
boardd: get health struct from panda (#23648)
adeebshihadeh Jan 28, 2022
a901104
log error on avcodec_receive_frame (#23649)
deanlee Jan 28, 2022
bf5ee1d
bump panda
adeebshihadeh Jan 28, 2022
06541ab
Honda: Merge Passport interface (#23651)
vanillagorillaa Jan 28, 2022
2f91441
replay: cleanup functions (#23655)
deanlee Jan 28, 2022
520c99a
replay: add test case for local route (#23650)
deanlee Jan 28, 2022
fa3a787
replay: fix wrong logging for local route (#23652)
deanlee Jan 28, 2022
95caa5f
CANParser: consistent style for adding signals/checks (#23646)
sshane Jan 28, 2022
e9cd0a0
setup: add OS version to user agent (#23656)
adeebshihadeh Jan 28, 2022
2aa2031
Honda: minor carState cleanup
adeebshihadeh Jan 28, 2022
8eb6a6a
Honda: no actuation while in pre-enabled state (#23657)
adeebshihadeh Jan 28, 2022
72e00a0
No actuation while in pre-enabled state (#23658)
adeebshihadeh Jan 29, 2022
661d473
Volkswagen: no actuation while pre-enabled
adeebshihadeh Jan 29, 2022
a584436
Honda: use common DBC for PILOT and others (#23659)
sshane Jan 29, 2022
5219554
Honda: fix controls mismatch for stock PCM configs (#23662)
adeebshihadeh Jan 30, 2022
52d4189
don't show registration error on pc
adeebshihadeh Jan 30, 2022
36a3ec0
sim: fix bridge after default values removed from CANParser
adeebshihadeh Jan 30, 2022
d2735d7
test car models: fix all panda safety mismatches (#23616)
adeebshihadeh Jan 30, 2022
96743c1
Honda Pilot, Passport, Ridgeline: increase user brake threshold (#23641)
pd0wm Jan 30, 2022
c8429f9
test car models improvements (#23668)
adeebshihadeh Jan 30, 2022
8d9afa7
Log panda signature to param (#23670)
adeebshihadeh Jan 30, 2022
9ec99b5
Toyota: add COROLLA_TSS2 fw (#23661)
VAHAMAISEN Jan 31, 2022
602f92f
controlsd: only add startup event until initialized (#23671)
adeebshihadeh Jan 31, 2022
af33998
update refs
adeebshihadeh Jan 31, 2022
1c31c9b
Mazda: alert when LKAS is disabled (#23288)
Jafaral Jan 31, 2022
e6d8a84
for those who want to live in the moment
adeebshihadeh Jan 31, 2022
61de378
CANParser: remove rest of default values (#23676)
sshane Feb 1, 2022
31af75f
Toyota: merge Lexus ESH params into similar vehicles (#23673)
sshane Feb 1, 2022
b98b583
bump opendbc
sshane Feb 1, 2022
edcee81
manager: kill UI when manager failed to start
adeebshihadeh Feb 1, 2022
3e094bc
Toyota: Add missing LEXUS_RX_TSS2 engine & fwdCamera (#23691)
ErichMoraga Feb 2, 2022
5a9657c
logcat: include all logs since boot (#23692)
adeebshihadeh Feb 2, 2022
a39e635
replay: fix pause key doc (#23697)
FreyJo Feb 3, 2022
fccb80e
GM: remove noisy ignition signal (#23698)
sshane Feb 3, 2022
4715510
UI: hide power off button on C3 while onroad (#23689)
sunnyhaibin Feb 3, 2022
4e0c08c
WifiManager: fix crash if no wifi device found (#23701)
deanlee Feb 3, 2022
414d4ca
radard.py: remove trailing space (#23703)
deanlee Feb 3, 2022
6a3de97
GM: remove dashcam only cars from cars.md (#23708)
VirtuallyChris Feb 4, 2022
62e0bd5
NEOS 19.1 (#23707)
adeebshihadeh Feb 5, 2022
c05bff5
not sure we want this
adeebshihadeh Feb 5, 2022
5dbae26
Update SA-master to c05bff58b8fa5323a4633f5fb8029bbf700bdaac
sshane Mar 14, 2022
95f8c5c
bump cereal
sshane Mar 14, 2022
5538a2d
bump cereal
sshane Mar 25, 2022
55fcad5
fix missing lat_params
sshane Mar 25, 2022
3805265
fix crash later
sshane Apr 2, 2022
c632fcf
fixes
sshane Apr 4, 2022
8024a6d
more fixes
sshane Apr 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
*.keras filter=lfs diff=lfs merge=lfs -text
*.dlc filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
.media/df_profiles.jpg !filter !diff !merge text
*.ipynb filter=nbstripout -diff
external/ffmpeg/bin/ffmpeg_cuda filter=lfs diff=lfs merge=lfs -text
27 changes: 17 additions & 10 deletions .github/workflows/selfdrive_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,14 @@ jobs:
$UNIT_TEST tools/lib/tests && \
./selfdrive/boardd/tests/test_boardd_usbprotocol && \
./selfdrive/common/tests/test_util && \
./selfdrive/common/tests/test_swaglog && \
./selfdrive/loggerd/tests/test_logger &&\
./selfdrive/proclogd/tests/test_proclog && \
./selfdrive/ui/replay/tests/test_replay && \
./selfdrive/camerad/test/ae_gray_test"
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -v -F unit_tests
./selfdrive/camerad/test/ae_gray_test && \
coverage xml"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2

# process_replay:
# name: process replay
Expand Down Expand Up @@ -298,9 +300,10 @@ jobs:
# - name: Run replay
# run: |
# ${{ env.RUN }} "scons -j$(nproc) && \
# FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
# - name: Upload coverage to Codecov
# run: bash <(curl -s https://codecov.io/bash) -v -F process_replay
# FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py && \
# coverage xml"
# - name: "Upload coverage to Codecov"
# uses: codecov/codecov-action@v2
# - name: Print diff
# if: always()
# run: cat selfdrive/test/process_replay/diff.txt
Expand Down Expand Up @@ -353,7 +356,10 @@ jobs:
${{ env.RUN }} "mkdir -p selfdrive/test/out && \
scons -j$(nproc) && \
cd selfdrive/test/longitudinal_maneuvers && \
./test_longitudinal.py"
coverage run ./test_longitudinal.py && \
coverage xml"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
- uses: actions/upload-artifact@v2
if: always()
continue-on-error: true
Expand Down Expand Up @@ -396,13 +402,14 @@ jobs:
- name: Test car models
run: |
${{ env.RUN }} "scons -j$(nproc) --test && \
FILEREADER_CACHE=1 pytest selfdrive/test/test_models.py && \
FILEREADER_CACHE=1 coverage run -m pytest selfdrive/test/test_models.py && \
coverage xml && \
chmod -R 777 /tmp/comma_download_cache"
env:
NUM_JOBS: 4
JOB_ID: ${{ matrix.job }}
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -v -F test_car_models
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2

docs:
name: build docs
Expand Down
3 changes: 2 additions & 1 deletion .lfsconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[lfs]
url = https://gitlab.com/commaai/openpilot-lfs.git/info/lfs
pushurl =
pushurl = ssh://git@gitlab.com/commaai/openpilot-lfs.git
locksverify = false
16 changes: 13 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.1.0
hooks:
- id: check-ast
exclude: '^(pyextra)/'
Expand All @@ -9,8 +13,10 @@ repos:
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: check-added-large-files
args: ['--maxkb=100']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910-1
rev: v0.931
hooks:
- id: mypy
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)/'
Expand All @@ -21,17 +27,21 @@ repos:
hooks:
- id: flake8
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)|(selfdrive/debug/)/'
additional_dependencies: ['flake8-no-implicit-concat']
args:
- --indent-size=2
- --enable-extensions=NIC
- --select=F,E112,E113,E304,E502,E701,E702,E703,E71,E72,E731,W191,W6
- --statistics
- -j4
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)/'
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(laika_repo/)|(rednose_repo/)'
- repo: local
hooks:
- id: cppcheck
Expand Down
5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ known-standard-library=
# Force import order to recognize a module as part of a third party library.
known-third-party=enchant

[STRING]

# This flag controls whether the implicit-str-concat should generate a warning
# on implicit string concatenation in sequences defined over several lines.
check-str-concat-over-line-jumps=yes

[EXCEPTIONS]

Expand Down
16 changes: 11 additions & 5 deletions Dockerfile.openpilot_base
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENV PIPENV_SYSTEM=1
ENV PYENV_VERSION=3.8.10
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"

COPY Pipfile Pipfile.lock .python-version update_requirements.sh /tmp/
COPY tools/ubuntu_setup.sh /tmp/tools/
RUN cd /tmp && \
tools/ubuntu_setup.sh && \
rm -rf /tmp/* && \
rm -rf /var/lib/apt/lists/* && \
pip uninstall -y pipenv
rm -rf /tmp/* && \
rm -rf /root/.cache && \
pip uninstall -y pipenv && \

ENV PYENV_VERSION=3.8.10
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
# remove unused architectures from gcc for panda
cd /usr/lib/gcc/arm-none-eabi/9.2.1 && \
rm -rf arm/ && \
rm -rf thumb/nofp thumb/v6* thumb/v8* thumb/v7+fp thumb/v7-r+fp.sp
3 changes: 3 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
Version 0.8.13 (2022-XX-XX)
========================
* Improved driver monitoring
* Roll compensation
* Improved camera focus on the comma two
* Subaru ECU firmware fingerprinting thanks to martinl!
* Hyundai Santa Fe Plug-in Hybrid 2022 support thanks to sunnyhaibin!
* Subaru Impreza 2020 support thanks to martinl!
* Toyota Avalon 2022 support thanks to sshane!
* Toyota Prius v 2017 support thanks to CT921!

Version 0.8.12 (2021-12-15)
========================
Expand Down
2 changes: 1 addition & 1 deletion cereal
Submodule cereal updated 3 files
+8 −7 car.capnp
+8 −2 log.capnp
+3 −3 services.py
13 changes: 13 additions & 0 deletions common/file_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,25 @@ def _get_fileobject():
return writer.get_fileobject(dir=temp_dir)
return _get_fileobject

def monkeypatch_os_link():
# This is neccesary on EON/C2, where os.link is patched out of python
if not hasattr(os, 'link'):
from cffi import FFI
ffi = FFI()
ffi.cdef("int link(const char *oldpath, const char *newpath);")
libc = ffi.dlopen(None)

def link(src, dest):
return libc.link(src.encode(), dest.encode())
os.link = link

def atomic_write_on_fs_tmp(path, **kwargs):
"""Creates an atomic writer using a temporary file in a temporary directory
on the same filesystem as path.
"""
# TODO(mgraczyk): This use of AtomicWriter relies on implementation details to set the temp
# directory.
monkeypatch_os_link()
writer = AtomicWriter(path, **kwargs)
return writer._open(_get_fileobject_func(writer, get_tmpdir_on_same_filesystem(path)))

Expand All @@ -96,5 +108,6 @@ def atomic_write_in_dir(path, **kwargs):
"""Creates an atomic writer using a temporary file in the same directory
as the destination file.
"""
monkeypatch_os_link()
writer = AtomicWriter(path, **kwargs)
return writer._open(_get_fileobject_func(writer, os.path.dirname(path)))
1 change: 0 additions & 1 deletion common/params_pyx.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ cdef extern from "selfdrive/common/params.h":
cpdef enum ParamKeyType:
PERSISTENT
CLEAR_ON_MANAGER_START
CLEAR_ON_PANDA_DISCONNECT
CLEAR_ON_IGNITION_ON
CLEAR_ON_IGNITION_OFF
ALL
Expand Down
8 changes: 0 additions & 8 deletions common/tests/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ def test_params_non_ascii(self):
self.params.put("CarParams", st)
assert self.params.get("CarParams") == st

def test_params_get_cleared_panda_disconnect(self):
self.params.put("CarParams", "test")
self.params.put("DongleId", "cb38263377b873ee")
assert self.params.get("CarParams") == b"test"
self.params.clear_all(ParamKeyType.CLEAR_ON_PANDA_DISCONNECT)
assert self.params.get("CarParams") is None
assert self.params.get("DongleId") is not None

def test_params_get_cleared_manager_start(self):
self.params.put("CarParams", "test")
self.params.put("DongleId", "cb38263377b873ee")
Expand Down
Loading