Skip to content

Add sensor calibration timeout for test setup#879

Merged
1Blademaster merged 3 commits intomainfrom
878-tests-with-simulator-get-stuck-calibrating-occasionally
Nov 28, 2025
Merged

Add sensor calibration timeout for test setup#879
1Blademaster merged 3 commits intomainfrom
878-tests-with-simulator-get-stuck-calibrating-occasionally

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings November 28, 2025 11:10
@1Blademaster 1Blademaster linked an issue Nov 28, 2025 that may be closed by this pull request
@1Blademaster 1Blademaster force-pushed the 878-tests-with-simulator-get-stuck-calibrating-occasionally branch from 220eacb to 45fff0d Compare November 28, 2025 11:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a timeout mechanism for the sensor calibration process during test setup to prevent tests from hanging indefinitely if the drone fails to calibrate. Previously, waitUntilCalibrated() would block indefinitely; now it times out after 5 seconds and gracefully exits the test session.

Key changes:

  • Added a 5-second timeout to the waitUntilCalibrated() function with proper error logging
  • Changed waitUntilCalibrated() to return a boolean indicating success/failure
  • Added calibration success validation in pytest_sessionstart() to exit tests if calibration fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread radio/tests/conftest.py Outdated
Comment thread radio/tests/conftest.py Outdated
Comment thread radio/tests/conftest.py Outdated
@1Blademaster 1Blademaster requested a review from a team November 28, 2025 11:19
@1Blademaster
Copy link
Copy Markdown
Member Author

Will re-check when #881 get's merged in

@1Blademaster 1Blademaster requested review from a team and removed request for a team November 28, 2025 20:45
@1Blademaster 1Blademaster merged commit d9dba8d into main Nov 28, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the 878-tests-with-simulator-get-stuck-calibrating-occasionally branch November 28, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests with simulator get stuck calibrating occasionally

3 participants