Skip to content

Add logging in EnsureEnvironments

Pam Artiaga requested to merge 435516-log-environment-creation-errors into master

What does this MR do and why?

We have several reported cases in the GitLab.com pipeline where a review Environment doesn't seem to be created, resulting in an error in the review-deploy job, which requires an Environment record to exist in order for the CI_ENVIRONMENT_SLUG to have a value.

The existing logs seem to suggest that Environment was created during Pipeline creation, which is what was expected. However, when we look at the Environment record's created_at date, it is almost 1 day after the review-deploy job started.

This MR improves logging around EnsureEnvironments so we can get more visibility around what's happening during this part of the pipeline creation.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N/A

How to set up and validate locally

N/A

Related to #435516 (closed)

Edited by Pam Artiaga

Merge request reports

Loading