Skip to content

Allow production checks to be ignored when promoting to gstg/gprd

Reuben Pereira requested to merge rp/promote-ignore-prod-checks into master

What does this MR do?

If production checks are failing, but the RM decides to promote anyway, a variable called OVERRIDE_PRODUCTION_CHECKS_REASON can be set in the promote manual job to allow production checks to be ignored. The value of OVERRIDE_PRODUCTION_CHECKS_REASON should be the reason why checks are being ignored.

The variable will be added to deploy_vars.env as IGNORE_PRODUCTION_CHECKS (since that's what Promotion::Manager expects) so that the job that posts a note to the monthly release issue (production:checks) can modify the note to say that production checks were ignored.

We can't name OVERRIDE_PRODUCTION_CHECKS_REASON the same as the variable that is written to deploy_vars.env (IGNORE_PRODUCTION_CHECKS) due to a product bug (gitlab#288064). The bug causes artifact upload to fail if the variable being written to the dotenv artifact already exists. You can see an example of such a failure here: https://gitlab.com/rpereira2/release-tools-fake/-/jobs/2336328377.

gitlab-com/gl-infra/delivery#2298 (closed)

Author Check-list

  • Has documentation been updated?
Edited by Reuben Pereira

Merge request reports

Loading