Andrei Radulescu
0a0912234e
update bash scripts to #!/usr/bin/env bash ( #1987 )
...
* update bash shebang for better compatibility including macOS
* can't have anything after #bash
2024-08-26 17:25:15 -07:00
Shane Smiskol
8c3bb0151e
deprecate busTime ( #1989 )
...
* deprecate busTime
* fix test_comms.py
* update opendbc
* way more than i thought
* and here
* oops
2024-07-30 21:20:48 -07:00
Adeeb Shihadeh
dd82382d5f
instant boot ( #1910 )
...
no more boot time :P
2024-03-22 14:01:44 -07:00
Adeeb Shihadeh
091773f448
Adjust CAN bus orientation live with harness orientation ( #1913 )
...
* set orientation in one place
* no flip
* cleanup
* more explict on startup
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-03-22 14:00:13 -07:00
Adeeb Shihadeh
b46a9eb2c9
CAN orientation HITL test ( #1912 )
...
test
Co-authored-by: Comma Device <device@comma.ai>
2024-03-22 13:32:31 -07:00
Adeeb Shihadeh
6b40f82bc4
harness HITL test refactor ( #1911 )
...
* harness HITL tests
* cleanup
* oops
* unused
2024-03-22 10:30:02 -07:00
Adeeb Shihadeh
8a845b973e
boot time test ( #1909 )
...
* test
* usb serial
* just test for now
* time
* close
* close after
2024-03-21 20:28:44 -07:00
Adeeb Shihadeh
de061e4f73
remove rest of gmlan ( #1908 )
...
* remove rest of gmlan
* fix
* update struct
* update
2024-03-21 13:56:36 -07:00
Cameron Clough
0c7d5f11d7
use pyupgrade to update syntax ( #1889 )
2024-02-24 13:56:28 -08:00
Justin Newberry
06feb083cf
replace pytest-timeouts with pytest-timeout ( #1820 )
...
* one timeout
* timeout
2024-01-18 14:44:32 -08:00
Adeeb Shihadeh
dc1fd96118
Revert "H7: fix GMLAN bitbang timer ( #1542 )" ( #1745 )
...
This reverts commit 5778c0ae5d
.
2023-11-24 16:00:18 -08:00
Adeeb Shihadeh
7b323413d2
jenkins: run bootkick tests ( #1688 )
...
* jenkins: run bootkick tests
* flip that
* little longer
* increase
* disable can
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-10-09 21:52:15 -07:00
Adeeb Shihadeh
ea826ccea6
CI: whitelist hitl jungles ( #1687 )
...
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-10-05 18:27:33 -07:00
Igor Biletskyy
5778c0ae5d
H7: fix GMLAN bitbang timer ( #1542 )
...
* init
* move Adeeb's test
* bitbang expected to fail can_health
2023-10-03 13:14:14 -07:00
Adeeb Shihadeh
43bed1aa47
jungle HITL tests setup ( #1665 )
...
* setup new zoo
* run
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-09-30 23:19:06 -07:00
Adeeb Shihadeh
b6e37f25b6
Remove flash logging ( #1674 )
...
* Revert "Disable flash logging (#1667 )"
This reverts commit 62db60595b
.
* Revert "Faster log retrieval (#1484 )"
This reverts commit 694aae9c26
.
* Revert "Flash bounds checking outside of bootstub (#1459 )"
This reverts commit 054344de6b
.
* Revert "Logging (#1445 )"
This reverts commit 0cc91a7f7b
.
* cleanup
* cleanup
2023-09-30 12:49:46 -07:00
Adeeb Shihadeh
62db60595b
Disable flash logging ( #1667 )
...
* disable logging to flash
* update tests
* fix hitl
2023-09-21 15:28:19 -07:00
Justin Newberry
4ea50fbb09
Ruff: propgate config from OP ( #1579 )
2023-08-14 12:52:02 -07:00
Igor Biletskyy
25f1444d73
panda: add CAN-FD throughput test ( #1572 )
...
init
2023-08-10 18:41:50 -07:00
Igor Biletskyy
a651fe3c6b
set OBD to False after test ( #1568 )
...
* reset OBD after test
* add comment
2023-08-07 10:54:39 -07:00
Adeeb Shihadeh
235067a22b
run HITL tests in parallel ( #1566 )
...
* seems to work
* cleanup
* run in ci
* fail on first
* fix jungle scope
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-08-06 20:51:26 -07:00
Adeeb Shihadeh
77b09a3160
misc hitl test cleanup ( #1562 )
...
* misc hitl test cleanup
* adjust that
* update
* tres fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
2023-08-06 16:30:21 -07:00
Adeeb Shihadeh
3dc3b58e20
ruff: enable bugbear checks ( #1565 )
2023-08-06 14:59:22 -07:00
Adeeb Shihadeh
33a95d6bea
pedal: fix warning on invalid serial ( #1563 )
...
* pedal: fix warning on invalid serial
* fix
* fix:
* shouldn't need that
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-08-06 13:47:37 -07:00
Adeeb Shihadeh
c66b98b2a6
finish esp/gps removal ( #1559 )
2023-08-06 12:29:54 -07:00
Adeeb Shihadeh
6e1d35b033
more complete jungle reflash ( #1557 )
...
* more complete jungle reflash
* no spi!
* mv flash
* mv that
2023-08-04 21:51:09 -07:00
Adeeb Shihadeh
d7120be904
panda jungle ( #1547 )
...
* mv jungle
* match pedal style
* fix linter
* fix fw path
* fix paths
* safety!
2023-08-03 23:55:13 -07:00
Adeeb Shihadeh
1eac0d7634
HITL: remove old check, it's always checked on panda connect now
2023-07-20 11:25:06 -07:00
Adeeb Shihadeh
5d873444b2
SPI: connect by VERSION command ( #1495 )
...
* SPI: connect by VERSION command
* shorter timeout
* add exception
* simple test
* fallback
* bootstub check
* update comments
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-16 19:33:18 -07:00
Adeeb Shihadeh
14fd5ff5a3
SPI: send bootstub status in version request ( #1492 )
...
* mv first
* switch to crc8
* bootstub
* test
* cleanup
* little more
* misra
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-03 15:23:12 -07:00
Adeeb Shihadeh
d693e89df2
SPI: send hw type with version ( #1490 )
...
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 23:50:30 -07:00
Adeeb Shihadeh
abcbfb44b4
SPI: send serial with protocol version ( #1489 )
...
* SPI: send serial with protocol version
* misra
* fix test
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 23:13:57 -07:00
Adeeb Shihadeh
5abb2b58da
SPI: add protcol version request ( #1488 )
...
* SPI: add protcol version request
* quick test
* fix linter
* misra
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 15:51:35 -07:00
Igor Biletksyy
04f0c4261c
Revert "HITL tests: reset jungle on init ( #1473 )"
...
This reverts commit 1c574f8a99
.
2023-06-28 12:34:18 -07:00
Igor Biletksyy
6309bb8a6a
Normal to have REC and TEC counters > 0, but less than threshould
2023-06-26 14:16:34 -07:00
Adeeb Shihadeh
1c574f8a99
HITL tests: reset jungle on init ( #1473 )
...
Co-authored-by: Comma Device <device@comma.ai>
2023-06-20 19:34:05 -07:00
Adeeb Shihadeh
6eb3a7324f
tres: enable fan overshoot test ( #1465 )
...
* tres: enable fan overshoot test
* rm
2023-06-16 21:56:11 -07:00
Adeeb Shihadeh
c6283759e6
increase fan test timeout, can take a while to recover
2023-06-16 14:06:32 -07:00
Adeeb Shihadeh
fc994f5cf9
HITL: check FW version before every test ( #1463 )
2023-06-16 13:59:07 -07:00
Robbe Derks
0cc91a7f7b
Logging ( #1445 )
...
* try 1
* some fixes
* fix some misra
* first poc working
* more things
* more misra fixes
* fix misra
* add rate limiting
* fix misra
* add some unit tests through libpanda
* add more tests and fix some stuff
* fix misra again
* add startup log hitl test
* list
* don't fail on wrong timestamps
* improvements
* fix tests
* expected logs test?
* not sure why this passed
* oh, it doesn't reset
* only show last few
* guess at expected logs
* needs this
* ugh
* reduce compiler warnings
* adjust expected logs
* this is correct
* is it really 1?
* min max
* reduce spam in SPI test
* some cleanup
2023-06-13 17:00:56 +02:00
Adeeb Shihadeh
adc0c12f7b
HITL tests: enable flashing tests on tres
2023-06-11 19:56:09 -07:00
Adeeb Shihadeh
a4ed5bb943
adjust timeouts ( #1444 )
2023-06-04 21:17:44 -07:00
Adeeb Shihadeh
92ed48ae5c
HITL tests: add timeouts ( #1352 )
...
* set timeout
* closest
* more timeout
* fan test is slow
* retry
* break
* bump
2023-06-04 01:00:17 -07:00
Adeeb Shihadeh
e1e9bd048d
benchmarking script
2023-06-03 15:22:47 -07:00
Adeeb Shihadeh
4d7abcc2e6
PandaDFU: don't reset in program_bootstub ( #1433 )
2023-05-21 20:05:21 -07:00
Adeeb Shihadeh
52f96bac68
spi: nack on can tx endpoint if buffer is full ( #1426 )
...
* spi: nack on can tx endpoint if buffer is full
* handle in python lib
* fix timeout
* fix timeout
* fix linter
* cleanup
* fix
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-05-19 22:43:34 -07:00
Adeeb Shihadeh
a93bc954c5
SPI HITL tests + cleanup ( #1417 )
...
* start comms hitl tests
* pull that out
* revert that
* more test
* fix warnings
* fix linter
* another simple case
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-05-17 17:13:12 -07:00
Robbe Derks
2c937656cf
Continuous harness detection ( #1402 )
...
* read in mV and make threshold board-dependent
* refactor and add SBU voltages to health
* refactor relay driving
* more refactoring and readout lock
* avoid race condition
* fix misra
* continuous detection
* 1Hz is fine
* another race condition
* use harness detection to trigger bootkick
* update orientation detection test
* more in-depth harness tests
* fix ignition
* fix
* raise threshold
2023-05-08 13:30:23 +02:00
Adeeb Shihadeh
272b81e97b
fan: fix stall detection ( #1351 )
...
* cleanup and fix
* dos must stall
* clean those up
* fix misra
* more test
* fix import
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-04-20 15:44:12 -07:00
Adeeb Shihadeh
cf307348af
CI: run HITL tests on tres ( #1326 )
...
* run on tres
* disable those for now
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-04-18 22:17:11 -07:00