spec/lib/gitlab/background_migration/migrate_pages_metadata_spec.rb:38 failed
Also https://gitlab.com/gitlab-org/gitlab/-/jobs/1551923377
Job #1552337501 failed for gitlab-foss@0356944a:
Failures:
1) Gitlab::BackgroundMigration::MigratePagesMetadata#perform creates relation and delegates to #perform_on_relation
Failure/Error: perform_on_relation(Project.where(id: start_id..stop_id))
#<Gitlab::BackgroundMigration::MigratePagesMetadata:0x00007fe661c3c590> received :perform_on_relation with unexpected arguments
expected: (#<ActiveRecord::Relation []>)
got: (#<ActiveRecord::Relation []>)
# ./lib/gitlab/background_migration/migrate_pages_metadata.rb:9:in `perform'
# ./spec/lib/gitlab/background_migration/migrate_pages_metadata_spec.rb:41:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:392:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:383:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:379:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:379:in `block (2 levels) in <top (required)>'
# ./spec/support/database_cleaner.rb:62:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:95:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:95:in `block (2 levels) in <top (required)>'
Finished in 21 minutes 52 seconds (files took 46.76 seconds to load)
79 examples, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/background_migration/migrate_pages_metadata_spec.rb:38 # Gitlab::BackgroundMigration::MigratePagesMetadata#perform creates relation and delegates to #perform_on_relation
Also seen in MR pipeline https://gitlab.com/gitlab-org/gitlab/-/jobs/1552421568
Edited by Thong Kuah