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

Reducing testing time of car/tests to be about 0.3 seconds (link to #1184) #1823

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

tanyamalik2000
Copy link

@tanyamalik2000 tanyamalik2000 commented Feb 23, 2025

I was able to reduce the testing time of car/tests to about 0.3 seconds just by removing the parameterized import in all the files and replacing it with for loops. This links to #1184.

I can check to see if I can reduce it further to less than 0.1 seconds according to the bounty, but this pull request can either be used as a checkpoint (or completion if the reduction is not possible).

@github-actions github-actions bot added the car related to opendbc/car/ label Feb 23, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to opendbc! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • include a route or your device' dongle ID if relevant

@sshane
Copy link
Contributor

sshane commented Feb 24, 2025

The tests are failing. Can we instead just write a fast parameterized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car related to opendbc/car/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants