Skip to content

Create ci_running_builds records during "gitlab:seed:runner_fleet"

What does this MR do and why?

This MR changes the "gitlab:seed:runner_fleet" rake task so that it creates Ci::RunningBuild models in the same situation that they would be created in production code, so that it more closely mimics a real database. I haven't added tests because the rake task is not guaranteed to generate builds that are in the running state.

How to set up and validate locally

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

  1. Go to the shell in your GDK gitlab directory and run bundle exec rake "gitlab:seed:runner_fleet". This will seed your GDK with some runners and jobs

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports