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

Add Delay HIL test #1415

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Add Delay HIL test #1415

merged 2 commits into from
Apr 29, 2024

Conversation

JurajSadel
Copy link
Contributor

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • My changes were added to the CHANGELOG.md in the proper section.

Extra:

Pull Request Details 📖

Description

Adds an HIL test for Delay.
Not really sure, how useful these tests are though. Using the same value of delay as timeouts ends up in timeouts which is expected (correct me if I'm wrong). I used "random" delay values, maybe I can tune them a little bit but not sure if that make sense. Any feedback/suggestion is appreciated.

Testing

Run Delay test locally on multiple chip targets and manually triggered HIL job for this branch.

@JurajSadel JurajSadel added the skip-changelog No changelog modification needed label Apr 9, 2024
@JurajSadel JurajSadel marked this pull request as draft April 9, 2024 12:23
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

Hmm, I'm wondering if we can test the opposite as well. For most delays what's important is that the delay waits at least as the long as specified. Waiting for longer is much less important than waiting for less than specified. I don't have a good idea on how to test that though.

@MabezDev
Copy link
Member

As discussed in our last meeting, let's leave this open as draft until we have a solution to testing #1415 (review)

@MabezDev
Copy link
Member

I guess we could finish this off by doing something like this: https://github.com/esp-rs/esp-hal/pull/1503/files#diff-e59763db0f920701a0f837f4ad608deb797df5ffeb0adc976fc65eaecd1a2915R40-R42 we are sorta dependent on either breaking, but if either break we probably want to know?

@JurajSadel JurajSadel marked this pull request as ready for review April 29, 2024 09:12
Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally on C3, S3 and C6. H2 fails (#1509).

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM

@bjoernQ bjoernQ added this pull request to the merge queue Apr 29, 2024
Merged via the queue into esp-rs:main with commit db8a591 Apr 29, 2024
21 checks passed
@JurajSadel JurajSadel deleted the hil-test-delay branch May 23, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants