Skip to content

Allow "Runner version management" to be disabled

What does this MR do and why?

This merge request allows an instance admin to disable the instance from automatically keeping runners up to date with official runner release versions.

#377371 (comment 1294228003)

Screenshots or screen recordings

New setting in /admin/application_settings/ci_cd#js-runner-settings:

Screenshot_2023-03-16_at_12.09.55_PM

Different behaviour of /admin/runners:

/admin/runners with setting checked (default) /admin/runners with setting unchecked
image image

How to set up and validate locally

  1. Visit /admin/runners and note that Upgrade available and Upgrade recommended sections display.
  2. Visit /admin/application_settings/ci_cd#js-runner-settings and uncheck Automatically keep runners up to date with official runner release versions.
  3. Visit /admin/runners and note that the two sections now do not display.

GraphQL, run this query in your local /-/graphql-explorer:

query {
  runners {
    nodes {
      upgradeStatus
    }
  }
}

With the setting enabled you should get upgradeStatus values, and with it disabled, you should get null values.

MR acceptance checklist

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

Related to #377371 (closed)

Edited by Gina Doyle

Merge request reports