Flaky test: ee/spec/services/security/dependency_list_service_spec.rb (Security::DependencyListService#execute with params sorted ...)
Job #1343120470 failed for 026957b9:
Failures:
1) Security::DependencyListService#execute with params sorted by asc severity when the sort_dependency_vulnerabilities feature flag is false returns array of data sorted by package severity level in descending order
Failure/Error:
expect(dependencies).to eq([{ name: "saml2-js", vulnerabilities: %w(unknown medium critical) },
{ name: "nokogiri", vulnerabilities: ["high"] }])
expected: [{:name=>"saml2-js", :vulnerabilities=>["unknown", "medium", "critical"]}, {:name=>"nokogiri", :vulnerabilities=>["high"]}]
got: [{:name=>"nokogiri", :vulnerabilities=>["high"]}, {:name=>"saml2-js", :vulnerabilities=>["critical", "unknown", "medium"]}]
(compared using ==)
Diff:
@@ -1,3 +1,3 @@
-[{:name=>"saml2-js", :vulnerabilities=>["unknown", "medium", "critical"]},
- {:name=>"nokogiri", :vulnerabilities=>["high"]}]
+[{:name=>"nokogiri", :vulnerabilities=>["high"]},
+ {:name=>"saml2-js", :vulnerabilities=>["critical", "unknown", "medium"]}]
# ./ee/spec/services/security/dependency_list_service_spec.rb:151:in `block (6 levels) in <top (required)>'
# ./spec/spec_helper.rb:372:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:363:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:359:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:359:in `block (2 levels) in <top (required)>'
2) Security::DependencyListService#execute with params sorted by asc severity when the sort_dependency_vulnerabilities feature flag is false returns array of data with package vulnerabilities sorted in ascending order
Failure/Error: expect(saml2js_severities).to eq(%w(unknown medium critical))
expected: ["unknown", "medium", "critical"]
got: ["critical", "unknown", "medium"]
(compared using ==)
# ./ee/spec/services/security/dependency_list_service_spec.rb:159:in `block (6 levels) in <top (required)>'
# ./spec/spec_helper.rb:372:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:363:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:359:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:359:in `block (2 levels) in <top (required)>'
Finished in 29 minutes 15 seconds (files took 43.07 seconds to load)
2995 examples, 2 failures, 7 pending
Failed examples:
rspec ./ee/spec/services/security/dependency_list_service_spec.rb:141 # Security::DependencyListService#execute with params sorted by asc severity when the sort_dependency_vulnerabilities feature flag is false returns array of data sorted by package severity level in descending order
rspec ./ee/spec/services/security/dependency_list_service_spec.rb:155 # Security::DependencyListService#execute with params sorted by asc severity when the sort_dependency_vulnerabilities feature flag is false returns array of data with package vulnerabilities sorted in ascending order
Edited by Luke Duncalfe