-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
test_models: fuzz test panda and CarState #30443
Conversation
prev_panda_gas = self.safety.get_gas_pressed_prev() | ||
prev_panda_brake = self.safety.get_brake_pressed_prev() | ||
prev_panda_regen_braking = self.safety.get_regen_braking_prev() | ||
prev_panda_vehicle_moving = self.safety.get_vehicle_moving() | ||
prev_panda_cruise_engaged = self.safety.get_cruise_engaged_prev() | ||
prev_panda_acc_main_on = self.safety.get_acc_main_on() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we re-use the warm up code in test_panda_safety_carstate
(or that whole function), but so far I haven't found a nice way to generate examples inside the function. Will do some more looking after this is merged
Last 5 runs:
|
This is a significant slowdown to GH actions. Can we lower it to 15s? |
I measured master and this branch at different times, but the performance you get on GH Actions seems inconsistent through time. Now on master after this change, it's literally only ~15s slower than the times I posted here. |
Ok let's monitor it and reduce if we see slowdowns >15s. I would like all CI to finish <5m soon. We're close to that, but we can't regress too much. |
Actually finding lots of legitimate mismatches between openpilot/CANParser and panda safety:
CANParser
maintains values from invalid msgs invl_all
when it shouldn't add them in the first place, causing bad brake press values in CS when it gets a valid msg - CANParser: process all signals before updating values opendbc#977CHECKSUM
beforeCOUNTER
, leading to counter not always getting updated properly if checksum is invalid - CANParser: process all signals before updating values opendbc#977counter_fail
to the max opendbc#976VW PQ: standstill checks don't match, panda doesn't check counter fordashcam!MSG_BREMSE_1
butCANParser
doessafety: check interceptor msg counter panda#1738safety: add safety param for gas interceptor panda#1735Tesla CS and safety check two different messages fordashcam!standstill
/vehicle_moving
, probably becauseESP_B
isn't on both PT and the other bus. @robbederks can we just make openpilot useDI_torque2
? This also fixes possible mismatches for the angle safety since it uses vehicle speed - Tesla: match vehicle_speed message openpilot uses panda#1256BRAKE_MODULE
check to the same set asPOWERTRAIN_DATA
which always exists, so it randomly selects an address and only checks one message (Honda Bosch: add alt brake msg to rx checks panda#649) - Honda: fix alt brake address check race condition panda#1746