Reduce the number of golang versions that are in use
Overview
As of right now, the GDK will try and install golang versions 1.18.9 1.19.7 1.19.6 1.19.2 1.19.9
as required by the various upstream projects:
# golang:
# 1.18.9:
# - .tool-versions-gdk
# - https://gitlab.com/gitlab-org/gitlab-shell -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITLAB_SHELL_VERSION
# - https://gitlab.com/gitlab-org/gitaly/-/raw/master/.tool-versions
# - https://gitlab.com/gitlab-org/gitaly -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITALY_SERVER_VERSION
# - https://gitlab.com/gitlab-org/gitlab-metrics-exporter -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITLAB_METRICS_EXPORTER_VERSION
# 1.19.7:
# - https://gitlab.com/gitlab-org/gitlab/-/raw/master/workhorse/.tool-versions
# - https://gitlab.com/gitlab-org/gitlab-pages/-/raw/master/.tool-versions
# - https://gitlab.com/gitlab-org/gitlab-pages -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITLAB_PAGES_VERSION
# - https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer/-/raw/main/.tool-versions
# - https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITLAB_ELASTICSEARCH_INDEXER_VERSION
# - https://gitlab.com/gitlab-org/gitlab-metrics-exporter/-/raw/main/.tool-versions
# 1.19.6:
# - https://gitlab.com/gitlab-org/gitlab-shell/-/raw/main/.tool-versions
# 1.19.2:
# - https://gitlab.com/gitlab-org/gitaly/-/raw/master/.tool-versions
# - https://gitlab.com/gitlab-org/gitaly -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITALY_SERVER_VERSION
# 1.19.9:
# - https://gitlab.com/gitlab-org/gitlab-runner/-/raw/main/.tool-versions
#
golang 1.18.9 1.19.7 1.19.6 1.19.2 1.19.9
This results in longer gdk install/update
cycles and creates larger Docker images that we use in CI.
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Proposal
Short term
- Bump go to 1.19.9 (gitlab-shell!730 - merged)
- Bump go to 1.19.9 (gitlab-pages!868 - merged)
- Bump go to 1.19.9 (gitlab-metrics-exporter!41 - merged)
- Bump go to 1.19.9 (gitlab-elasticsearch-indexer!207 - merged)
- Bump go to 1.19.9 (gitaly!5727 - merged)
- Bump go to 1.19.9 (gitlab!119723 - merged)
Long term
Update the various projects to use Renovate to create MRs to bump versions.
Related: gitlab#195763
Edited by Ash McKenzie