Flaky spec: ee/spec/models/vulnerabilities/projects_grade_spec.rb:37 # Vulnerabilities::ProjectsGrade.grades_for when the given vulnerable is a Group returns the letter grades for given vulnerable
I saw this in https://gitlab.com/gitlab-org/gitlab/-/jobs/665099360:
Failures:
1) Vulnerabilities::ProjectsGrade.grades_for when the given vulnerable is a Group returns the letter grades for given vulnerable
Failure/Error: expect(projects_grades[vulnerable].map(&compare_key)).to match_array(expected_projects_grades[vulnerable].map(&compare_key))
expected collection contained: [["a", [824]], ["b", [825, 826]], ["c", [827]], ["f", [828]]]
actual collection contained: [["a", [824]], ["b", [826, 825]], ["c", [827]], ["f", [828]]]
the missing elements were: [["b", [825, 826]]]
the extra elements were: [["b", [826, 825]]]
This looks like it's order-dependent on an inner part of the array (we're using match_array
on the outside, which is good).
This was added in !36861 (merged).