Skip to content

Paginate shared runners in CI/CD settings

What does this MR do and why?

This change prevents large shared runner datasets from impacting performance in the CI/CD settings page by enabling paginating them.

Users will be able to locate shared runners in the list via pagination.

Changelog: changed

Screenshots or screen recordings

Note the pagination below the list:

How to set up and validate locally

Prepare your environment

We need over 20 shared runners to check the pagination:

  1. Go to admin -> runners

  2. Check if you have shared runners defined, if not create at least 20.

Use these command to create them
  1. Install gitlab-runner with
$ brew install gitlab-runner
  1. Get the shared runner registration token from the UI:

image

  1. Replace $RUNNER_TOKEN with your token in the command below, and repeat the command as needed:
$ gitlab-runner register --url http://gdk.test:3000/ --registration-token $RUNNER_TOKEN --executor shell --description instance-runner-$(gdate "+%s-%3N") -n

Ensure the runners are created by refreshing the page.

Check the pagination in the project page

  1. In one of your projects, visit

  2. Visit Settings -> CI/CD

  3. Open Runners

  4. Verify the pagination to see multiple lists of Shared Runners works.

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

Edited by Miguel Rincon

Merge request reports