Skip to content

Add upgrade status filter to admin runners

Miguel Rincon requested to merge 365078-add-upgrade-status-filter into master

What does this MR do and why?

Depends on !91682 (merged) and !91554 (merged), fixes #356591 (closed)

This change adds a new search filter so users can filter their runners by their upgrade status.

Screenshots or screen recordings

image

How to set up and validate locally

This feature is a bit complicated to setup but you can skip some steps depending on what you want to review:

Creating an outdated runner and recalculating it's outdated:

You can skip these first instructions if you simply want to see the user flow, but you may see no results

  1. Have at least one runner that needs an upgrade registered (a couple of versions behind)
    • If you use brew to install gitlab-runner, you can use these commands to swap versions, after that run your runner:
    • In my system, I run my old version like this: /usr/local/opt/gitlab-runner@14.10.0/bin/gitlab-runner@14.10.0 run
  2. Run rails c and Ci::Runners::ReconcileExistingRunnerVersionsService.new.execute (this runs every hour, but we can trigger it early).

Finding the outdated runner:

  1. Have a GitLab Ultimate license
  2. Go to the runner details in Admin -> Runners
  3. Select the search bar to filter results and select "Upgrade Status"
  4. Select Available or Recommended, your outdated runner should be there

MR acceptance checklist

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

Edited by Miguel Rincon

Merge request reports

Loading