Skip to content

metadata: add EXTRA_METADATA for job metadata keys - #98

Merged
Milosz Wasilewski (mwasilew) merged 1 commit into
qualcomm-linux:masterfrom
mattface:extra-metadata
Sep 9, 2026
Merged

metadata: add EXTRA_METADATA for job metadata keys#98
Milosz Wasilewski (mwasilew) merged 1 commit into
qualcomm-linux:masterfrom
mattface:extra-metadata

Conversation

@mattface

Copy link
Copy Markdown

Recording anything new in the LAVA job metadata meant adding a variable to every project template first. Accept a mapping instead: every key in EXTRA_METADATA is added to the metadata of the rendered job, so callers can record build details without a change here.

Project templates now name their keys in a METADATA dict and share one renderer. A key that collides with a named one is dropped rather than emitted twice, which would fail the job. Mappings are merged across variables files instead of replacing each other.

Recording anything new in the LAVA job metadata meant adding a variable
to every project template first. Accept a mapping instead: every key in
EXTRA_METADATA is added to the metadata of the rendered job, so callers
can record build details without a change here.

Project templates now name their keys in a METADATA dict and share one
renderer. A key that collides with a named one is dropped rather than
emitted twice, which would fail the job. Mappings are merged across
variables files instead of replacing each other.

Signed-off-by: Matt Hart <matthart@qti.qualcomm.com>
@mwasilew
Milosz Wasilewski (mwasilew) merged commit 2f2900c into qualcomm-linux:master Sep 9, 2026
5 checks passed
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