From 73f53b6c5b762686a30c74a95b9d70ebbb033cb1 Mon Sep 17 00:00:00 2001 From: Marius Bobin <mbobin@gitlab.com> Date: Wed, 12 Mar 2025 17:41:28 +0200 Subject: [PATCH] Reorder runners backfill migrations It ensures that the runners are copied to the new table before we copy the taggings. Changelog: fixed --- .../backfill_ci_runners_partitioned_table.yml | 2 +- db/docs/batched_background_migrations/copy_runner_taggings.yml | 2 +- ...1219100359_requeue_backfill_ci_runners_partitioned_table.rb} | 0 ...taggings.rb => 20250103092422_queue_copy_runner_taggings.rb} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename db/post_migrate/{20250103092422_requeue_backfill_ci_runners_partitioned_table.rb => 20241219100359_requeue_backfill_ci_runners_partitioned_table.rb} (100%) rename db/post_migrate/{20241219100359_queue_copy_runner_taggings.rb => 20250103092422_queue_copy_runner_taggings.rb} (100%) diff --git a/db/docs/batched_background_migrations/backfill_ci_runners_partitioned_table.yml b/db/docs/batched_background_migrations/backfill_ci_runners_partitioned_table.yml index 6a0ba603c579..969d69225587 100644 --- a/db/docs/batched_background_migrations/backfill_ci_runners_partitioned_table.yml +++ b/db/docs/batched_background_migrations/backfill_ci_runners_partitioned_table.yml @@ -4,5 +4,5 @@ description: This migration copies runners from ci_runners to the new partitione feature_category: runner introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/166520 milestone: '17.8' -queued_migration_version: 20250103092422 +queued_migration_version: 20241219100359 finalized_by: 20250113151324 diff --git a/db/docs/batched_background_migrations/copy_runner_taggings.yml b/db/docs/batched_background_migrations/copy_runner_taggings.yml index 63406a86acac..4efc879c59ab 100644 --- a/db/docs/batched_background_migrations/copy_runner_taggings.yml +++ b/db/docs/batched_background_migrations/copy_runner_taggings.yml @@ -4,5 +4,5 @@ description: Copy taggings data for the ci_runners table into the new sharded ci feature_category: runner introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/175578 milestone: '17.8' -queued_migration_version: 20241219100359 +queued_migration_version: 20250103092422 finalized_by: 20250114135714 diff --git a/db/post_migrate/20250103092422_requeue_backfill_ci_runners_partitioned_table.rb b/db/post_migrate/20241219100359_requeue_backfill_ci_runners_partitioned_table.rb similarity index 100% rename from db/post_migrate/20250103092422_requeue_backfill_ci_runners_partitioned_table.rb rename to db/post_migrate/20241219100359_requeue_backfill_ci_runners_partitioned_table.rb diff --git a/db/post_migrate/20241219100359_queue_copy_runner_taggings.rb b/db/post_migrate/20250103092422_queue_copy_runner_taggings.rb similarity index 100% rename from db/post_migrate/20241219100359_queue_copy_runner_taggings.rb rename to db/post_migrate/20250103092422_queue_copy_runner_taggings.rb -- GitLab