Skip to content

Add new functionality related to runner token expiration

What does this MR do?

This MR takes into account the new runner token expiration functionality in gitlab!71607 (closed), as well as the token reset functionality in gitlab!69561 (merged) and gitlab!74336 (merged). It adds a new reset-token subcommand, and automatically resets tokens as necessary in the run subcommand.

This depends on gitlab!71607 (closed) and gitlab!74336 (merged).

Why was this MR needed?

If runner tokens expire, the runner should reset them on a regular basis so that it continues working.

What's the best way to test this MR?

Set up a GitLab instance with expiring runner tokens, register a runner, test the reset-token subcommand, run the run subcommand, and watch the token regularly reset.

What are the relevant issue numbers?

gitlab#30942 (closed) gitlab#345427

blocked by?

!3406 (closed)

Edited by Nick Veenhof

Merge request reports