-
Notifications
You must be signed in to change notification settings - Fork 53
meta-iotqa: Clean up and enablement of single-node Bluetooth test cases #143
Conversation
|
|
||
| REFKIT_IMAGE_COMPUTERVISION_EXTRA_FEATURES_append = " computervision-test" | ||
| REFKIT_IMAGE_FEATURES_COMMON_append = " common-test" | ||
| BAD_RECOMMENDATIONS_remove = "bluez5-client" |
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.
both are not needed. either this or the packagegroup change
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.
When I only add the packagegroup entry, the build fails with a message indicating there is no provider for bluez5-client. I had to add the BAD_RECOMMENDATIONS_remove entry for the build to work. I had left the packagegroup entry to indicate the dependency for bluetoothctl in common-test, but I´ll test again without it.
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.
Something is not right because according to BAD_RECOMMENDATIONS doc it must work:
It is important to realize that if you choose to not install packages using this variable and some other packages are dependent on them (i.e. listed in a recipe's RDEPENDS variable), the OpenEmbedded build system ignores your request and will install the packages to avoid dependency errors.
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.
There's a bug open: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11427
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 rebased the commit and amended it to only include the BAD_RECOMMENDATIONS_remove entry.
|
@jairglez thanks. did the tests work locally for you? They are failing now. |
|
@mythi The tests worked for a 570x, which it's the device I have available, I'm waiting for a Bluetooth card to be able to test over Turbot. For qemu, the tests definitely need to be masked out thought. |
c9a5615 to
8272c46
Compare
|
Can one of the admins verify this patch? |
|
@jairglez are you looking to finish this? |
|
@mythi I'm still looking to finish it, the problem is in my tests with an USB Bluetooth adapter, the Minnowboard tests work correctly, but on the CI, they fail on 'hciconfig hci0 reset', however the logs don't provide any info besides that. |
|
@jairglez I've not seen much debugging happening in this PR. If you don't have the hardware, you can use this PR for debugging. Here's what you need to do: rebase to the latest master, change the test case code to print out 'output' from hciconfig. You can also run other commands on the target to understand what goes wrong. |
|
Thanks @mythi, I wasn't aware I could use that option. I'll execute some debugging tests then. |
|
@jairglez that's very common option when something works locally but not in CI setup |
|
@mythi, with the latest changes to the refkit-layers what is now the best place to set up BAD_RECOMMENDATIONS_remove = "bluez5-client" for development images? Is it meta-refkit-core/classes/refkit-image.bbclass a good selection? |
|
@jairglez refkit-image.bbclass is OK but |
8272c46 to
985d9c5
Compare
|
You need to rebase this PR due to file conflicts. |
188d8f2 to
7ec900d
Compare
|
@mythi, @ipuustin: According to the test results, the Bluetooth module doesn't seem to be working at all on the Minnowboard Turbot. I consider we should file a bug for this case, and in order to merge this patchset and start testing the Joule at least, we should mask these tests out for Minnowboard Turbot while the issue is fixed. @epyeoh, do you agree? |
|
@mythi, @ipuustin, @epyeoh: I finally received the same Wireless pcie adapter that it's used on the CI (Intel Dual Band Wireless-AC 7260 - 7260HMW), and I was able to debug the issue further. Basically, the wireless adapter stops working after the command 'connmanctl disable bluetooth' is issued, while on dmesg, the following message is shown: "[ 421.158820] Bluetooth: hci0: turning off Intel device LED failed (-61)". After that, the hci0 interface stops responding and any attempt to bring the interface up times out until the DUT is rebooted. |
7ec900d to
e7f9e30
Compare
|
I've created bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=11714 detailing the previous issue. I also rebased the code again and added the new Bluetooth test cases to the mask file for MinnowBoard Turbot. |
|
@jairglez one thing you can easily test/try still if this is a kernel problem. please try setting |
|
@mythi I used the configuration you mentioned to create a custom refkit-common-image build, but the same issue occurs on it. |
Remove not used tags and update comments and variable names for added clarity. Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Disable Bluetooth after completing Bluetooth testing in order to not interfere with other tests. Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
bluetoothctl has been added to the list of bad recommendations to reduce GPLv3 dependencies. However, there are Bluetooth test cases that make use of this tool. This change removes it from the list, only for development images. Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Bluetooth tests can not be executed on QEMU, so add single node tests to its mask file. Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
Mask Bluetooth tests on MinnowBoard Turbot as the hci0 interface stops responding when Bluetooth is disabled on the current CI configuration: Expansion board: Silverjaw Lure (SKU 1000) Wireless adapter: Intel Dual Band Wireless-AC 7260 - 7260HMW YOCTO #11714 Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@linux.intel.com>
e7f9e30 to
345cfa3
Compare
|
@jairglez is this now considered ready for merging? At least the test results are clean. |
|
@pohly I would consider it ready for merging. As I previously mentioned, I had to skip testing the MinnowBoard because of bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=11714 affecting the current Bluetooth device used on RefKit's CI setup. The tests can be enabled back once the issue is solved in some way, maybe by using a different device on the CI setup (I tested it successfully with Bluetooth USB adapter TRENDnet TBW-107UB), or by correcting the issue, which I suspect is driver or firmware related. |
This PR cleans up and includes single-node Bluetooth test cases in the refkit-image-common manifest (this is tracked on Yocto bug #11255). It also adds bluetoothctl back to development images as some of the enabled test cases make use of this tool.
This PR replaces #116