You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RUNNER_LABELS contains trailing ',' if runner_extra_labels is not set #1961
If you not set any extra labels with runner_extra_labels, because the default ones "self-hosted,${var.runner_os},${var.runner_architecture} would be good enough, you cannot use runner_enable_workflow_job_labels_check as this prevent scaling of any runners:
Received workflow job event with labels: '["self-hosted","linux","arm64"]'. The event does NOT match the runner labels: 'self-hosted,linux,x64,'
Maybe runner_labels could be a added as variable of the main module with "self-hosted,${var.runner_os},${var.runner_architecture} as default value. So it can be overridden completely of needed. Then runner_extra_labels is not needed anymore.
We need runner_extra_labels as we have multiple runner types based on Linux OS. We use custom labels to assign the workflow job to one particular runner type.
The labels self-hosted,OS,ARCH are automatically added by the agent when registering the runner to GH.
I think you are correct in that this is related to #1714 and the label matching logic needs some work and this particular use case needs to be added into the tests.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
shashidhar087 commentedon Apr 25, 2022
We need
runner_extra_labelsas we have multiple runner types based on Linux OS. We use custom labels to assign the workflow job to one particular runner type.ScottGuymer commentedon May 8, 2022
The labels
self-hosted,OS,ARCHare automatically added by the agent when registering the runner to GH.I think you are correct in that this is related to #1714 and the label matching logic needs some work and this particular use case needs to be added into the tests.
github-actions commentedon Jun 8, 2022
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
jonohill commentedon Jun 21, 2022
This is still an issue. If runner_extra_labels is empty then it should not be appended to the list of labels.