Skip to content

Update pages version file during gitlab release

Steve Abrams requested to merge delivery2580-gitlab-version-file-pages into master

What does this MR do and why?

We are moving gitlab-pages to managed versioning. gitlab-com/gl-infra/delivery#2580 (closed) covers some of the last tasks needed in release-tools to finish this transition. When gitlab-org/gitlab is released, we update all of the version files of components that are under managed versioning. This means updating the GITLAB_PAGES_VERSION file.

This MR adds the automated updating of that file to the Gitlab release process. This update is behind a feature flag :pages_managed_versioning so it can be enabled at the same time as other changes implemented in gitlab-com/gl-infra/delivery#2580 (closed).

We also add an additional feature flag, :fetch_managed_component_version, around an unnecessary API call to fetch the contents of the VERSION files for managed components. A warning will be logged if the fetched version does not match the version of GitLab being released. gitlab-com/gl-infra/delivery#2735 has been opened as a followup to remove that feature flag.

This is related to !2085 (merged) and !2087 (merged).

Author Check-list

  • [-] Has documentation been updated?
Edited by Steve Abrams

Merge request reports