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

test_models: fuzz test panda and CarState #30443

Merged
merged 117 commits into from
Dec 19, 2023
Merged

test_models: fuzz test panda and CarState #30443

merged 117 commits into from
Dec 19, 2023

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Nov 11, 2023

Actually finding lots of legitimate mismatches between openpilot/CANParser and panda safety:

@commaai commaai deleted a comment from github-actions bot Nov 11, 2023
@commaai commaai deleted a comment from github-actions bot Nov 11, 2023
@commaai commaai deleted a comment from github-actions bot Nov 11, 2023
@sshane sshane added CI / testing car vehicle-specific labels Nov 11, 2023
Comment on lines +332 to +337
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()
Copy link
Contributor Author

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

@sshane
Copy link
Contributor Author

sshane commented Dec 19, 2023

Last 5 runs:

branch jenkins cars (0) cars (1) cars (2) cars (3) cars (4)
master 1:45 4:17 4:12 3:57 3:45 4:13
fuzzy-panda-carstate 3:17 (+1:32) 5:21 (+1:04) 5:22 (+1:10) 4:55 (+0:58) 4:38 (+0:53) 5:17 (+1:04)

@sshane sshane merged commit 5052b55 into master Dec 19, 2023
23 checks passed
@sshane sshane deleted the fuzzy-panda-carstate branch December 19, 2023 09:18
@adeebshihadeh
Copy link
Contributor

This is a significant slowdown to GH actions. Can we lower it to 15s?

@sshane
Copy link
Contributor Author

sshane commented Dec 20, 2023

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.

@adeebshihadeh
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car vehicle-specific CI / testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants