Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple label support for gha-runner-scale-set #2445

Closed
tiithansen opened this issue Mar 25, 2023 · 7 comments
Closed

Multiple label support for gha-runner-scale-set #2445

tiithansen opened this issue Mar 25, 2023 · 7 comments
Labels
enhancement New feature or request needs triage Requires review from the maintainers

Comments

@tiithansen
Copy link

What would you like added?

Currently it is possible to set only one label gha-runner-scale-set through runnerScaleSetName. It would be nice it there would be runnerSetLabels which would take in array of labels.

Example:

runnerSetName: 'generic'
runnerSetLabels:
- self-hosted
- arm64

Why is this needed?

In previous versions of ARC it was possible to set multiple labels and self-hosted was sort of default label. Having this feature would enable easier switch from ARC to gha-runner-scale-set because it wouldn't be necessary to modify runs-on: [...] in workflows which already have these labels in place.

Additional context

It seems to possible to pass in multiple labels for the runnerScaleSet code.

@tiithansen tiithansen added enhancement New feature or request needs triage Requires review from the maintainers labels Mar 25, 2023
@github-actions
Copy link
Contributor

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

@jrhemstad
Copy link

Agreed, this is important for our use case.

For example, I only have enough Windows test machines to do nightly windows testing. However, during the day, those machines may sit idle and could be repurposed as build machines to improve build job throughput.

Ideally, I could label both my windows build runners with both "windows" and "windows-build" labels, and my test runners as "windows" and "windows-test".

Then I could just specify runs-on: windows for my build jobs.

@dm3ch
Copy link
Contributor

dm3ch commented Aug 24, 2023

@Link- Could you please point me where I can find information on why it has been decided not to allow support of labels for runnersets?

And is there any chance that it will be added in the future?

Labels are not supported and will not be supported for runner scale sets. Please read the docs:

https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/about-actions-runner-controller#using-arc-runners-in-a-workflow

@shakefu
Copy link

shakefu commented Aug 24, 2023

We also have this use case where we have existing runners labeled [self-hosted, general-ubuntu] and we want the scale sets to be able to pick up load from our EC2-based runners using those labels. But since the scale sets are restricted to the single (unique) name as their label, it seems they cannot share load.

From my limited understanding of the code, this seems to be due to the design choice to use k8s labels/annotations on the CRDs as a way to pass the name (label) information to the controller.

It seems like it would be possible to extend the AutoscalingListenerSpec to include a runnerLabels []string field which could then be added into the controller reconciliation?

@nethershaw
Copy link

This is absolutely a regression, not an enhancement request. I last deployed ARC for my entire organization at legacy chart version 0.22.0. My entire organization has been using runner labels in a way that absolutely demands multiple labels. I will not force every developer in my organization to rewrite every workflow in my organization to accommodate this artificial limitation.

It's almost as though you don't want me to upgrade from the legacy charts.

@Link-
Copy link
Member

Link- commented Oct 18, 2023

I'm closing this issue as it's a duplicate of this discussion: #2921 (comment)

@emmahsax
Copy link

I just want to add my opinion that this is a huge 👎🏼. It makes it super painful to switch to the new version of runners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage Requires review from the maintainers
Projects
None yet
Development

No branches or pull requests

7 participants