Skip to content

WIP: Delay creating CI build's environment and deployment until actually needed

Krasimir Angelov requested to merge 27644-create-environments-when-needed into master

What does this MR do?

Currently we create environment and deployment right after CI build is created.

This way we create many records that are not needed yet (if ever), like for example for builds with manual start and dynamic environments. This MR adds this as a new prerequisite for builds so it will be done when the build is preparing. It also fixes few specs that assume and rely on the current behavior.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #27644 (moved)

Edited by Krasimir Angelov

Merge request reports