LayerIndex/Checker: Difference between revisions

From Openembedded.org
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a project to increase the quality of the LayerIndex entries.
This is a little project to increase the quality of the LayerIndex entries.
 
We do not have a name yet, so we just call it 'Checker' for now.


It uses existing tools and the guidelines documented e.g. in the BSP guides and in the existing tests/tooling.
It uses existing tools and the guidelines documented e.g. in the BSP guides and in the existing tests/tooling.
Line 5: Line 7:
Currently it does 3 things:
Currently it does 3 things:


a) grep LAYERSERIES_COMPAT meta-arago-extras/conf/layer.conf
a) grep LAYERSERIES_COMPAT <layer>/conf/layer.conf


b) grep LAYERDEPENDS meta-arago-extras/conf/layer.conf
a1) grep for 'dunfell' (or gatesgart)
 
b) grep LAYERDEPENDS <layer>/conf/layer.conf
 
[ run bitbake-layer layerindex-fetch $layer ]


c) run layer check script:  yocto-check-layer (from OE-core repo)
c) run layer check script:  yocto-check-layer (from OE-core repo)
Line 14: Line 20:


An example run is available on this page for 'dunfell' [[LayerIndex/Checker/dunfell]]
An example run is available on this page for 'dunfell' [[LayerIndex/Checker/dunfell]]
Code is at: https://github.com/dl9pf/layerindexchecker
Next steps:
* need help with:
** Update layerindex to add field noting the layer passed the 'checker' (or however we will name it)
** Expose api call to upload this for branch/layer/package combination
** option: add field showing if the checker did run/run last
** option: add field noting the error if it did not pass
* will do myself
** update script to work against api
** enhance script to pick machines for BSP layers
----
https://www.openembedded.org/wiki/LayerIndex/Checker

Latest revision as of 11:58, 1 June 2021

This is a little project to increase the quality of the LayerIndex entries.

We do not have a name yet, so we just call it 'Checker' for now.

It uses existing tools and the guidelines documented e.g. in the BSP guides and in the existing tests/tooling.

Currently it does 3 things:

a) grep LAYERSERIES_COMPAT <layer>/conf/layer.conf

a1) grep for 'dunfell' (or gatesgart)

b) grep LAYERDEPENDS <layer>/conf/layer.conf

[ run bitbake-layer layerindex-fetch $layer ]

c) run layer check script: yocto-check-layer (from OE-core repo)


An example run is available on this page for 'dunfell' LayerIndex/Checker/dunfell


Code is at: https://github.com/dl9pf/layerindexchecker

Next steps:

  • need help with:
    • Update layerindex to add field noting the layer passed the 'checker' (or however we will name it)
    • Expose api call to upload this for branch/layer/package combination
    • option: add field showing if the checker did run/run last
    • option: add field noting the error if it did not pass
  • will do myself
    • update script to work against api
    • enhance script to pick machines for BSP layers



https://www.openembedded.org/wiki/LayerIndex/Checker