All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <rob.woolley@windriver.com>, <bitbake-devel@lists.openembedded.org>
Subject: Re: [bitbake-devel] [PATCH 0/8] bitbake-setup JSON Schema: Fix linting errors
Date: Tue, 07 Apr 2026 12:25:00 +0200	[thread overview]
Message-ID: <DHMULR3D49P4.10EX6OE4BC2CZ@bootlin.com> (raw)
In-Reply-To: <20260406172110.2050236-1-rob.woolley@windriver.com>

On Mon Apr 6, 2026 at 7:21 PM CEST, Rob Woolley via lists.openembedded.org wrote:
> This series fixes some linting errors in the JSON Schema.  Problems
> were found using the https://github.com/sourcemeta/jsonschema tool.
>
> Here are the steps used to install and use the tool to lint the schemas:
>
>   python3 -m venv venv
>   source venv/bin/activate
>   pip install sourcemeta-jsonschema
>   jsonschema lint bitbake-setup.schema.json
>   jsonschema lint layers.schema.json
>
> This allowed me to use jsonschema to validate the BitBake Configuration File:
>   jsonschema validate path/to/bitbake-setup.schema.json oe-nodistro-master.conf.json
>
> There are 2 outstanding types of linting errors related to the use of hyphen
> in the property names and the enum currently having only one value:
>
>   Set `properties` to identifier names that can be easily mapped to programming
>   languages (matching [A-Za-z_][A-Za-z0-9_]*) (simple_properties_identifiers).
>
>   An `enum` of a single value can be expressed as `const` (enum_to_const)
>
> The former would require a larger discussion and potentially increasing the
> version number. Updating the enum to include a new version would also resolve
> the latter error.
>
> I do not believe that the changes in this series merit increasing the version
> of the schema.
>
> Resolving these outstanding errors is not necessary for validating the
> Bitbake Configuration files.

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



  parent reply	other threads:[~2026-04-07 10:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-06 17:21 [PATCH 0/8] bitbake-setup JSON Schema: Fix linting errors Rob Woolley
2026-04-06 17:21 ` [PATCH 1/8] bitbake-setup.schema.json: Add title for schema Rob Woolley
2026-04-06 17:21 ` [PATCH 2/8] bitbake-setup.schema.json: Add examples property Rob Woolley
2026-04-06 17:21 ` [PATCH 3/8] bitbake-setup.schema.json: Use anyOf for non-disjoint subschemas Rob Woolley
2026-04-06 17:21 ` [PATCH 4/8] bitbake-setup.schema.json: Remove trailing period Rob Woolley
2026-04-06 17:21 ` [PATCH 5/8] layers.schema.json: Add missing schema Rob Woolley
2026-04-06 17:21 ` [PATCH 6/8] layers.schema.json: Add title for subschema Rob Woolley
2026-04-06 17:21 ` [PATCH 7/8] layers.schema.json: Add examples property Rob Woolley
2026-04-06 17:21 ` [PATCH 8/8] layers.schema.json: Remove trailing period Rob Woolley
2026-04-07 10:25 ` Mathieu Dubois-Briand [this message]
2026-04-07 15:04   ` [bitbake-devel] [PATCH 0/8] bitbake-setup JSON Schema: Fix linting errors Woolley, Rob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DHMULR3D49P4.10EX6OE4BC2CZ@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=rob.woolley@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.