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

Fix Figure Eight CI Test #22529

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Fix Figure Eight CI Test #22529

merged 1 commit into from
Dec 12, 2023

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Dec 12, 2023

Solved Problem

When working on PRs I was going nuts about the figure eight test failing more often than not.

Solution

wait_until_altitude() checks for absolute altitude being close so checking for 1m below the setpoint can fail if the speedup results in no sample inside the altitude window being checked.

Changelog Entry

CI fix: Make figure-eight test pass consistently

Alternatives

Ideally the test could check if the takeoff is done directly instead of comparing altitudes in the first place.

Test coverage

I successfully ran the test 100 times with the altitude thershold 5 times narrower at 10cm instead of 50cm. Without the fix I had it fail locally basically every single time.
image

wait_until_altitude() checks for absolute altitude being
close so checking for 1m below the setpoint can fail
if the speedup results in no sample inside the altitude
window being checked.

Ideally the test could check if the takeoff is done directly
instead of comparing altitudes in the first place.
@MaEtUgR
Copy link
Member Author

MaEtUgR commented Dec 12, 2023

Happy CI 🎉
image

@MaEtUgR MaEtUgR merged commit 75bb25a into main Dec 12, 2023
90 checks passed
@MaEtUgR MaEtUgR deleted the figure-eight-fix branch December 12, 2023 19:22
@KonradRudin
Copy link
Contributor

Thanks a lot was driving me nuts as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants