actions-runner-controller icon indicating copy to clipboard operation
actions-runner-controller copied to clipboard

Init container logs excessively during copy command

Open schniedergers opened this issue 7 months ago • 2 comments

Checks

  • [X] I've already read https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/troubleshooting-actions-runner-controller-errors and I'm sure my issue is not covered in the troubleshooting guide.
  • [X] I am using charts that are officially provided

Controller Version

0.9.2

Deployment Method

Helm

Checks

  • [X] This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • [X] I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

1. Create an image that is based on ghcr.io/actions/actions-runner:latest and add `node` to it
2. Use that image as runner image in oci://ghcr.io/actions/actions-runner-controller-charts
3. Observe the logs from the init container. As `node` adds a lot of files, the verbose copy creates thousands of log lines each time a runner starts.

Describe the bug

Not really a bug, but it clogs up the log management (and increases costs)

Describe the expected behavior

Expected is that not every copied file is logged during the init container run.

Additional Context

Removing the `-v` from https://github.com/actions/actions-runner-controller/blob/80d848339e5eeaa6b2cda3c4a5393dfcb4614794/charts/gha-runner-scale-set/templates/_helpers.tpl#L90 reduces the logs significantly.

Controller Logs

-

Runner Pod Logs

Jul 03 15:26:58.148
i-00521ce9880b56851
at-gha-base
'/home/runner/externals/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_sm2.h' -> '/home/runner/tmpDir/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_sm2.h'

Jul 03 15:26:58.148
i-00521ce9880b56851
at-gha-base
'/home/runner/externals/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_rsa.h' -> '/home/runner/tmpDir/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_rsa.h'

Jul 03 15:26:58.148
i-00521ce9880b56851
at-gha-base
'/home/runner/externals/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_ecx.h' -> '/home/runner/tmpDir/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_ecx.h'

Jul 03 15:26:58.148
i-00521ce9880b56851
at-gha-base
'/home/runner/externals/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_ec.h' -> '/home/runner/tmpDir/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_ec.h'

Jul 03 15:26:58.148
i-00521ce9880b56851
at-gha-base
'/home/runner/externals/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_dsa.h' -> '/home/runner/tmpDir/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_dsa.h'

Jul 03 15:26:58.148
i-00521ce9880b56851
at-gha-base
'/home/runner/externals/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_digests.h' -> '/home/runner/tmpDir/./node20/include/node/openssl/archs/linux-x86_64/no-asm/providers/common/include/prov/der_digests.h'

schniedergers avatar Jul 03 '24 22:07 schniedergers