Skip to content

Enable pending builds table parity by default [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Grzegorz Bizon requested to merge feature/gb/use-pending-builds-table into master

What does this MR do?

This merge request adds support for using the newly introduced pending builds accelerated table. We are going to select pending builds from this queue and join ci_builds to make it possible to avoid traversing billions of builds stored in ci_builds table on large instances, like gitlab.com.

This merge request will:

  1. Migrate pending builds to ci_pending_builds table in a post deployment migration
  2. Enable mechanisms used to maintain transactional parity between pending builds from ci_builds and ci_pending_builds
  3. Introduce mechanisms to select pending builds from ci_pending_builds instead of ci_builds
  4. Introduce mechanisms that will JOIN with ci_builds to read information that is still required, but not moved to ci_pending_builds yet
  5. Hide these changes behind a feature flag that we will rollout when working on its rollout issue.

Conformity

Issues

Resolves #331417 (closed)

Edited by Grzegorz Bizon

Merge request reports