Skip to content

Backfill ci_runner_machines_687967fa8a partitioned table

What does this MR do and why?

This MR backfills the ci_runner_machines_687967fa8a partitioned table from the ci_runners. It is very similar to the recent !166520 (merged) which did the same for the ci_runners table.

Changelog: added

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable the :allow_organization_creation FF:

    Feature.enable(:allow_organization_creation)
  2. Go to the shell in your GDK gitlab directory and run bundle exec rake "gitlab:seed:runner_fleet[root, rf-, 500, 100]". This will seed your GDK with some runners and jobs required for testing this MR.

  3. Let's run the migration:

    bundle exec rails db:migrate
  4. Check http://gdk.test:3000/admin/background_migrations?database=ci to follow the state of the batched migration.

    image

  5. Compare the number of runner managers in the source table, and the ones in the partitioned table:

    image

Edited by Pedro Pombeiro

Merge request reports

Loading