Job log adds new lines (a carriage return) after moving gitlab-runner to kubernetes helm chart

Summary

When job dynamically append text line, the job log adds a new line each time. It appeared after we moved gitlab-runner to kubernetes executor (helm deploy on gke)

What is the current bug behavior?

Currently it adds new lines at each sequence

What is the expected correct behavior?

No new lines appear

Relevant logs and/or screenshots

How it was before moving gitlab-runner to kubernetes:

image

Running with gitlab-runner 13.3.1 (738bbe5a)
  on **-staging1-*** Ly93dBZh
section_start:1599656946:prepare_executor
Preparing the "docker+machine" executor
Using Docker executor with image eu.gcr.io/****:latest ...
Pulling docker image gitlab/gitlab-runner-helper:x86_64-738bbe5a ...
Using docker image sha256:db017d20d60cb6ba8eab810c598967322dc31ac5510638e208dfe1baaec4442f for gitlab/gitlab-runner-helper:x86_64-738bbe5a ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image sha256:66dc2d45749a48592f4348fb3d567bdd65c9dbd5402a413b6d169619e32f6bd2 for docker:dind ...
Waiting for services to be up and running...


How it works now:

image

Running with gitlab-runner 13.3.1 (738bbe5a)
  on gitlab-build-gitlab-runner-58594464fd-bstwd rBdrzY6Q
section_start:1602403446:prepare_executor
Preparing the "kubernetes" executor
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image ${DOCKER_REGISTRY_URL}/****:latest ...
Using attach strategy to execute scripts...
section_end:1602403446:prepare_executor
section_start:1602403446:prepare_script
Preparing environment

On github runners it displaying correctly also.

Edited by Maxim Vorontsov