Add upgrade status filter to admin runners
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
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
- Have at least one runner that needs an upgrade registered (a couple of versions behind)
- If you use
brew
to installgitlab-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
- If you use
- Run
rails c
andCi::Runners::ReconcileExistingRunnerVersionsService.new.execute
(this runs every hour, but we can trigger it early).
Finding the outdated runner:
- Have a GitLab Ultimate license
- Go to the runner details in Admin -> Runners
- Select the search bar to filter results and select "Upgrade Status"
- Select
Available
orRecommended
, 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Miguel Rincon