Skip to content

Configure logger for fleeting integration in autoscaler executor provider

What does this MR do?

Configures logger used by gitlab.com/gitlab-org/fleeting/taskscaler in autoscaler executor provider.

Why was this MR needed?

Taskscaler (and through it also the provisioner from gitlab.com/gitlab-org/fleeting/fleeting) are using a logger based on github.com/hashicorp/go-hclog. Any output generated by Taskscaler or Fleeting will become part of Runner process output.

This MR makes sure that hclog instance used by Taskscaler and Fleeting are configured in the same way as Runner's main logger. It also adds the runner and runner_name labels to the logs generated by scalers.

What's the best way to test this MR?

What are the relevant issue numbers?

Edited by Tomasz Maczukin

Merge request reports