Flaky test: ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb # MigrateProjectsToSeparateIndex.migrate for batch run migrates all projects
Summary
Master-broken incident: gitlab-org/quality/engineering-productivity/master-broken-incidents#4817 (closed)
Job #5820241108 failed for 47202c36:
1) MigrateProjectsToSeparateIndex space_required_bytes
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
2) MigrateProjectsToSeparateIndex.migrate for batch run migrates all projects
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
3) MigrateProjectsToSeparateIndex.migrate for batch run when reindexing is still in progress does nothing
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
4) MigrateProjectsToSeparateIndex.migrate for failed run if exception is raised increases retry_attempt and clears task_id
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
5) MigrateProjectsToSeparateIndex.migrate for failed run if exception is raised fails the migration after too many attempts
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
6) MigrateProjectsToSeparateIndex.migrate for failed run when elasticsearch failures if total is not equal raises an error and clears task_id
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
7) MigrateProjectsToSeparateIndex.migrate for failed run when elasticsearch failures when reindexing fails raises an error and clears task_id
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
8) MigrateProjectsToSeparateIndex migration_options has migration options set
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
9) MigrateProjectsToSeparateIndex.completed? when counts are equal returns true
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
10) MigrateProjectsToSeparateIndex.completed? when counts are not equal returns true
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:117:in `block (2 levels) in <main>'
11) BackfillArchivedFieldInCommits migration_options has migration options set
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
12) BackfillArchivedFieldInCommits.migrate when no data needs to be updated does not execute update_by_query
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
13) BackfillArchivedFieldInCommits.migrate when no data needs to be updated when project is not found schedules ElasticDeleteProjectWorker
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
14) BackfillArchivedFieldInCommits.migrate when task is in progress when max projects are in progress does not kick off a new task and writes the same data back to the migration_state
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
15) BackfillArchivedFieldInCommits.migrate when task is in progress when more projects can be run kicks off a new task and adds a new project to the migration_state
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
16) BackfillArchivedFieldInCommits.migrate when task is in progress when the task is completed behaves like starts a new task calls updated_by_query and updates migration_state with new task_id
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
Shared Example Group: "starts a new task" called from ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:136
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
17) BackfillArchivedFieldInCommits.migrate when task is in progress when the task returns an error behaves like starts a new task calls updated_by_query and updates migration_state with new task_id
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
Shared Example Group: "starts a new task" called from ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:148
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
18) BackfillArchivedFieldInCommits.migrate when task is in progress when task is not found does not raise an error
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
19) BackfillArchivedFieldInCommits.migrate when task is in progress when task is not found behaves like starts a new task calls updated_by_query and updates migration_state with new task_id
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
Shared Example Group: "starts a new task" called from ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:158
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
20) BackfillArchivedFieldInCommits.migrate when update_by_query returns failures does not write a new task into the migration_state
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
21) BackfillArchivedFieldInCommits.completed? when commits are missing archived
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
22) BackfillArchivedFieldInCommits.completed? when no commits are missing archived
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
23) BackfillArchivedFieldInCommits integration test updates documents in batches
Failure/Error: raise "Index or alias under '#{alias_name}' already exists."
RuntimeError:
Index or alias under 'gitlab-test-projects' already exists.
# ./ee/lib/gitlab/elastic/helper.rb:402:in `create_index'
# ./ee/lib/gitlab/elastic/helper.rb:160:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:156:in `create_standalone_indices'
# ./ee/spec/support/elastic.rb:35:in `block in setup'
# ./ee/spec/support/elastic.rb:75:in `benchmark'
# ./ee/spec/support/elastic.rb:34:in `setup'
# ./ee/spec/support/elastic.rb:100:in `block (2 levels) in <main>'
Finished in 1 minute 34.08 seconds (files took 43.38 seconds to load)
23 examples, 23 failures
Failed examples:
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:229 # MigrateProjectsToSeparateIndex space_required_bytes
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:97 # MigrateProjectsToSeparateIndex.migrate for batch run migrates all projects
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:88 # MigrateProjectsToSeparateIndex.migrate for batch run when reindexing is still in progress does nothing
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:120 # MigrateProjectsToSeparateIndex.migrate for failed run if exception is raised increases retry_attempt and clears task_id
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:127 # MigrateProjectsToSeparateIndex.migrate for failed run if exception is raised fails the migration after too many attempts
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:157 # MigrateProjectsToSeparateIndex.migrate for failed run when elasticsearch failures if total is not equal raises an error and clears task_id
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:183 # MigrateProjectsToSeparateIndex.migrate for failed run when elasticsearch failures when reindexing fails raises an error and clears task_id
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:19 # MigrateProjectsToSeparateIndex migration_options has migration options set
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:208 # MigrateProjectsToSeparateIndex.completed? when counts are equal returns true
rspec ./ee/spec/elastic/migrate/20230530500000_migrate_projects_to_separate_index_spec.rb:216 # MigrateProjectsToSeparateIndex.completed? when counts are not equal returns true
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:23 # BackfillArchivedFieldInCommits migration_options has migration options set
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:39 # BackfillArchivedFieldInCommits.migrate when no data needs to be updated does not execute update_by_query
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:59 # BackfillArchivedFieldInCommits.migrate when no data needs to be updated when project is not found schedules ElasticDeleteProjectWorker
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:88 # BackfillArchivedFieldInCommits.migrate when task is in progress when max projects are in progress does not kick off a new task and writes the same data back to the migration_state
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:101 # BackfillArchivedFieldInCommits.migrate when task is in progress when more projects can be run kicks off a new task and adds a new project to the migration_state
rspec './ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb[1:2:2:3:1:1]' # BackfillArchivedFieldInCommits.migrate when task is in progress when the task is completed behaves like starts a new task calls updated_by_query and updates migration_state with new task_id
rspec './ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb[1:2:2:4:1:1]' # BackfillArchivedFieldInCommits.migrate when task is in progress when the task returns an error behaves like starts a new task calls updated_by_query and updates migration_state with new task_id
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:160 # BackfillArchivedFieldInCommits.migrate when task is in progress when task is not found does not raise an error
rspec './ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb[1:2:2:5:1:1]' # BackfillArchivedFieldInCommits.migrate when task is in progress when task is not found behaves like starts a new task calls updated_by_query and updates migration_state with new task_id
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:177 # BackfillArchivedFieldInCommits.migrate when update_by_query returns failures does not write a new task into the migration_state
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:201 # BackfillArchivedFieldInCommits.completed? when commits are missing archived
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:213 # BackfillArchivedFieldInCommits.completed? when no commits are missing archived
rspec ./ee/spec/elastic/migrate/20230724151612_backfill_archived_field_in_commits_spec.rb:226 # BackfillArchivedFieldInCommits integration test updates documents in batches
Randomized with seed 61722
Steps to reproduce
Please refer to Flaky tests documentation to learn more about how to reproduce them.
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.