Skip to content

Fix flakiness caused by wrong parameter used in the test

Martin Čavoj requested to merge mc/fix-sbom-component-id-test into master

What does this MR do and why?

This MR should fix a random failure that I noticed in https://gitlab.com/gitlab-org/gitlab/-/jobs/6135306119. It seems like the parameter passed in the test doesn't match the column name that we're filtering on: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/models/ee/project.rb#L337 - component_id vs component_version_id.

The test can pass by accident if the id is the same for both columns.

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.

Merge request reports

Loading