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

CI/Simulator: Add Metadrive test to CI #32352

Merged
merged 8 commits into from
May 5, 2024

Conversation

bongbui321
Copy link
Contributor

@bongbui321 bongbui321 commented May 5, 2024

Before, when trying to force engage using by pressing the same CruiseButton.Decel, which is intended to force engagement, and it should work probably. However, the model might drop eval and OP would not engage. Since our last cruise button was CruiseButton.Decel already, pressing it again would not trigger any button event. This PR "pingpong" two value of CruiseButton which ensures the OP engage (ran local test 60 times successfully). This is due to how Metadrive starts onroad differently compared to normal driving

Prereq to run consistent test: #32308
Also resolves: #31125

two successful CI run with this PR, with 50 simulator_bridge test each:
https://github.com/commaai/openpilot/actions/runs/8956045113/job/24597388950
https://github.com/commaai/openpilot/actions/runs/8955986123

Copy link
Contributor

github-actions bot commented May 5, 2024

Thanks for contributing to openpilot! 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
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

@adeebshihadeh adeebshihadeh merged commit aca0136 into commaai:master May 5, 2024
27 checks passed
RchGrav added a commit to RchGrav/openpilot that referenced this pull request May 6, 2024
CI/Simulator: Add Metadrive test to CI (commaai#32352)
cydia2020 pushed a commit to cydia2020/dodgypilot that referenced this pull request May 14, 2024
* works consistently

* ci gha

* fix

* navd

* fix

* cleanup

* change button

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <[email protected]>
@bongbui321 bongbui321 deleted the metadrive_ci branch May 22, 2024 19:44
Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
* works consistently

* ci gha

* fix

* navd

* fix

* cleanup

* change button

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <[email protected]>
old-commit-hash: aca0136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[$100 bounty] get metadrive test running in CI
2 participants