Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
fd5b3d7
move replay from selfdrive/ui/replay to tools/replay (#24971)
deanlee Jun 28, 2022
42d51a1
Properly pass KF dependencies to rednose (#24985)
pd0wm Jun 28, 2022
712445c
build.py: remove retry logic (#24986)
pd0wm Jun 28, 2022
75f5282
Chrysler: fix steering angle signals (#24926)
sshane Jun 28, 2022
4db3ca4
Toyota: Add missing 2021 RAV4 TSS2 esp FW (#24989)
sshane Jun 29, 2022
e0cd3bf
framereader.cc: remove nv12toyuv_buffer (#24991)
deanlee Jun 29, 2022
67cf209
bump cereal
pd0wm Jun 29, 2022
bef5350
don't log LaikadEphemeris in initData
pd0wm Jun 29, 2022
879a7c3
UI: wrap all text for translation (#24961)
sshane Jun 29, 2022
f79b068
Honda Civic 2022: remove LKAS fault reinitialization (#24979)
sshane Jun 30, 2022
e643f8e
docs: ssh.comma.ai (#25000)
gregjhogan Jun 30, 2022
8d53e2c
Multilang: remove redundant QString() around tr() (#25003)
deanlee Jun 30, 2022
867a1cf
ui: replace line_vertices_data with QPolygonF (#25001)
deanlee Jun 30, 2022
b3f4e94
remove selfdrive/common (#24997)
deanlee Jun 30, 2022
1ac1fe6
swaglog.cc/cloudlog_common: pass json object by reference (#24996)
deanlee Jun 30, 2022
7178800
Multilang prerequisites (#24999)
sshane Jun 30, 2022
e20d2cf
Camerad: small cleanup (#24992)
deanlee Jun 30, 2022
d13137a
camerad: reduce cpu usage (#24993)
deanlee Jun 30, 2022
30ddadc
test onroad: lower camerad cpu usage
pd0wm Jun 30, 2022
af7d3c1
cameraview.cc: prev_frame_id static -> class member
pd0wm Jun 30, 2022
ca800da
cameraview.cc: qInfo -> qDebug
pd0wm Jun 30, 2022
c49f997
Add laikadOffline subtest to process replay. (#24995)
gijskoning Jun 30, 2022
dd43ae2
Full localizer: Use standard naming conventions (#25007)
haraschax Jun 30, 2022
f0062f6
Toyota: fix BSM detection (#24964)
sshane Jun 30, 2022
2027d53
tools: add support for nv12 in compressed_vipc (#24962)
maxime-desroches Jun 30, 2022
8b32e1b
GM: Lower LKA loopback CAN Error timing threshold to accommodate drop…
JMPZ11 Jun 30, 2022
11b5d51
remove mypy ignore from a few scripts
adeebshihadeh Jun 30, 2022
9279c02
GM: prep and cleanup for future ports (#24910)
JMPZ11 Jun 30, 2022
61d21ff
update release notes
adeebshihadeh Jun 30, 2022
d2c2154
Clean up CarControllers (#25008)
sshane Jul 1, 2022
38ff298
Chrysler: carState signals update (#24760)
realfast Jul 1, 2022
ab85921
Chrysler Pacifica 2019 is supported (#25010)
sshane Jul 1, 2022
c21ee5b
Chrysler: add missing 2022 Pacifica Hybrid fingerprint (#24685)
TheWizard1328 Jul 1, 2022
b51a90b
Mazda: add missing FW version for CX-5 2022 (#24925)
ymgaq Jul 1, 2022
20ccfed
laikad: Improve logging, fix warning and more exception handling (#25…
gijskoning Jul 1, 2022
c8e5912
bump laika
pd0wm Jul 1, 2022
12f8237
process replay: Fix setting environment vars (#25015)
gijskoning Jul 1, 2022
f102830
Laikad: dont log when filter is not initialized
gijskoning Jul 1, 2022
cdc7a6d
enable laikad (#25013)
pd0wm Jul 1, 2022
8d6799d
Laikad: Allow fetching orbits every minute (#25016)
gijskoning Jul 1, 2022
fcc5b3d
GM: values.py cleanup & minor updates (#24908)
JMPZ11 Jul 1, 2022
e11bb76
car docs: remove steering torque hard-coding (#25019)
sshane Jul 2, 2022
0c95493
Torque control: max torque warning (#25018)
haraschax Jul 2, 2022
5f794fe
settings.cc: remove function network_panel (#25030)
deanlee Jul 4, 2022
735387d
bump opendbc
pd0wm Jul 4, 2022
d4cc13c
controlsd: avoid lag on first iteration due to get_short_branch (#25031)
pd0wm Jul 4, 2022
3900781
add casync support to agnos updater (#23654)
pd0wm Jul 5, 2022
06a8ac6
casync: build_chunk_dict optimize for resuming (#25038)
pd0wm Jul 5, 2022
0bf1462
Update path for github workflow hardware unit tests (#25035)
martinl Jul 5, 2022
d4f4809
always show avg power
adeebshihadeh Jul 5, 2022
88a3000
Chrysler: prep for Ram port (#25040)
adeebshihadeh Jul 5, 2022
eaa8b08
Subaru: XV is supported (#25034)
martinl Jul 5, 2022
f21b56f
regen migration: use Panda safety parameters (#25043)
sshane Jul 6, 2022
972e24e
Add new LEXUS_RX_TSS2 engine f/w (#25041)
ErichMoraga Jul 6, 2022
73a6348
car docs: add video for Hyundai Kona Hybrid 2020 (#25029)
haram-KONA Jul 6, 2022
38427e6
Toyota: add missing esp FW version for 2021 Toyota Corolla (#25026)
0312birdzhang Jul 6, 2022
f797567
long planner: run when using stock longitudinal (#25017)
sshane Jul 6, 2022
59c2861
bump opendbc
adeebshihadeh Jul 6, 2022
50434d6
casync: reuse requests session in RemoteChunkReader (#25045)
pd0wm Jul 6, 2022
4080f72
casync: compute seed caibx url on the fly (#25046)
pd0wm Jul 6, 2022
6065871
add casync to release files
pd0wm Jul 6, 2022
e336f25
bump laika
gijskoning Jul 6, 2022
b88d7c8
laikad: Filter unwanted pseudoranges (#25051)
gijskoning Jul 6, 2022
3e5e27f
Add missing 2019 RAV4 Hybrid engine FW version (#25057)
sshane Jul 7, 2022
ea241bf
FW fingerprinting: log all FW versions (#25042)
sshane Jul 7, 2022
479b66c
VW FPv2: reduce number of ECU queries (#24939)
sshane Jul 7, 2022
9b0acac
Ram 1500 (#24878)
adeebshihadeh Jul 7, 2022
fd2de54
Stock longitudinal: spam resume button when lead starts moving (#24873)
sshane Jul 7, 2022
30cb9ac
FW query debug script: print version brand (#25058)
sshane Jul 7, 2022
edf1701
Process replay: Fix subtest diff (#25054)
gijskoning Jul 7, 2022
a3a9a06
onroad.cc: fix mutcd sign width for metric speed limit
pd0wm Jul 7, 2022
eaf7eb4
Laikad: Use clocks for faster fetching orbits (#25060)
gijskoning Jul 7, 2022
356190f
fix MacOS buid: replay frameworks (#25061)
pd0wm Jul 7, 2022
7e18742
athena: skip duplicate upload requests (#25062)
pd0wm Jul 7, 2022
ea80ee0
Chrysler: resume from cruise standstill (#25009)
adeebshihadeh Jul 7, 2022
8d98d8c
process replay: add Ram route (#25063)
adeebshihadeh Jul 7, 2022
568cc0f
loggerd: remove 'enable' from struct LogCameraInfo (#25052)
deanlee Jul 7, 2022
836e2a4
Chrysler: fix steer fault detection (#25068)
adeebshihadeh Jul 7, 2022
bd2ea15
Add Chinese (traditional) translations (#25064)
sshane Jul 7, 2022
b035b53
chill ram tune (#25071)
adeebshihadeh Jul 7, 2022
dc3d94d
UI: fix unable to scroll on 'Regulatory' page (#25014)
deanlee Jul 7, 2022
ff3f6de
UI: fix reset calibration description
adeebshihadeh Jul 7, 2022
a4c9076
Hyundai: limit Kona torque (#25074)
adeebshihadeh Jul 8, 2022
bd432eb
move kona limit to car controller
adeebshihadeh Jul 8, 2022
1382e28
add pandas and tabulate packages (#25076)
adeebshihadeh Jul 8, 2022
d8089fb
Add video for 2020 Lexus ES Hybrid
sshane Jul 8, 2022
ed47032
Add Korean translations (#25073)
crwusiz Jul 8, 2022
c9fa5ef
AGNOS 5.2 (#25011)
adeebshihadeh Jul 8, 2022
5b4e399
Add Japanese translations (#25078)
sshane Jul 8, 2022
dccb184
some more release notes
pd0wm Jul 8, 2022
b5399fb
add multilang to release notes
pd0wm Jul 8, 2022
c5e9620
RELEASES.md: new driving model goes first
pd0wm Jul 8, 2022
b6df0cd
casync: handle hash failure (#25081)
pd0wm Jul 8, 2022
7a4c337
laikad: add residual threshold for pos_fix (#25082)
pd0wm Jul 8, 2022
a940131
nav: use laikad position if locationd is not yet available (#25033)
pd0wm Jul 8, 2022
cf862b6
Laikad: Fix getting covariances for pos and velocity (#25084)
gijskoning Jul 8, 2022
c049427
Update RELEASES.md
haraschax Jul 8, 2022
35c8c0e
casync: increase chunk download timeout
pd0wm Jul 8, 2022
0b6cf04
Add Traditional Chinese translations (#25077)
eFiniLan Jul 8, 2022
e0f8f50
Improve Chinese (Simplified) translations (#25075)
hellokitty-666 Jul 8, 2022
df251ef
Fix master-ci dirty working tree + CI test (#25087)
adeebshihadeh Jul 8, 2022
8ea9822
remove casync from agnos manifest for now
adeebshihadeh Jul 8, 2022
1d6623c
update release notes
adeebshihadeh Jul 8, 2022
5f77451
FW fingerprinting updates (#25088)
sshane Jul 8, 2022
b5f0cb2
Add Chrysler FPv2 requests and logging (#24460)
realfast Jul 8, 2022
c907a0c
add chrysler fw query to release notes
adeebshihadeh Jul 8, 2022
76dde00
Update RELEASES.md
ZwX1616 Jul 8, 2022
4c49323
Interleave VIN queries (#25090)
sshane Jul 9, 2022
94c8717
Add missing HIGHLANDERH_TSS2 ESP & engine f/w (#25066)
ErichMoraga Jul 9, 2022
949de4d
UI: Internationalization support (#21212)
sshane Jul 9, 2022
cbff8fc
Nav: wrap strings (#25089)
sshane Jul 9, 2022
f261b8a
EV6: supress LFA (#25094)
adeebshihadeh Jul 9, 2022
825acfa
Improve EV6 tune (#25085)
adeebshihadeh Jul 9, 2022
d08a231
Ship EV6 (#25095)
adeebshihadeh Jul 9, 2022
89d1d9f
firmware fingerprinting: order brand requests (#23311)
gregjhogan Jul 9, 2022
eb17291
Display the current language in MultiOptionDialog (#25098)
deanlee Jul 9, 2022
be7f704
Fix new steer saturated warning with joystick mode (#25113)
sshane Jul 11, 2022
5e896ce
Improve Simplified Chinese translations (#25091)
ZwX1616 Jul 11, 2022
c181d47
fix a translation line break
ZwX1616 Jul 11, 2022
30d88d6
update main_zh-CHS.qm
ZwX1616 Jul 11, 2022
bdfaa1d
Ram 1500 torque tune (#25117)
haraschax Jul 11, 2022
903bb40
Improve Korean translations (#25105)
crwusiz Jul 11, 2022
2ae52e9
process replay: ensure enabled for significant amount of time (#25121)
adeebshihadeh Jul 12, 2022
29c8e5d
Chrysler: increase Ram torque rate limit
adeebshihadeh Jul 12, 2022
045c881
couple more stinger MYs supported
adeebshihadeh Jul 12, 2022
614b3a0
Chrysler: limit buttons to 20Hz (#25125)
adeebshihadeh Jul 12, 2022
4d7b748
Replay: tolerances per field (#25116)
gijskoning Jul 12, 2022
f0b5ff5
Replay: Fix --upload-only (#25127)
gijskoning Jul 12, 2022
205f6f7
casync: manifest compare script (#25129)
pd0wm Jul 12, 2022
105afee
Laikad: set cache dir to comma_download_cache (#25131)
gijskoning Jul 12, 2022
780c603
process replay: fix string failures after #25127
adeebshihadeh Jul 12, 2022
1f17f81
Add missing RAV4H_TSS2_2022 engine f/w (#25111)
ErichMoraga Jul 12, 2022
ecac734
update compatibility docs with VIN data (#25134)
adeebshihadeh Jul 12, 2022
ea449f1
Use upstream wait-on-check-action action (#25126)
sshane Jul 12, 2022
b632d56
UI: change wording for dcam preview description (#25142)
ZwX1616 Jul 12, 2022
ee6dc03
fix accord years
adeebshihadeh Jul 13, 2022
00bb07f
fw_versions.py: fix debug scanning (#25144)
sshane Jul 13, 2022
44c6ca7
EV6: reject fake cruise engagements (#25143)
adeebshihadeh Jul 13, 2022
aadaaab
compatibility docs: print diff from PR (#24941)
sshane Jul 13, 2022
01de46a
Corolla Cross: Update minimum enable speed (#25132)
sshane Jul 13, 2022
906a8a9
casync: only when run from updater (#25130)
pd0wm Jul 13, 2022
0eab1ed
Mazda: CX-5 22 FW FP (#24778)
Jafaral Jul 13, 2022
3b4e939
UI: translations cleanup (#25120)
sshane Jul 13, 2022
97d7ee3
Chrysler: send LKAS control bit while above minSteerSpeed (#25150)
adeebshihadeh Jul 13, 2022
e710ba5
Car docs diff bot: skip PRs from forks (#25151)
sshane Jul 13, 2022
a7b778c
Mazda: Support CX-9 2022 (#25147)
Jafaral Jul 13, 2022
3a8f171
Log VIN response address (#25148)
sshane Jul 13, 2022
0edd820
README.md: update directory structure
pd0wm Jul 13, 2022
a006cd1
run pre-commit in release CI (#25158)
pd0wm Jul 13, 2022
49dd56f
nav: draw inactive lanes with 50% opacity (#25157)
pd0wm Jul 13, 2022
18f2a50
disable_ecu.py: remove duplicate file (#25154)
sshane Jul 13, 2022
d571991
Chrysler: never drop control bit on older models (#25159)
adeebshihadeh Jul 13, 2022
18c1700
RAV4 2022: Add missing engine fw (#25136)
sshane Jul 13, 2022
5a7c2f9
bump panda
adeebshihadeh Jul 13, 2022
c805115
Civic 2022: Add missing fw versions (#25164)
sshane Jul 14, 2022
93a1ca8
Multilanguage Contributing README (#25170)
sshane Jul 14, 2022
c7771d1
Bump laika and catch Downloadfiles exception.
gijskoning Jul 14, 2022
3160f86
bump version to 0.8.16
adeebshihadeh Jul 14, 2022
f38204a
camerad: cleanup unused RGB code (#25172)
pd0wm Jul 14, 2022
811bb1b
bump cereal
pd0wm Jul 14, 2022
98676fb
Toyota: don't send UI on Prius V (#25036)
cydia2020 Jul 14, 2022
e203794
VW MQB: Update supported models and model-years (#25123)
jyoung8607 Jul 14, 2022
70678bb
Update Corolla Cross Hybrid f/w & doc (#25178)
ErichMoraga Jul 14, 2022
505bbce
controlsd: handle radar missing + cleanup system error handling (#25179)
adeebshihadeh Jul 15, 2022
5ccc2b8
Laikad: improve logging + posfix every 2 sec (#25184)
gijskoning Jul 15, 2022
91eb096
replay: add support for reading from plain logs (#25053)
deanlee Jul 15, 2022
98a0cd9
Ford: FPv2 firmware request (#24211)
incognitojam Jul 15, 2022
93cd028
nav: toggle to show on left side of onroad ui (#25169)
gregjhogan Jul 18, 2022
2a5da48
2021 pacifica is supported
adeebshihadeh Jul 18, 2022
ee081f2
FPv2: fingerprint on all FW combinations (#25204)
sshane Jul 19, 2022
54e168f
Honda Civic 2022: add missing FW versions (#25206)
sshane Jul 19, 2022
a803245
Ford FPv2: send engine FW request to OBD port (#25202)
incognitojam Jul 19, 2022
500d166
simplify compatibility docs (#25190)
adeebshihadeh Jul 19, 2022
cc3857e
updated: add branch switching (#25200)
adeebshihadeh Jul 19, 2022
7580694
Fix release tests
sshane Jul 19, 2022
b30871d
CarInfo: parse out model years (#25208)
sshane Jul 19, 2022
777b090
Car docs: add video for 2016 RAV4 Hybrid (#25209)
ridgewayer25 Jul 19, 2022
7351384
Hyundai: add missing 2022 Santa Fe FW versions (#25205)
sshane Jul 19, 2022
b5e3678
Car info diff comment: don't fail if car info structure changes (#25193)
sshane Jul 19, 2022
5ea641b
Highlander: merge params (#25210)
sshane Jul 19, 2022
06acb12
bump cereal
pd0wm Jul 19, 2022
86c1e81
navd: add back VisionIPC map renderer (#25212)
pd0wm Jul 19, 2022
8553893
Kia Niro PHEV 2018: add missing FW versions (#25187)
bnoeldner Jul 19, 2022
50f7545
UI: add description for branch switcher
adeebshihadeh Jul 19, 2022
30f21cb
Update translations
sshane Jul 19, 2022
464db12
Multilanguage: readme improvements (#25214)
sshane Jul 19, 2022
38e8abe
VW MQB: Add FW for 2016 Volkswagen Golf (#25213)
jyoung8607 Jul 19, 2022
2de0af2
jenkins: patch sshd config in continue.sh
adeebshihadeh Jul 19, 2022
26dad24
Multilang: Improve Japanese translations (#25108)
cydia2020 Jul 19, 2022
5f021ac
Subaru: use CANPacker for counter (#25216)
adeebshihadeh Jul 20, 2022
0eacab7
Car docs: hide footnotes for hidden columns (#25219)
sshane Jul 20, 2022
1b2d0ce
bump cereal
pd0wm Jul 20, 2022
4212afa
Car docs diff bot: detect name + year changes (#25224)
sshane Jul 20, 2022
a1f4723
docs: fix Table of Contents link to "in a car" section (#25225)
Staudey Jul 20, 2022
c50a14a
Car docs: update Toyota supported packages (#25218)
sshane Jul 20, 2022
180c2ab
Improve Japanese translations (#25226)
sshane Jul 20, 2022
9c9a0f0
remove comma two branches
adeebshihadeh Jul 20, 2022
1f22101
car incompatibility docs (#25227)
adeebshihadeh Jul 21, 2022
c875f54
Car docs: fix typo
sshane Jul 21, 2022
c528dec
multilanguage: compile QM in scons (#25217)
sshane Jul 21, 2022
278d689
less beeps for steering override faults (#25196)
adeebshihadeh Jul 21, 2022
af1c8e5
Subaru Forester: 2022 requires new harness (#25229)
sshane Jul 21, 2022
444de29
FW versions dump (#25203)
sshane Jul 21, 2022
c3e95d5
prereq for matching speeds shown on cars dash (#25222)
pd0wm Jul 21, 2022
75473da
Mazda: update supported models info (#25230)
Jafaral Jul 21, 2022
e66145f
Multilanguage: Korean improvements/translations (#25231)
crwusiz Jul 21, 2022
2892397
better star descriptions (#25236)
adeebshihadeh Jul 21, 2022
8e35951
Kia Niro EV 2019: add missing FW versions (#25223)
sshane Jul 21, 2022
cb73f9d
Chinese (Traditional): Add/improve translations (#25228)
eFiniLan Jul 21, 2022
063cd13
Impreza 2017: add missing eps FW (#24892)
chengyu-k Jul 21, 2022
aec9b2c
Hyundai: add Genesis G90 2017 FW versions (#25183)
gribneau Jul 21, 2022
e6e8607
implement string representation for Bootlog
adeebshihadeh Jul 21, 2022
937013e
FPv2: log all responses (#25239)
sshane Jul 21, 2022
0ca62bf
let can packer handle counter (#25240)
adeebshihadeh Jul 22, 2022
2f80898
body: fix integrator freezing in turn loop (#25243)
adeebshihadeh Jul 22, 2022
0c5668d
Revert "remove casync from agnos manifest for now"
adeebshihadeh Jul 22, 2022
f300a8d
use v_cruise_cluster_kph for hudControl.setSpeed (#25245)
pd0wm Jul 22, 2022
f0d494b
Nissan: cleanup set speed (#25233)
pd0wm Jul 22, 2022
1584643
Revert "Revert "remove casync from agnos manifest for now""
adeebshihadeh Jul 22, 2022
daded8e
Multilang: finish unfinished Simplified Chinese translations (#25247)
cydia2020 Jul 22, 2022
3117c06
Car docs diff: fix new platform detection (#25252)
sshane Jul 22, 2022
9ab1c49
Multilanguage badges (#25244)
sshane Jul 22, 2022
f79a21d
Update incompatible Toyota Security cars (#25249)
alancyau Jul 22, 2022
57aa085
Fix footnote superscripts on website (#25260)
sshane Jul 23, 2022
fd5819e
Fix for multiple footnotes in car docs (#25256)
incognitojam Jul 23, 2022
e0cd4bd
Add missing RAV4H_TSS2_2022 engine f/w (#25263)
ErichMoraga Jul 23, 2022
551d2fe
Make ubuntu_setup.sh use codenames to support Ubuntu based distros (#…
pcjx Jul 23, 2022
d01847e
hyundai: torque lateral controller for palisade (#25262)
gregjhogan Jul 23, 2022
10b212d
Chrysler: add Ram 1500 FW values (#25266)
adeebshihadeh Jul 24, 2022
d462a08
remove CS.steeringRateLimited (#25251)
adeebshihadeh Jul 24, 2022
ef00bf7
model_replay: update format_diff call
adeebshihadeh Jul 25, 2022
f72c988
map_renderer.py, output monochrome images (#25272)
pd0wm Jul 25, 2022
4d8f40a
docs: add svg images (#25273)
pd0wm Jul 25, 2022
dc1590a
Ram 1500: remove harness (#25275)
sshane Jul 25, 2022
cff4cdc
2022 Palisade: add missing FW versions (#25258)
sshane Jul 25, 2022
d6105f2
cars.md: use markdown images for stars (#25274)
pd0wm Jul 25, 2022
2351ae4
Ford: fix gear parsing (#25267)
incognitojam Jul 25, 2022
6b74be5
check vin validity (#25199)
adeebshihadeh Jul 25, 2022
f4d9573
Add several missing LEXUS_ES_TSS2 firmwares (#25268)
ErichMoraga Jul 25, 2022
60eab24
Skoda: add FW versions for Karoq 2021 (#25271)
belm0 Jul 25, 2022
0574b85
VW MQB: Cleanup stock ACC button handling (#25168)
jyoung8607 Jul 25, 2022
49bd535
Chrysler: increase steering angle resolution (#25278)
adeebshihadeh Jul 25, 2022
3474553
Mazda: use torque controller (#25265)
adeebshihadeh Jul 25, 2022
5101a7c
Chrylser: some Ram 1500 can steer to 0 (#25279)
adeebshihadeh Jul 25, 2022
5d4d2c3
Subaru: move all pre-global cars to torque tune (#25281)
adeebshihadeh Jul 25, 2022
5a6b0a9
fw_versions: fix ECU scanning (#25283)
sshane Jul 26, 2022
260171f
EV6: can-fd footnote (#25284)
adeebshihadeh Jul 26, 2022
e776de6
Merge remote-tracking branch 'upstream/master' into SA-master-updated
sshane Aug 13, 2022
f648fd8
fix import
sshane Aug 15, 2022
c244471
Fix class variables
sshane Aug 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/car_bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Car bug report
description: For issues with a particular car make or model
labels: ["car bug"]
labels: ["car", "bug"]
body:

- type: markdown
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/badges.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: badges
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

env:
BASE_IMAGE: openpilot-base
DOCKER_REGISTRY: ghcr.io/commaai

BUILD: |
docker pull $(grep -iohP '(?<=^from)\s+\S+' Dockerfile.openpilot_base) || true
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true
docker build --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base .
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c

jobs:
badges:
name: create badges
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Cache scons
id: scons-cache
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
env:
CACHE_SKIP_SAVE: true
with:
path: /tmp/scons_cache
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-
restore-keys: |
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-
scons-

- name: Build Docker image
run: eval "$BUILD"

- name: Push badges
run: |
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/ui/translations/create_badges.py"

git checkout --orphan badges
git rm -rf --cached .
git config user.email "[email protected]"
git config user.name "Badge Researcher"

git add translation_badge_*.svg
git commit -m "Add/Update badges"
git push -f origin HEAD
3 changes: 2 additions & 1 deletion .github/workflows/prebuilt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ jobs:
IMAGE_NAME: openpilot-prebuilt
steps:
- name: Wait for green check mark
uses: lewagon/wait-on-check-action@v0.2
uses: lewagon/wait-on-check-action@e2558238c09778af25867eb5de5a3ce4bbae3dcd
with:
ref: master
wait-interval: 30
running-workflow-name: 'build prebuilt'
check-regexp: ^((?!.*(build master-ci).*).)*$
- uses: actions/checkout@v3
with:
submodules: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
if: github.repository == 'commaai/openpilot'
steps:
- name: Wait for green check mark
uses: lewagon/wait-on-check-action@v0.2
uses: lewagon/wait-on-check-action@e2558238c09778af25867eb5de5a3ce4bbae3dcd
with:
ref: master
wait-interval: 30
running-workflow-name: 'build master-ci'
check-regexp: ^((?!.*(build prebuilt).*).)*$
- uses: actions/checkout@v3
with:
submodules: true
Expand Down
102 changes: 91 additions & 11 deletions .github/workflows/selfdrive_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ env:
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true
docker build --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base .

RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache $BASE_IMAGE /bin/sh -c
RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/sh -c

BUILD_CL: |
docker pull $(grep -iohP '(?<=^from)\s+\S+' Dockerfile.openpilot_base_cl) || true
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true
docker pull $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest || true
docker build --cache-from $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest -t $CL_BASE_IMAGE:latest -f Dockerfile.openpilot_base_cl .
RUN_CL: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache $CL_BASE_IMAGE /bin/sh -c
RUN_CL: docker run --shm-size 1G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/scons_cache:/tmp/scons_cache -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/openpilot_cache:/tmp/openpilot_cache $CL_BASE_IMAGE /bin/sh -c

UNIT_TEST: coverage run --append -m unittest discover

Expand Down Expand Up @@ -59,12 +58,22 @@ jobs:
run: |
TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
cp Dockerfile.openpilot_base $STRIPPED_DIR
cp .pre-commit-config.yaml $STRIPPED_DIR
cp .pylintrc $STRIPPED_DIR
cp mypy.ini $STRIPPED_DIR
- name: Build Docker image
run: eval "$BUILD"
run: |
eval "$BUILD"
rm $STRIPPED_DIR/Dockerfile.openpilot_base
- name: Build openpilot and run checks
run: |
cd $STRIPPED_DIR
${{ env.RUN }} "CI=1 python selfdrive/manager/build.py && \
pre-commit run --all && \
rm .pre-commit-config.yaml && \
rm .pylintrc && \
rm mypy.ini && \
release/check-dirty.sh && \
python -m unittest discover selfdrive/car"

build_all:
Expand All @@ -90,12 +99,12 @@ jobs:
- name: Build Docker image
run: eval "$BUILD"
- name: Build openpilot with all flags
run: ${{ env.RUN }} "scons -j$(nproc) --extras --test"
run: ${{ env.RUN }} "scons -j$(nproc) --extras --test && release/check-dirty.sh"
- name: Cleanup scons cache
run: |
${{ env.RUN }} "scons -j$(nproc) --extras --test && \
rm -rf /tmp/scons_cache/* && \
scons -j$(nproc) --cache-populate"
scons -j$(nproc) --extras --test --cache-populate"

#build_mac:
# name: build macos
Expand Down Expand Up @@ -201,12 +210,15 @@ jobs:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- name: Push to container registry
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/$BASE_IMAGE:latest
- name: Build CL Docker image
run: eval "$BUILD_CL"
- name: Push to container registry
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/$BASE_IMAGE:latest
docker push $DOCKER_REGISTRY/$CL_BASE_IMAGE:latest

# static_analysis:
Expand Down Expand Up @@ -297,18 +309,22 @@ jobs:
$UNIT_TEST selfdrive/loggerd && \
$UNIT_TEST selfdrive/car && \
$UNIT_TEST selfdrive/locationd && \
selfdrive/locationd/test/_test_locationd_lib.py && \
$UNIT_TEST selfdrive/athena && \
$UNIT_TEST selfdrive/thermald && \
$UNIT_TEST selfdrive/hardware/tici && \
$UNIT_TEST system/hardware/tici && \
$UNIT_TEST selfdrive/modeld && \
$UNIT_TEST tools/lib/tests && \
./selfdrive/ui/tests/create_test_translations.sh && \
QT_QPA_PLATFORM=offscreen ./selfdrive/ui/tests/test_translations && \
./selfdrive/ui/tests/test_translations.py && \
./common/tests/test_util && \
./common/tests/test_swaglog && \
./selfdrive/boardd/tests/test_boardd_usbprotocol && \
./selfdrive/loggerd/tests/test_logger &&\
./system/proclogd/tests/test_proclog && \
./selfdrive/ui/replay/tests/test_replay && \
./selfdrive/camerad/test/ae_gray_test && \
./tools/replay/tests/test_replay && \
./system/camerad/test/ae_gray_test && \
coverage xml"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
Expand Down Expand Up @@ -501,3 +517,67 @@ jobs:
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/openpilot-docs:latest

car_docs_diff:
name: comment on PR with car docs diff
runs-on: ubuntu-20.04
timeout-minutes: 50
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.base.ref }}
- name: Cache scons
id: scons-cache
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
env:
CACHE_SKIP_SAVE: true
with:
path: /tmp/scons_cache
key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-
restore-keys: |
scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-
scons-
- name: Build Docker image
run: eval "$BUILD"
- name: Get base car info
run: |
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/debug/dump_car_info.py --path /tmp/openpilot_cache/base_car_info"
sudo chown -R $USER:$USER ${{ github.workspace }}
- uses: actions/checkout@v3
with:
submodules: true
- name: Save car docs diff
id: save_diff
run: |
${{ env.RUN }} "scons -j$(nproc)"
output=$(${{ env.RUN }} "python selfdrive/debug/print_docs_diff.py --path /tmp/openpilot_cache/base_car_info") || true
output="${output//$'\n'/'%0A'}"
echo "::set-output name=diff::$output"
- name: Find comment
if: ${{ env.AZURE_TOKEN != '' }}
uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: This PR makes changes to
- name: Update comment
if: ${{ steps.save_diff.outputs.diff != '' && env.AZURE_TOKEN != '' }}
uses: peter-evans/create-or-update-comment@b95e16d2859ad843a14218d1028da5b2c4cbc4b4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: "${{ steps.save_diff.outputs.diff }}"
edit-mode: replace
- name: Delete comment
if: ${{ steps.fc.outputs.comment-id != '' && steps.save_diff.outputs.diff == '' && env.AZURE_TOKEN != '' }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.deleteComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: ${{ steps.fc.outputs.comment-id }}
})
40 changes: 40 additions & 0 deletions .github/workflows/tools_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,46 @@ env:
GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/comma_download_cache:/tmp/comma_download_cache $BASE_IMAGE /bin/sh -c

jobs:
build_latest_ubuntu:
name: build latest ubuntu
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Cache pyenv
id: ubuntu-latest-pyenv
uses: actions/cache@v3
with:
path: |
~/.pyenv
~/.local/share/virtualenvs/
key: ubuntu-latest-python-${{ hashFiles('tools/ubuntu_setup.sh') }}-
- name: Cache scons
id: ubuntu-latest-scons
uses: actions/cache@v3
with:
path: /tmp/scons_cache
key: ubuntu-latest-scons-${{ hashFiles('.github/workflows/tools_test.yaml') }}-
restore-keys: |
ubuntu-latest-scons-${{ hashFiles('.github/workflows/tools_test.yaml') }}-
ubuntu-latest-scons-

- name: tools/ubuntu_setup.sh
run: |
source tools/openpilot_env.sh
tools/ubuntu_setup.sh
- name: Build openpilot
run: |
source tools/openpilot_env.sh
pipenv run scons -j$(nproc) --extras --test
- name: Cleanup scons cache
run: |
source tools/openpilot_env.sh
rm -rf /tmp/scons_cache/*
pipenv run scons -j$(nproc) --extras --test --cache-populate

plotjuggler:
name: plotjuggler
runs-on: ubuntu-20.04
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ a.out
*.class
*.pyxbldc
*.vcd
*.qm
config.json
clcache
compile_commands.json
Expand All @@ -45,12 +46,10 @@ system/proclogd/proclogd
selfdrive/ui/_ui
selfdrive/test/longitudinal_maneuvers/out
selfdrive/visiond/visiond
selfdrive/loggerd/loggerd
selfdrive/loggerd/bootlog
selfdrive/sensord/_gpsd
selfdrive/sensord/_sensord
selfdrive/camerad/camerad
selfdrive/camerad/test/ae_gray_test
system/camerad/camerad
system/camerad/test/ae_gray_test
selfdrive/modeld/_modeld
selfdrive/modeld/_dmonitoringmodeld
/src/
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: mypy
exclude: '^(pyextra/)|(cereal/)|(rednose/)|(panda/)|(laika/)|(opendbc/)|(laika_repo/)|(rednose_repo/)/'
additional_dependencies: ['lxml', 'numpy', 'types-atomicwrites', 'types-pycurl', 'types-requests', 'types-certifi']
additional_dependencies: ['types-PyYAML', 'lxml', 'numpy', 'types-atomicwrites', 'types-pycurl', 'types-requests', 'types-certifi']
args:
- --warn-redundant-casts
- --warn-return-any
Expand Down Expand Up @@ -54,7 +54,7 @@ repos:
entry: cppcheck
language: system
types: [c++]
exclude: '^(third_party/)|(pyextra/)|(cereal/)|(opendbc/)|(panda/)|(tools/)|(selfdrive/modeld/thneed/debug/)|(selfdrive/modeld/test/)|(selfdrive/camerad/test/)/|(installer/)'
exclude: '^(third_party/)|(pyextra/)|(cereal/)|(rednose/)|(rednose_repo/)|(opendbc/)|(panda/)|(tools/)|(selfdrive/modeld/thneed/debug/)|(selfdrive/modeld/test/)|(selfdrive/camerad/test/)/|(installer/)'
args:
- --error-exitcode=1
- --language=c++
Expand Down
9 changes: 1 addition & 8 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=scipy cereal.messaging.messaging_pyx
extension-pkg-whitelist=scipy,cereal.messaging.messaging_pyx,PyQt5,av

# Add files or directories to the blacklist. They should be base names, not
# paths.
Expand Down Expand Up @@ -250,13 +250,6 @@ max-line-length=100
# Maximum number of lines in a module
max-module-lines=1000

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
Expand Down
7 changes: 1 addition & 6 deletions Dockerfile.openpilot
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ ENV PYTHONPATH ${OPENPILOT_PATH}:${PYTHONPATH}
RUN mkdir -p ${OPENPILOT_PATH}
WORKDIR ${OPENPILOT_PATH}

COPY Pipfile Pipfile.lock $OPENPILOT_PATH
RUN pip install --no-cache-dir pipenv==2021.5.29 pip==21.3.1 && \
pipenv install --system --deploy --dev --clear && \
pip uninstall -y pipenv

COPY SConstruct ${OPENPILOT_PATH}

COPY ./pyextra ${OPENPILOT_PATH}/pyextra
Expand All @@ -30,4 +25,4 @@ COPY ./panda ${OPENPILOT_PATH}/panda
COPY ./selfdrive ${OPENPILOT_PATH}/selfdrive
COPY ./system ${OPENPILOT_PATH}/system

RUN scons -j$(nproc)
RUN scons --cache-readonly -j$(nproc)
Loading