in lib/release_tools/public_release/helm_gitlab_release.rb [285:323]
def update_last_upgrade_stop
return if ReleaseTools::Feature.disabled?(:maintain_upgrade_stops)
begin
stop = UpgradeStop.new.last_required_stop
chart_stop = required_stop_chart_version(stop)
logger.info('Last required stop for version detected', last_required_stop: stop)
logger.info('Last required stop for chart version calculated', last_required_stop: chart_stop)
action = change_upgrade_stop_action!(stop, chart_stop)
if action.nil?
logger.info('Nothing to be done to apply upgrade stop to GitLab Helm chart',
version: version.to_minor, last_required_stop: stop)
return
end
Retriable.with_context(:api) do
client.create_commit(
project_path,
project.default_branch,
"Update upgrade stop to #{stop}\n\n[ci skip]",
[action]
)
end
rescue StandardError => ex
error_msg = <<~ERROR
Something went wrong with the GitLab Helm chart upgrade stop.
Disable the 'maintain_upgrade_stops' feature flag, and retry the job.
Please notify Distribution about this error.
ERROR
logger.fatal(error_msg, error: ex)
raise
end
end