Bug 7625 - Add support for devtool/recipetool plugins in additional layers
Summary: Add support for devtool/recipetool plugins in additional layers
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.8
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.9
Assignee: Christopher Larson
QA Contact: Daniel Istrate
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-17 16:39 UTC by Paul Eggleton
Modified: 2015-10-12 12:35 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2015-04-17 16:39:48 UTC
devtool/recipetool support an extension mechanism, but currently this can only work within the default location in OE-Core or whatever takes its place. It would be nice if it were possible to extend it via the layer mechanism - we did this for the automated runtime test framework for example.

We would need to ensure we could practically search for plugins at the right time without taking too long - you need to know the search path before you show the help text in response to --help for example, but in order to find the search path across all layers you'd need to use tinfoil to parse the configuration.
Comment 1 Christopher Larson 2015-07-06 17:43:46 UTC
This is partially implemented (only for recipetool but not devtool at the moment) in patches on the oe-core list, but does not have unit tests in oe-selftest yet. We'll need to confirm that this implementation handles the performance appropriately per this bug description (I wrote the patch before seeing this bug), and see if we want to try to shift any of it into a common module or leave it implemented independently in both tools.
Comment 2 Christopher Larson 2015-07-06 20:12:05 UTC
A related suggestion: I don't know if oe-selftest supports loading tests from external locations, either explicitly or via BBPATH, but it'd be nice to add that capability if not, so unit tests can be created for the new sub-commands which live outside the core.
Comment 3 Christopher Larson 2015-07-14 15:50:10 UTC
About to submit a patch series for this which also adds the bits to oe-selftest to pull tests from layers.
Comment 4 Christopher Larson 2015-07-14 15:59:58 UTC
Sent to the oe-core list.
Comment 5 Christopher Larson 2015-07-29 21:26:56 UTC
This was merged to oe-core.
Comment 6 Ross Burton 2015-10-12 12:11:56 UTC
I wrote a test case for devtool to exercise this:

2015-10-12 13:01:37 - test_devtool_layer_plugins (oeqa.selftest.devtool.DevtoolTests)
Test that devtool can use plugins from other layers. ... ok

(patches on the list)