Skip to content

Find last deployment based on release/metadata info

Mayra Cabrera requested to merge build-pages-release-class into master

What does this MR do and why?

As part of gitlab-com/gl-infra/delivery#2607 (closed), we're interested in fetching the commit running on production based on the information from the release/metadata project. This commit expands the 'last_production_commit' method on the Release module to:

  • Retrieve the commit in production using the release/metadata information.
  • Compare both commits (the one from deployment trackers and the one from release/metadata) and log the information.
  • For testing purposes, the commit from deployment trackers is always returned. This will change after this integration is thoroughly tested.

Changes are under a feature flag. Barebones for GitLab page release class are also added, this class is intentionally empty as there is still some logic to be defined.

Author Check-list

  • [-] Has documentation been updated?
Edited by Mayra Cabrera

Merge request reports