Skip to content

Add shared runner builds table to the database [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Grzegorz Bizon requested to merge feature/gb/shared-runner-builds-table into master

What does this MR do?

This merge request adds a new table used to track builds running on shared runners.

Once a new build gets picked by a shared runner, we insert a tracking entry to the ci_shared_runner_builds table. We remove the entry when a build transitions to a new state from running to any (using state machine).

See #329765 (closed) for more details.

Conformity

Migrations

== 20210601123341 AddRunningBuildsTable: migrating ============================
-- create_table(:ci_running_builds, {})
   -> 0.1501s
== 20210601123341 AddRunningBuildsTable: migrated (0.1502s) ===================

Issues

Resolves #329765 (closed)

Edited by Grzegorz Bizon

Merge request reports