-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Added FileNotFound error code according to new Mavlink FTP specification #12976
Conversation
Mavlink FTP tests failing on Jenkins. |
@MatejFranceskin You need to update the test as well or fix the implementation. If the test needs to be updated then the backwards compatibility might have been broken, which is a hint that the change needs to be fixed. We can't upgrade all QGC / SDK version in parallel. |
68fe058
One test actually pointed out to a real problem which is fixed now. Other tests have been changed. QGC currently doesn't check the errno return codes and will behave the same regardless of this PR. When this is merged I will make a PR also for QGC so that it will display new error message. MAVSDK MavlinkFTP module will work with older and newer firmwares. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI still fails.
@MatejFranceskin does |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see CI fails:
INFO [mavlink_tests] RUNNING TEST: _removedirectory_test
ERROR [mavlink_tests] Compare failed: Incorrect payload size - (reply->size:2) (test->reply_size:1) (../../src/modules/mavlink/mavlink_tests/mavlink_ftp_test.cpp:694)
ERROR [mavlink_tests] TEST FAILED: _removedirectory_test
Otherwise looks good.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
@julianoes Can you merge this if it is OK? |
3ae7636
to
de85dbf
Compare
Rebased and force pushed, let's see. |
Codecov Report
@@ Coverage Diff @@
## master #12976 +/- ##
===========================================
- Coverage 53.01% 38.15% -14.86%
===========================================
Files 625 584 -41
Lines 53032 49531 -3501
===========================================
- Hits 28113 18900 -9213
- Misses 24919 30631 +5712
|
36c3dbb
to
a69edf1
Compare
I'm puzzled. The tests pass locally for me as well as in docker. This must be some permission issue that we can't write files in the working directory. |
Can you add more instrumentation? The result shows |
cd5f2b8
to
ff9e6f8
Compare
ff9e6f8
to
ef8016a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now hardfaults on px4_fmu-v2_test
. I'm checking.
3fa8813
to
40c2b6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now passes my tests, let's see what CI says.
CI still fails on MacOS. |
40c2b6c
to
e137789
Compare
e137789
to
2d637d2
Compare
2d637d2
to
ccc6ce3
Compare
Finally fixed - merging. |
@LorenzMeier thanks for merging but you managed to squash (overwrite) 22h hours of my time and 11 commits with valuable diff information 😲. I don't care too much about my name being in the history but more about the fact that I wrote down why and how I changed things for the next confused reader. And squashing as a final step is ok but not even having it in the GitHub PR here is bad. For anyone looking for some context later, here are my commit notes:
|
Fair ask regarding the commit messages. From the summary lines it did sound like CI debugging, that might have been the wrong call here, sorry! I’m wondering if some of that information would have rather belonged into code or a dedicated CI doc? I believe that most people only will look at a commit message if they dont understand the change and some of the information you have in there would probably benefit anyone extending these tests in the future. |
Update to Mavlink FTP protocol added a new error code for FileNotFound error.
mavlink/mavlink-devguide#199
Until now a errno was set to ENOENT and had to be interpreted as such in MavlinkFTP client.
Code change is aligned and tested with MAVSDK MavlinkFTP module and its integration tests.