Skip to content

Implement service to check for Runner upgrades

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR builds on !83549 (merged) to provide the Gitlab::Ci::RunnerUpgradeCheck#check_runner_upgrade_status API. This API takes a CI runner version and returns a symbol informing whether the runner needs to be upgraded or not.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

In the GDK console:

> Gitlab::Ci::RunnerUpgradeCheck.instance.check_runner_upgrade_status('14.9.0')
=> :recommended
> Gitlab::Ci::RunnerUpgradeCheck.instance.check_runner_upgrade_status('14.9.1')
=> :not_available

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Part of #356689 (closed)

Merge request reports