Skip to content

Migrate usage CiRunner.active to CiRunner.paused

What does this MR do and why?

Migrate usage CiRunner.active to CiRunner.paused

The "paused" field is preferred to "active" in the CiRunner GraphQL API since 14.8, this change updates our queries to use it.

See https://docs.gitlab.com/ee/api/graphql/reference/#cirunner

Screenshots or screen recordings

list view update
image image image

How to set up and validate locally

Our tests at: https://gitlab.com/gitlab-org/gitlab/blob/master/spec/support/shared_examples/features/runners_shared_examples.rb#L97 already confirm most of this functionality works.

For manual tests, we should confirm our paused status are not impacted:

  1. Admin -> Runners e.g. http://gdk.test:3000/admin/runners
    • Pausing a unpausing should work as expected
  2. Admin -> Runners -> Runner Details e.g. http://gdk.test:3000/admin/runners/458/
    • Pausing a unpausing should work as expected
  3. Admin -> Runners -> Runner Details > Edit

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 #411581 (closed)

Edited by Miguel Rincon

Merge request reports