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

Merged
merged 1 commit into from
Jul 10, 2025

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 2 times, most recently from 413bbcc to ece4877 Compare July 1, 2025 07:42
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 ece4877 to d6b3563 Compare July 10, 2025 07:28
@JenySadadia JenySadadia added this pull request to the merge queue Jul 10, 2025
Merged via the queue into kernelci:main with commit b5c710b Jul 10, 2025
4 checks passed
@a-wai a-wai deleted the helper-fix-null-artifacts branch July 10, 2025 10:06
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.

3 participants