Re: [bitbake-devel] [PATCH 0/8] bitbake-setup JSON Schema: Fix linting errors
"Woolley, Rob" <[email protected]>
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <DM8PR11MB56556CF8AD10DF98CF51FD66E15AA@DM8PR11MB5655.namprd11.prod.outlook.com> |
Mathieu Dubois-Briand said:
> Hi Rob,
>
> Thanks for you series.
>
> It looks like some selftests are now failing:
>
> 2026-04-07 08:44:43,890 - oe-selftest - INFO - bblayers.BitbakeLayers.test\_bitbakelayers\_setup (subunit.RemotedTestCase)
> 2026-04-07 08:44:43,891 - oe-selftest - INFO - ... FAIL
> ...
> /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-1874443/tmp/work/x86\_64-linux/python3-jsonschema-native/4.26.0/recipe-sysroot-native/usr/bin/jsonschema:5: DeprecationWarning: The jsonschema CLI is deprecated and will be removed in a future version. Please use check-jsonschema instead, which can be installed from <https://pypi.org/project/check-jsonschema/>
> from jsonschema.cli import main
> {'version': '1.0', 'sources': {'bitbake': {'git-remote': {'remotes': {'origin': {'uri': '<https://git.openembedded.org/bitbake'}}>, 'branch': 'master', 'rev': 'master'}, 'path': 'bitbake'}}}: {'version': '1.0', 'sources': {'bitbake': {'git-remote': {'remotes': {'origin': {'uri': '<https://git.openembedded.org/bitbake'}}>, 'branch': 'master', 'rev': 'master'}, 'path': 'bitbake'}}} is not of type 'array'
> ...
> 2026-04-07 08:45:39,329 - oe-selftest - INFO - bblayers.BitbakeLayers.test\_bitbakelayers\_updatelayer (subunit.RemotedTestCase)
> 2026-04-07 08:45:39,331 - oe-selftest - INFO - ... FAIL
> ...
> 2026-04-07 08:45:39,594 - oe-selftest - INFO - bblayers.BitbakeLayers.test\_validate\_bitbake\_setup\_default\_registry (subunit.RemotedTestCase)
> 2026-04-07 08:45:39,594 - oe-selftest - INFO - ... FAIL
> ...
> 2026-04-07 08:45:39,819 - oe-selftest - INFO - bblayers.BitbakeLayers.test\_validate\_examplelayersjson (subunit.RemotedTestCase)
> 2026-04-07 08:45:39,820 - oe-selftest - INFO - ... FAIL
>
> <https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3617>
> <https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3499>
>
> Can you have a look at the issue?
>
> Thanks,
> Mathieu
>
> \--
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> <https://bootlin.com>
Hi Mathieu,
Thanks for pointing this out. The fix is simply to use brackets to enclose the object in the examples property inside an array.
I expanded my testing to include oe-selftest. I just sent out a v2 of the patch series.
Cheers,
Rob