Skip to content

Fix attributes comparison during SBOM ingestion

What does this MR do and why?

Fix comparison of new attributes with existing attributes during the ingestion of SBOM occurrences. Prior to that change, attributes were considered to be different when the existing SBOM occurrence had licenses. This resulted in a unnecessary upserts.

The existing specs were updated to surface the flaw. Now the specs won't pass unless the licenses are properly compared when comparing new attributes to the old ones.

This is a follow-up to Optimize updates of sbom_occurrences (!157932 - merged).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #442486

Edited by Fabien Catteau

Merge request reports