Time-dependent failure in ./ee/spec/models/analytics/devops_adoption/snapshot_spec.rb
Job #1390831491 failed for 53613d24:
1) Analytics::DevopsAdoption::Snapshot.latest_for_namespace_ids returns for previous month finalized snapshot for the given namespace ids based on snapshot end_time
Failure/Error: expect(latest_snapshots).to match_array([group1_latest_snapshot])
expected collection contained: [#<Analytics::DevopsAdoption::Snapshot id: 16, recorded_at: "2021-06-30 01:45:35.000000000 +0000", is... code_owners_used_count: nil, namespace_id: 2439, sast_enabled_count: nil, dast_enabled_count: nil>]
actual collection contained: []
the missing elements were: [#<Analytics::DevopsAdoption::Snapshot id: 16, recorded_at: "2021-06-30 01:45:35.000000000 +0000", is... code_owners_used_count: nil, namespace_id: 2439, sast_enabled_count: nil, dast_enabled_count: nil>]
# ./ee/spec/models/analytics/devops_adoption/snapshot_spec.rb:25:in `block (4 levels) in <top (required)>'
# ./ee/spec/models/analytics/devops_adoption/snapshot_spec.rb:14:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:387:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:378:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:374:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:374:in `block (2 levels) in <top (required)>'
Finished in 19 minutes 58 seconds (files took 1 minute 9.05 seconds to load)
2663 examples, 1 failure, 1 pending
Failed examples:
rspec ./ee/spec/models/analytics/devops_adoption/snapshot_spec.rb:13 # Analytics::DevopsAdoption::Snapshot.latest_for_namespace_ids returns for previous month finalized snapshot for the given namespace ids based on snapshot end_time
Edited by Heinrich Lee Yu