Skip to content

Cascade partition_id to Ci::Sources::Pipeline

Ref: #383073 (closed)

What does this MR do and why?

This MR allows multi-project pipelines to be persisted in different partitions as described in the blueprint.

It does 2 things:

  • Introduce source_partition_id and persists the partition_id from source_job
  • Propagates partition_id from Ci::Pipeline to Ci::Sources::Pipeline.

This needs to be wired up before redefining all FKs for ci_builds in order to partition this table.

MR acceptance checklist

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

Edited by Max Orefice

Merge request reports