-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
scripts: west: genboard: use JSON schema #18891
base: main
Are you sure you want to change the base?
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 6cac861b57b16c94da5557801f822ef69ea4c0ca more detailssdk-nrf:
Github labels
List of changed files detected by CI (4)
Outputs:ToolchainVersion: f51bdba1d9 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
4795c4e
to
b5292df
Compare
@@ -119,7 +122,7 @@ def do_run(self, args, unknown_args): | |||
break | |||
|
|||
if not targets: | |||
log.err(f"Invalid/unsupported variant: {args.variant}") | |||
log.err(f"Invalid/unsupported variant: {req_variant}") |
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.
Does it make sense to validate soc
and variant
after the validation in line 62. passed? All supported combinations of socs and variants can be listed in the schema.
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.
this means the internal config file is not aligned, should really be catched in tests...
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.
Can I ask to add a logging messages to stdout that unambiguously inform about the successful generation of the board at the end of the process, please. And other one that informs about the errors?
We are going to integrate with this tool on windows, linux, and macOs which makes logging through the stdout the simplest way to interface through.
For example "The board has been successfully generated" and "Failed to generate board - schema validation error" and "Failed to generate board - (...) whatever other recognizable failure occurred".
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.
added some messages, pls check
Use JSON-schema for input/output. This eases tool integration with other tooling as we have a standardized interface. Signed-off-by: Gerard Marull-Paretas <[email protected]>
b5292df
to
6cac861
Compare
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.
Thank you for implementing requested changes. Looks good for me now.
Use JSON-schema for input/output. This eases tool integration with other tooling as we have a standardized interface.