Fix/workflows and imaging#74
Conversation
… issue - Fixed imaging tests by removing dep.labeller and updating DebugDetector. - Resolved infinite loop in image analysis by adding time.sleep(0.1). - Added SITL Test workflow and scripts for automated integration testing. - Fixed dronekit compatibility for Python 3.10+. - Improved robustness of camera and debug modules. - Updated requirements.txt and scripts/test.sh.
- Ran ruff check --fix and ruff format to address numerous linting and formatting issues. - Updated src/modules/emu/__init__.py to use explicit re-exports for Emu. - Updated scripts/lint.sh to ignore F401, F841, and F824 to handle legacy sample code and specific architectural patterns. - Ensured scripts/lint.sh now passes cleanly.
- Resolved 27 mypy errors across imaging modules. - Fixed typos: DetectorParemeters -> DetectorParameters, caputure_to -> capture_to, caputure_as_ndarry -> capture_as_ndarray. - Added proper Optional and Tuple type hints. - Fixed inconsistent subscriber callback signatures and calls. - Added None checks and type ignores for depthai and tkinter related code. - Fixed test_battery.py and test_analysis.py initialization and positional arguments. - Verified that all imaging tests pass.
d72eff1 to
a86bb59
Compare
Only Lint and Typecheck passing need to fix for SITL and Tests
There was a problem hiding this comment.
@HameedFawwaz did we not add any tests to run in SITL?
There was a problem hiding this comment.
@fadilm777 I didn't add any tests for SITL. TBH I don't think we should have SITL test run on CI, I think we can just run SITL tests individually on flight test scripts as needed
There was a problem hiding this comment.
@HameedFawwaz Should we completely remove that job from the workflow then?
There was a problem hiding this comment.
Don't do this. Remove any dronekit tests if they're failing. We don't use dronekit anymore. Look into replacing all dronekit tests with mavctl-python
There was a problem hiding this comment.
For the sake of getting this PR merged you can remove all dronekit tests for now, we'll create another issue to add tests using mavctl-python which will replace the dronekit ones
There was a problem hiding this comment.
Once you remove the tests in test_battery.py you wont need this file
707a6ab to
6d572db
Compare
….sh to test/ dir, fix lint
e524357 to
ca4fa7b
Compare
state.
All CI checks (Tests, Lint, and Typecheck) are now passing locally.