Add CommitStatus#ci_stage validation
Problem
The current work in #364377 will soon deprecate ci_builds.stage
column.
@mbobin brought up to add validation of ci_stage
record when a build is being created.
This might be a good idea which is not possible at the moment as we don't create a stage for .pages deployments and external statuses
We do create a stage now
-
GenericCommitStatus
, which is used inUpdatePagesService
is already enforcing a stage, and it will always place the generic commit status at the end via theEXTERNAL_STAGE_IDX
, which is set to1_000_000
.
Solution
-
Add validation to CommitStatus
Edited by Laura Montemayor