Skip to content

kernelci: api: helper: don't crash when adding artifacts to node #2916

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

a-wai
Copy link
Contributor

@a-wai a-wai commented Jun 25, 2025

Nodes are created with 'artifacts': null, meaning calling update() could lead to an uncaught exception, and therefore a crash. Avoid this situation by ensuring this field is a dict before calling update().

Copy link
Contributor

@pawiecz pawiecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@a-wai a-wai force-pushed the helper-fix-null-artifacts branch from ed711e2 to 413bbcc Compare July 1, 2025 07:40
Nodes are created with `'artifacts': null`, meaning calling `update()`
could lead to an uncaught exception, and therefore a crash. Avoid this
situation by ensuring this field is a dict before calling `update()`.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
@a-wai a-wai force-pushed the helper-fix-null-artifacts branch from 413bbcc to ece4877 Compare July 1, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants