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

sbu in panda health #1

Closed
wants to merge 1,160 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1160 commits
Select commit Hold shift + click to select a range
5d87344
SPI: connect by VERSION command (#1495)
adeebshihadeh Jul 17, 2023
b274101
instructions for flashing internal panda (#1521)
adeebshihadeh Jul 18, 2023
268f6bc
python: lock hw device inside loop (#1522)
adeebshihadeh Jul 18, 2023
5ca2d96
python lib: ensure full response is read in remaining
Jul 18, 2023
05e0f4a
IsoTpMessage: fix length mask for single frames (#1523)
sshane Jul 18, 2023
0acb7b9
CI: Bump refs (#1520)
jnewb1 Jul 18, 2023
72032e2
Subaru: use generator for limits (#1527)
jnewb1 Jul 20, 2023
8258d18
spi: bump version
adeebshihadeh Jul 20, 2023
1eac0d7
HITL: remove old check, it's always checked on panda connect now
adeebshihadeh Jul 20, 2023
dd78b2b
python lib: allow infinite timeout
adeebshihadeh Jul 20, 2023
933a19a
CI: bump refs (#1529)
jnewb1 Jul 21, 2023
ed8ff7e
H7: explicitly disable GMLAN for now (#1532)
adeebshihadeh Jul 24, 2023
1b70604
pre-commit: autoupdate hooks (#1536)
adeebshihadeh Aug 1, 2023
7f1944c
debug endpoint for custom clock source period (#1538)
adeebshihadeh Aug 1, 2023
a945053
Force relay drive (#1539)
robbederks Aug 1, 2023
b4700a8
Stable ADC on H7 (#1540)
robbederks Aug 2, 2023
feef2e6
Harness tick at 8Hz (#1541)
robbederks Aug 2, 2023
1154eb2
Subaru: cleanup panda logic (#1543)
jnewb1 Aug 2, 2023
3e429ac
Honda: remove duplicated relay transition time check (#1544)
sshane Aug 3, 2023
f37f8d9
cleanup build, prep for jungle (#1549)
adeebshihadeh Aug 4, 2023
5af25e2
fix paths when building with different SConstruct
adeebshihadeh Aug 4, 2023
e7894e6
Move CanHandle to python/ (#1550)
adeebshihadeh Aug 4, 2023
d7120be
panda jungle (#1547)
adeebshihadeh Aug 4, 2023
977d702
cleanup old pedal stuff (#1552)
adeebshihadeh Aug 4, 2023
1950ba6
cleanup bus count constant
adeebshihadeh Aug 4, 2023
43bde41
jungle: SBU provisioning tests (#1553)
adeebshihadeh Aug 4, 2023
2a72404
Subaru: Add measured steering angle and vehicle speed (#1528)
jnewb1 Aug 5, 2023
7b6806c
Safety: Add desired angle to safety helpers (#1554)
jnewb1 Aug 5, 2023
0f479a3
CI: reflash jungle (#1546)
adeebshihadeh Aug 5, 2023
6e1d35b
more complete jungle reflash (#1557)
adeebshihadeh Aug 5, 2023
b976cf4
libpanda: silence build warning
adeebshihadeh Aug 5, 2023
3e21991
jungle: disable transceivers while doing CAN multiplexing (#1555)
briskspirit Aug 5, 2023
dc07975
python: fast reconnect (#1558)
adeebshihadeh Aug 5, 2023
130092e
python: replace warning with logging
adeebshihadeh Aug 5, 2023
d2d207b
In-circuit debugging (#1560)
robbederks Aug 5, 2023
c66b98b
finish esp/gps removal (#1559)
adeebshihadeh Aug 6, 2023
33a95d6
pedal: fix warning on invalid serial (#1563)
adeebshihadeh Aug 6, 2023
fc506e7
switch to ruff linter (#1564)
adeebshihadeh Aug 6, 2023
3dc3b58
ruff: enable bugbear checks (#1565)
adeebshihadeh Aug 6, 2023
77b09a3
misc hitl test cleanup (#1562)
adeebshihadeh Aug 6, 2023
235067a
run HITL tests in parallel (#1566)
adeebshihadeh Aug 7, 2023
972b0dc
don't try to reflash bootstub when reconnecting
adeebshihadeh Aug 7, 2023
5801582
Subaru: convert measured angle to centigrees (#1567)
jnewb1 Aug 7, 2023
a651fe3
set OBD to False after test (#1568)
briskspirit Aug 7, 2023
83c000e
panda: disable transceivers while doing CAN multiplexing (#1556)
briskspirit Aug 7, 2023
61e987f
remove safety replay test (#1569)
adeebshihadeh Aug 8, 2023
413f430
jungle: add back set_can_sinent() (#1571)
briskspirit Aug 10, 2023
9df7802
CI: bump up safety test timeout
adeebshihadeh Aug 10, 2023
25f1444
panda: add CAN-FD throughput test (#1572)
briskspirit Aug 11, 2023
61590b6
GM: clean up longitudinal safety test (#1573)
sshane Aug 11, 2023
20b1e50
GM: move more longitudinal related function into class (#1574)
sshane Aug 11, 2023
f29c753
Safety: generic limit safety check (#1575)
jnewb1 Aug 12, 2023
7dbdf6b
Safety Tests: Create common gas brake safety test (#1537)
jnewb1 Aug 12, 2023
a0344a1
Subaru: cancel safety (#1576)
jnewb1 Aug 13, 2023
05295dc
Safety: alternate longitudinal limits (#1577)
jnewb1 Aug 13, 2023
4ea50fb
Ruff: propgate config from OP (#1579)
jnewb1 Aug 14, 2023
10a2727
Subaru: prepare tests for long and angle control (#1580)
jnewb1 Aug 15, 2023
ab70a3c
jungle: add pin header control (#1581)
briskspirit Aug 15, 2023
d7f75ca
safety tests: test one of each MCU type
adeebshihadeh Aug 15, 2023
ab6601a
pre-commit: autoupdate hooks (#1582)
adeebshihadeh Aug 15, 2023
f4e63e7
Safety: Rename alt transmission rpm (#1583)
jnewb1 Aug 16, 2023
8bd3e93
Subaru: Global gen1 longitudinal safety (#1500)
jnewb1 Aug 16, 2023
b258106
Hyundai CAN FD: fix PCM cruise check (#1584)
sshane Aug 16, 2023
02bcd14
Subaru: cleanup to prepare for angle controller (#1585)
jnewb1 Aug 16, 2023
16b3ec4
add FW size checker script
briskspirit Aug 16, 2023
cfff338
fix linter
briskspirit Aug 16, 2023
1f475a8
Hyundai: match openpilot standstill check (#1586)
sshane Aug 17, 2023
2ae2567
Subaru: gen2 long safety (#1587)
jnewb1 Aug 17, 2023
95c89b8
GM: switch to common gas/brake test (#1578)
jnewb1 Aug 17, 2023
d916357
body: set vehicle_moving (#1591)
sshane Aug 17, 2023
aed103d
Revert "Subaru: gen2 long safety (#1587)"
adeebshihadeh Aug 17, 2023
1d874be
Safety: unify `controls_allowed` with boolean (#1589)
sunnyhaibin Aug 18, 2023
57ec466
prefix openpilot imports (#1593)
adeebshihadeh Aug 21, 2023
b47b825
unify CAN/FDCAN odjects naming (#1596)
briskspirit Aug 21, 2023
ea16a54
Subaru: infrastructure to support the new angle based controllers (#1…
jnewb1 Aug 22, 2023
83423e2
pre-commit: autoupdate hooks (#1600)
adeebshihadeh Aug 22, 2023
3d91d78
Revert "Subaru: infrastructure to support the new angle based control…
jnewb1 Aug 23, 2023
ee2f9df
H7: clean up peripherals.h (#1597)
briskspirit Aug 23, 2023
04df95d
Subaru: add new angle LKAS message definitions (#1602)
jnewb1 Aug 23, 2023
c3c8d8f
peripherals.h clean and duplicates removal (#1599)
briskspirit Aug 23, 2023
737030a
F4: fix UART clocks (#1588)
briskspirit Aug 23, 2023
a48678f
MacOS: Homebrew GCC is now version 13 (#1603)
pd0wm Aug 24, 2023
0587f22
add --minimal build flag (#1604)
adeebshihadeh Aug 24, 2023
0a32b17
H7: few more Kb of RAM found (#1605)
briskspirit Aug 24, 2023
09cd817
python lib: close USB context properly (#1606)
adeebshihadeh Aug 25, 2023
8ed82d3
jungle: fix can_health update on request
briskspirit Aug 25, 2023
cca252c
Honda: match openpilot button enable check (#1607)
sshane Aug 25, 2023
f7a1daa
jungle: force CAN core reset on bus off detection
briskspirit Aug 26, 2023
01db9e4
iso-tp: more sanity checks (#1487)
sshane Aug 26, 2023
0eb04fa
iso-tp: return if updated (#1610)
sshane Aug 26, 2023
5a9d8cf
Toyota: ACC message relay check (#1612)
sshane Aug 27, 2023
1e41659
Revert "iso-tp: more checks (#1487)" (#1616)
sshane Aug 29, 2023
ca9d867
Revert "Toyota: ACC message relay check (#1612)" (#1617)
sshane Aug 29, 2023
267dd04
Update README.md
briskspirit Aug 29, 2023
687e9fe
H7: decrease FDCAN TX FIFOs to 1 (#1614)
briskspirit Aug 29, 2023
91d457c
H7: reorganize RAM (#1619)
briskspirit Aug 29, 2023
d41a0ab
H7: comments for RAM organization reasoning
briskspirit Aug 29, 2023
48632d9
Hyundai CAN FD: fix boolean types in fwd hook (#1620)
sunnyhaibin Aug 30, 2023
e6c1648
Hyundai CAN-FD: Alternate `LKAS` steering message (#1504)
sunnyhaibin Aug 30, 2023
526588b
pre-commit: autoupdate hooks (#1618)
adeebshihadeh Aug 30, 2023
e30ba95
Subaru: add steer req bit test (#1613)
jnewb1 Aug 30, 2023
bc2f10d
Revert "pre-commit: autoupdate hooks (#1618)"
adeebshihadeh Aug 30, 2023
a4fa40a
python: show lib and fw versions in error (#1622)
adeebshihadeh Aug 30, 2023
124a83c
disable forest while it's rebuilt
adeebshihadeh Aug 30, 2023
f892073
F4: fix wrong PCLK value (#1608)
briskspirit Aug 31, 2023
3efa31a
F4: fix GMLAN clocks (#1624)
briskspirit Aug 31, 2023
f4d0904
Subaru: preglobal check steer req bit (#1626)
jnewb1 Aug 31, 2023
fbe81a1
GM: check steer req bit (#1629)
jnewb1 Aug 31, 2023
ef1a933
Chrysler: check steer bit (#1628)
jnewb1 Aug 31, 2023
afb241a
Safety: Convert message addresses from decimal to hexadecimal (#1623)
sunnyhaibin Sep 1, 2023
579fff0
Safety tests: Convert message addresses from decimal to hexadecimal (…
sunnyhaibin Sep 1, 2023
62bb0c2
Subaru: gen2 long safety (#1594)
jnewb1 Sep 1, 2023
72f1603
VW MQB: Check steer req bit (#1631)
jnewb1 Sep 1, 2023
3ab4f43
enable red and green leds until USB/SPI init (#1647)
briskspirit Sep 5, 2023
104d708
Precommit: ensure executable bit is set (#1650)
jnewb1 Sep 5, 2023
0b6adad
Nissan: test alternate EPS bus param (#1651)
sshane Sep 6, 2023
39bc5a4
Nissan Altima: add a param for alternate EPS bus (#1649)
sunnyhaibin Sep 6, 2023
394b61c
H7: reset CAN core on bus off state (#1615)
briskspirit Sep 6, 2023
c12cbc1
Safety: separate test for steer request bit cutting (#1653)
jnewb1 Sep 7, 2023
cb0cd1b
Subaru: add safety around cutting steer req bit (#1632)
jnewb1 Sep 7, 2023
e98639b
increase not booted log timeout
adeebshihadeh Sep 7, 2023
ee21517
CI: run each job only once (#1659)
adeebshihadeh Sep 8, 2023
d87d33c
pre-commit: autoupdate hooks (#1639)
adeebshihadeh Sep 8, 2023
e9a0987
Hyundai CAN FD: utilize macros for common address checks (#1658)
sshane Sep 8, 2023
8e8aa5a
Hyundai CAN: utilize macros for common address checks (#1655)
sshane Sep 8, 2023
428b303
Hyundai CAN-FD: move HDA2 flag to common Hyundai safety (#1638)
sunnyhaibin Sep 11, 2023
d4e63da
VW PQ: Check steer req bit (#1630)
jnewb1 Sep 11, 2023
047d363
SPI flash dump + restore tools (#1654)
adeebshihadeh Sep 13, 2023
d4b405f
pre-commit: autoupdate hooks (#1660)
adeebshihadeh Sep 13, 2023
90eb24b
Safety: assert that torque safety modes check the steering request bi…
jnewb1 Sep 13, 2023
68a2000
add mcu reference manuals to readme
adeebshihadeh Sep 14, 2023
a660e34
erase log flash sectors in DFU recovery (#1661)
adeebshihadeh Sep 14, 2023
bdecf82
F2: fix flash sectors (#1663)
adeebshihadeh Sep 14, 2023
f660323
PandaDFU: fix F2 detection (#1664)
adeebshihadeh Sep 14, 2023
5460871
GM: change ignition signal (#1662)
sshane Sep 15, 2023
38404c7
pre-commit: autoupdate hooks (#1666)
adeebshihadeh Sep 19, 2023
62db605
Disable flash logging (#1667)
adeebshihadeh Sep 21, 2023
b12b9b9
jungle v2: control power individually per port (#1669)
briskspirit Sep 26, 2023
6d0ffd9
pre-commit: autoupdate hooks (#1672)
adeebshihadeh Sep 26, 2023
b6e37f2
Remove flash logging (#1674)
adeebshihadeh Sep 30, 2023
43bed1a
jungle HITL tests setup (#1665)
adeebshihadeh Oct 1, 2023
6bf6ba7
less dependencies (#1676)
adeebshihadeh Oct 2, 2023
7af3362
Hyundai CAN-FD: Move CRC compute function to common Hyundai safety (#…
sunnyhaibin Oct 3, 2023
9fd1b26
Nissan: consider true sign in safety (#1680)
sshane Oct 3, 2023
635db84
Subaru: consider true angle sign in safety (#1681)
sshane Oct 3, 2023
846c807
safety tests: fix measurement test (#1679)
sshane Oct 3, 2023
43af1df
safety: sample_t is not fully reset on safety mode init (#1376)
sshane Oct 3, 2023
4ad2802
pre-commit: autoupdate hooks (#1682)
adeebshihadeh Oct 3, 2023
5778c0a
H7: fix GMLAN bitbang timer (#1542)
briskspirit Oct 3, 2023
0ca5ad7
socketcan: usb bulk mode for rx (#584)
gregjhogan Oct 4, 2023
f42b65c
skip flash if up to date (#1686)
adeebshihadeh Oct 5, 2023
ea826cc
CI: whitelist hitl jungles (#1687)
adeebshihadeh Oct 6, 2023
aaa1172
HITL bootkick tests (#1685)
adeebshihadeh Oct 6, 2023
7b32341
jenkins: run bootkick tests (#1688)
adeebshihadeh Oct 10, 2023
95c4449
pre-commit: autoupdate hooks (#1689)
adeebshihadeh Oct 10, 2023
b496de2
Linkify `board/README.md` in panda/README.md, (#1691)
shameer99 Oct 14, 2023
549fa32
safety replay: support Toyota LTA angle control (#1693)
sshane Oct 17, 2023
8255ee8
pre-commit: autoupdate hooks (#1692)
adeebshihadeh Oct 19, 2023
229107f
replay drive: fix space formatting
sshane Oct 20, 2023
331829b
safety tests: clean up measurement tests (#1694)
sshane Oct 24, 2023
1a0d5fa
pre-commit: autoupdate hooks (#1697)
adeebshihadeh Oct 24, 2023
f8c2041
safety tests: fix driver torque override test (#1698)
sshane Oct 25, 2023
f62d172
Hyundai CAN: fix driver torque safety scaling (#1695)
sshane Oct 25, 2023
da66779
safety: coverage report (#1696)
sshane Oct 26, 2023
f3bdfdd
Rename safety coverage flag
sshane Oct 30, 2023
b3a611e
pre-commit: autoupdate hooks (#1700)
adeebshihadeh Oct 31, 2023
7304f92
safety test: simplify tx address check (#1701)
sshane Nov 1, 2023
120ea2c
safety test: fix incorrect error message (#1702)
sshane Nov 1, 2023
bc69d25
safety tests: clean up state reset (#1703)
sshane Nov 1, 2023
d2f9e14
Honda: add latching AEB test (#1704)
sshane Nov 1, 2023
e7f8b59
safety tests: safety_defaults (#1705)
sshane Nov 7, 2023
2560349
safety: use CLAMP for update_counter (#1706)
sshane Nov 7, 2023
90c4e8e
pre-commit: autoupdate hooks (#1708)
adeebshihadeh Nov 7, 2023
619f6f3
safety: _torque_driver_msg is used
sshane Nov 7, 2023
fa04f47
safety tests: support multiple relay malfunction addresses (#1707)
sshane Nov 8, 2023
708303d
Subaru: cleaner wrong safety mode checks (#1709)
jnewb1 Nov 8, 2023
3f25cca
Subaru Pre-Global: Reverse driver torque signal for certain platforms…
sunnyhaibin Nov 8, 2023
cd0f0bd
CI: make bootkick test robust to health struct changes (#1711)
adeebshihadeh Nov 9, 2023
d2ea9ad
refactor bootkick (#1690)
adeebshihadeh Nov 9, 2023
a1d699b
SOM boot recovery (#1712)
adeebshihadeh Nov 10, 2023
5e22e87
Hyundai CAN: update driver braking signal (#1713)
sshane Nov 10, 2023
55946a0
safety tests: more coverage (#1714)
sshane Nov 10, 2023
4383ac3
safety: add ELM327 safety test (#1715)
sshane Nov 10, 2023
57e280a
safety: add body safety tests (#1716)
sshane Nov 11, 2023
5fe1d67
safety: test coverage (#1699)
sshane Nov 11, 2023
37f53ac
pre-commit: autoupdate hooks (#1720)
adeebshihadeh Nov 14, 2023
7c84475
safety: use address check helper (#1721)
sshane Nov 17, 2023
3b165ed
Hyundai: fix brake pressed bitmask (#1724)
sshane Nov 18, 2023
9fed950
Ford: fix possible standstill mismatch (#1725)
sshane Nov 18, 2023
c6248d6
safety: cleanup ints that are bools (#1726)
adeebshihadeh Nov 20, 2023
3d2f99d
safety: move RX addr check into top level hook (#1727)
adeebshihadeh Nov 20, 2023
606d758
safety: cleanup init return struct (#1728)
adeebshihadeh Nov 20, 2023
b1ca493
safety: fix ambiguous names (#1729)
adeebshihadeh Nov 20, 2023
933a301
safety: do TX whitelist check in top level hook (#1730)
adeebshihadeh Nov 20, 2023
c345bc3
Rename forgotten functions (#1731)
sshane Nov 20, 2023
42a6293
Honda: fix alt brake address check race condition (#1723)
sshane Nov 21, 2023
897e3d8
pre-commit: autoupdate hooks (#1736)
adeebshihadeh Nov 21, 2023
8b06888
safety tests: common interceptor msg (#1737)
sshane Nov 21, 2023
83acc65
safety: check interceptor msg counter (#1738)
sshane Nov 22, 2023
194f2d9
safety: cleanup comments
adeebshihadeh Nov 24, 2023
f1cd126
safety: remove LIN hook (#1741)
adeebshihadeh Nov 24, 2023
3b22bc1
safety: more int -> bool (#1742)
adeebshihadeh Nov 24, 2023
4c0d250
remove k-line driver (#1743)
adeebshihadeh Nov 24, 2023
666a462
remove low level LIN support (#1744)
adeebshihadeh Nov 24, 2023
574d2db
remove more kline usage
adeebshihadeh Nov 24, 2023
dc1fd96
Revert "H7: fix GMLAN bitbang timer (#1542)" (#1745)
adeebshihadeh Nov 25, 2023
aa6ea07
Revert "safety: check interceptor msg counter (#1738)"
adeebshihadeh Nov 25, 2023
c67c973
Revert "Honda: fix alt brake address check race condition (#1723)"
adeebshihadeh Nov 25, 2023
6eb89ce
board: remove set_phone_power (#1747)
adeebshihadeh Nov 25, 2023
beffd7b
Nissan: check bus for brake pressed msg (#1740)
sshane Nov 27, 2023
5884962
Honda: fix alt brake address check race condition (#1746)
sshane Nov 27, 2023
e6fadef
one more int -> bool
adeebshihadeh Nov 28, 2023
09465a7
pre-commit: autoupdate hooks (#1748)
adeebshihadeh Nov 28, 2023
d070f6e
Toyota tests: rx speed messages in correct scale (#1751)
sshane Nov 30, 2023
2ee6e36
safety replay: set angle measurement (#1752)
sshane Nov 30, 2023
c57a3c2
safety replay: support Nissan (#1753)
sshane Nov 30, 2023
b50455c
safety: specify RX message frequency in Hz (#1754)
adeebshihadeh Nov 30, 2023
892ca5a
this is a better name
adeebshihadeh Dec 1, 2023
a9af9cb
run safety tests in parallel (#1756)
adeebshihadeh Dec 5, 2023
ea78657
Toyota: rename LTA torque wind down signal (#1757)
sshane Dec 5, 2023
fa2b8c0
pre-commit: autoupdate hooks (#1759)
adeebshihadeh Dec 5, 2023
845658e
Toyota LTA: set torque measurement (#1761)
sshane Dec 7, 2023
f741a90
safety: macro to update vehicle speed (#1762)
sshane Dec 7, 2023
80782bc
Toyota: LTA steering control safety (#1189)
sshane Dec 8, 2023
7340ece
misra mutation test (#1763)
adeebshihadeh Dec 9, 2023
6e96d2e
misra test cleanup (#1764)
adeebshihadeh Dec 9, 2023
fbef311
remove misra-c2012-21.1 suppression (#1765)
adeebshihadeh Dec 9, 2023
cf108cd
safety: full coverage (#1750)
sshane Dec 9, 2023
a5753a2
safety helpers: hide debug print for now
sshane Dec 9, 2023
12d326c
parallelize misra mutation tests (#1768)
adeebshihadeh Dec 9, 2023
1e1aa42
move this to commaai/neo
adeebshihadeh Dec 9, 2023
d066ae7
ensure MISRA coverage table is always up to date (#1772)
adeebshihadeh Dec 9, 2023
ff49666
Hyundai CAN FD: radar-SCC longitudinal test (#1771)
sshane Dec 10, 2023
a6b76df
Hyundai CAN-FD Longitudinal: enable for ICE camera-SCC cars (non-HDA2…
sunnyhaibin Dec 10, 2023
d598383
Docs update (#1769)
adeebshihadeh Dec 10, 2023
3e63e66
rm .dockerignore
adeebshihadeh Dec 10, 2023
a88fe8c
examples: Make can_bit_transition.py support can_logger.py (#1198)
mlouielu Dec 10, 2023
294992a
safety tests: rename gas interceptor test (#1774)
sshane Dec 13, 2023
e514113
safety tests: clean up gas interceptor detected
sshane Dec 13, 2023
30647d6
safety tests: set gas interceptor counter (#1775)
sshane Dec 14, 2023
bb75afc
safety: add safety param for gas interceptor (#1735)
sshane Dec 14, 2023
5b41a63
Ford: check predicted gas (#1776)
sshane Dec 15, 2023
7e2b312
helpers: get last vehicle speed (#1777)
jnewb1 Dec 15, 2023
3f6f826
Honda: reset prev brake switch (#1781)
sshane Dec 16, 2023
6e645d2
safety: fully reset dynamic rx check fields (#1767)
sshane Dec 16, 2023
85b4232
pre-commit: autoupdate hooks (#1782)
adeebshihadeh Dec 22, 2023
114b85a
CI: Translate abspath to relpath for build. (#1783)
bongbui321 Dec 22, 2023
0bcaa73
Sort output of can_bit_transition script numerically (#1785)
nworb-cire Dec 29, 2023
20722a5
Subaru: cruise_rpm and cruise_throttle are 13 bits (#1786)
jnewb1 Dec 30, 2023
0b4a1ff
Continuously update sbu in panda health
Feb 4, 2024
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
  •  
  •  
  •  
118 changes: 0 additions & 118 deletions .circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/drivers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: drivers
on: [push, pull_request]

jobs:
build_socketcan:
name: socketcan build
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install -y dkms gcc linux-headers-$(uname -r) make
- name: Build socketcan driver
run: |
cd drivers/linux
make link
make build
make install
- name: Print make log
if: always()
continue-on-error: true
run: cat /var/lib/dkms/panda/*/build/make.log
28 changes: 28 additions & 0 deletions .github/workflows/repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: repo

on:
schedule:
- cron: "0 15 * * 2"
workflow_dispatch:

jobs:
pre-commit-autoupdate:
name: pre-commit autoupdate
runs-on: ubuntu-20.04
container:
image: ghcr.io/commaai/panda:latest
steps:
- uses: actions/checkout@v3
- name: pre-commit autoupdate
run: |
git config --global --add safe.directory '*'
pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5
with:
token: ${{ secrets.ACTIONS_CREATE_PR_PAT }}
commit-message: Update pre-commit hook versions
title: 'pre-commit: autoupdate hooks'
branch: pre-commit-updates
base: master
delete-branch: true
136 changes: 136 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
name: tests

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref != 'refs/heads/master' && github.ref || github.run_id }}-${{ github.event_name }}
cancel-in-progress: true

env:
RUN: docker run -v ${{ github.workspace }}:/tmp/openpilot/panda -w /tmp/openpilot/panda --rm panda /bin/bash -c
BUILD: |
export DOCKER_BUILDKIT=1
docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ghcr.io/commaai/panda:latest -t panda -f Dockerfile .

PYTHONWARNINGS: "error"

jobs:
docker_push:
name: docker push
runs-on: ubuntu-20.04
timeout-minutes: 20
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/panda'
steps:
- uses: actions/checkout@v2
- name: Build Docker image
timeout-minutes: 11
run: eval "$BUILD"
- name: Login to dockerhub
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Tag image
run: docker tag panda ghcr.io/commaai/panda:latest
- name: Push image
run: docker push ghcr.io/commaai/panda:latest

build:
name: build
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Test python package installer
run: ${{ env.RUN }} "python setup.py install"
- name: Build panda + pedal images and bootstub
run: ${{ env.RUN }} "scons -j4"
- name: Build panda with SPI support
run: ${{ env.RUN }} "ENABLE_SPI=1 scons -j4"
- name: Build with UBSan
run: ${{ env.RUN }} "scons -j4 --ubsan"
- name: Build jungle firmware with FINAL_PROVISIONING support
run: ${{ env.RUN }} "FINAL_PROVISIONING=1 scons -j4 board/jungle"

unit_tests:
name: unit tests
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Build panda
run: $RUN "scons -j4"
- name: Test communication protocols
run: $RUN "cd tests/usbprotocol && ./test.sh"

safety:
name: safety
runs-on: ubuntu-20.04
strategy:
matrix:
flags: ['', '--ubsan']
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Run safety tests
timeout-minutes: 5
run: |
${{ env.RUN }} "cd .. && \
scons -c && \
scons -j$(nproc) opendbc/ cereal/ && \
cd panda && \
scons -j$(nproc) ${{ matrix.flags }} && \
tests/safety/test.sh"

safety_coverage:
name: safety coverage
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Run safety coverage test
timeout-minutes: 5
run: |
${{ env.RUN }} "cd .. && \
scons -c && \
scons -j$(nproc) opendbc/ cereal/ && \
cd panda/tests/safety && \
./test_coverage.sh"

misra:
name: MISRA C:2012
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Build FW
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: Run MISRA C:2012 analysis
timeout-minutes: 1
run: ${{ env.RUN }} "cd tests/misra && ./test_misra.sh"
- name: MISRA mutation tests
timeout-minutes: 2
run: ${{ env.RUN }} "cd tests/misra && ./test_mutation.py"

python_linter:
name: python linter
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Run static analysis
timeout-minutes: 3
run: ${{ env.RUN }} "pre-commit run --all"
17 changes: 15 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
*.tmp
*.pyc
.*.swp
.*.swo
*.o
*.so
*.os
*.d
*.dump
a.out
*~
.#*
dist/
pandacan.egg-info/
board/obj/
obj/
examples/output.csv
.DS_Store
.vscode
.vscode*
nosetests.xml
.mypy_cache/
.sconsign.dblite

# CTU info files generated by Cppcheck
*.*.ctu-info

# safety coverage-related files
*.gcda
*.gcno
tests/safety/coverage-out
tests/safety/coverage.info
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs', 'types-requests', 'types-atomicwrites',
'types-pycurl']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.8
hooks:
- id: ruff
Loading
Loading