Skip to content

Include runner_name in all relevant log lines

What does this MR do?

This adds runner_name to all log lines in addition to runner (which is the runner id based on the token).

It also fixes the Added job to processing list and Removed job from processing list log lines, where runner was previously name, it is now short token again.

Why was this MR needed?

This makes it much easier to map logs from runner managers with many runners to the specific one that ran a job. Instead of having to correlate it manually via runner id, we can get it from the logs directly.

This is important for cost analysis, because it lets us figure out the machine type used.

What's the best way to test this MR?

I tested it locally.

What are the relevant issue numbers?

Came up in the context of https://gitlab.com/gitlab-org/ci-cd/shared-runners/infrastructure/-/issues/324.

Edited by Igor

Merge request reports

Loading