-
Notifications
You must be signed in to change notification settings - Fork 3k
Drivers directory restructuring #13356
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
Conversation
@gpsimenos, thank you for your changes. |
110d660
to
81f4be7
Compare
Rebased. |
CI restarted |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
@gpsimenos There are lot of failures for multiple targets, do you have any of them to retest? |
I'm looking into it. From the failing targets, I have the K64F and DISCO_L475VG_IOT01A. |
The greentea tests that are failing are those that have a corresponding host test. It seems the host test scripts are not found due to the restructuring. I'm working on a fix. |
This should fix it #13362 ? Or more to come? |
Yes that will do it for rtos, and we'll need a similar change in this PR and #13298. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
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.
Hi, my PR #13362 only fixed the issue caused by #13264
In this PR you'll need to do some similar fix
copy mbed-os/TESTS/host_tests/timing_drift_auto.py
to mbed-os/drivers/tests/TESTS/host_tests/timing_drift_auto.py
because this file is required by
- https://github.com/ARMmbed/mbed-os/blob/master/TESTS/mbed_drivers/lp_timeout/main.cpp#L76
- https://github.com/ARMmbed/mbed-os/blob/master/TESTS/mbed_drivers/timeout/main.cpp#L69
- https://github.com/ARMmbed/mbed-os/blob/master/TESTS/mbed_drivers/ticker/main.cpp#L315
Do NOT move it, because it still need by :
CI not cover this timing drift test, because CI can't guarantee the time accuracy. It so got missed.
For the rest of failure. similarly, you'll need to go though all the greentea tests you moved, to identify what host_test
python code they use, and move/copy them over accordingly.
Thanks @jamesbeyond I was thinking if there's a better way to avoid duplicating the host tests? |
@jamesbeyond Could we change this script to make it look in the root TESTS directory for the host tests, regardless of the location of the device binary? https://github.com/ARMmbed/mbed-os-tools/blob/5a14958aa49eb5764afba8e1dc3208cae2955cd7/packages/mbed-greentea/mbed_greentea/mbed_test_api.py#L110 |
Pull request has been modified.
b444615
to
bb5c2cf
Compare
Rebased. Discussed with @jamesbeyond and agreed to duplicate some host tests in drivers test directory as a temporary solution, until the new mbed tools allow a better solution. CI should now pass. |
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Minor comment: |
It's a limitation of the build system we'll resolve in the future. For example, the second "tests" comes from the TESTS/ directory which is a magic keyword to identify Greentea tests. Also "mbed_drivers" is a redundant part we can't remove for now. It'll look more concise once we have improved the build system in the future. |
Summary of changes
mbed-os/drivers
directory restructured according to the internal proposal.mbed-os/drivers/include/drivers
foldermbed-os/drivers/tests/UNITTESTS
foldermbed-os/drivers/tests/TESTS
folderThis is one of a series of PRs aiming to clean up the mbed-os directory structure. The intention is to create a consistent tree among mbed components, following the below structure:
Impact of changes
None
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers
@evedon
@ashok-rao
@LDong-Arm