Skip to content

[Backport v3.4-branch] [nrf noup] [west zap] Refinements and fixes to some edge cases#725

Open
markaj-nordic wants to merge 4 commits into
nrfconnect:v3.4-branchfrom
markaj-nordic:backport-719-to-v3.4-branch
Open

[Backport v3.4-branch] [nrf noup] [west zap] Refinements and fixes to some edge cases#725
markaj-nordic wants to merge 4 commits into
nrfconnect:v3.4-branchfrom
markaj-nordic:backport-719-to-v3.4-branch

Conversation

@markaj-nordic
Copy link
Copy Markdown
Contributor

[nrf noup] [west zap-gui] Refine error handling

It turns out that the subprocess may return no output
if the Chromium cannot use sandbox due to the missing
permissions. Added a workaround that raises an exception
if the command execution output is empty, so that it
can be handled with the fix_sandbox_permissions() call.

Signed-off-by: Marcin Kajor marcin.kajor@nordicsemi.no

[nrf noup] [west zap-sync] Handle overwriting of the default zcl file

Fixed the handling of the case when the default
cluster definition file (zcl.json) is used as both
input and output to the command. Without the fix,
the script removes the zcl.json and exits, because
the removed file cannot be copied.

Signed-off-by: Marcin Kajor marcin.kajor@nordicsemi.no

[nrf noup] [west zap-append] Add fallback to the attribute name deduction

Some XML cluster definitions do not contain the dedicated
'name' entry in the attribute field, instead they just
add name of the cluster as a text to the attribute
definition. Added a fallback logic, so that such cases
are handled to avoid ending up with null attributes in
zcl.json file. This mimics the ZAP loader behavior.

Signed-off-by: Marcin Kajor marcin.kajor@nordicsemi.no

Testing

Tested manually when adding a custom cluster.

…tion

Some XML cluster definitions do not contain the dedicated
'name' entry in the attribute field, instead they just
add name of the cluster as a text to the attribute
definition. Added a fallback logic, so that such cases
are handled to avoid ending up with null attributes in
zcl.json file. This mimics the ZAP loader behavior.

Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
Fixed the handling of the case when the default
cluster definition file (zcl.json) is used as both
input and output to the command. Without the fix,
the script removes the zcl.json and exits, because
the removed file cannot be copied.

Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
It turns out that the subprocess may return no output
if the Chromium cannot use sandbox due to the missing
permissions. Added a workaround that raises an exception
if the command execution output is empty, so that it
can be handled with the fix_sandbox_permissions() call.

Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
- Refined error handling
- Reduced the verbosity

Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
@markaj-nordic markaj-nordic requested a review from a team as a code owner May 29, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants