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

fix(#951): add exception for self-hosted label in webhook search #953

Merged
merged 1 commit into from Dec 19, 2021
Merged

fix(#951): add exception for self-hosted label in webhook search #953

merged 1 commit into from Dec 19, 2021

Conversation

ghost
Copy link

@ghost ghost commented Nov 17, 2021

Fix issue #951

The webhook "workflowJob" pass the labels the job needs to the controller, who in turns search for them in its RunnerDeployment / RunnerSet. The current implementation ignore the search for self-hosted if this is the only label, however if multiple labels are found the self-hosted label must be declared explicitely or the RD / RS will not be selected for the autoscaling.

This PR fixes the behavior by ignoring this label, and add documentation on this webhook for the other labels that will still require an explicit declaration (OS and architecture).

The exception should be temporary, ideally the labels implicitely created (self-hosted, OS, architecture) should be searchable alongside the explicitly declared labels.

code tested, work with ["self-hosted"] and ["self-hosted","anotherLabel"]

The exception should be temporary, ideally the labels implicitely
created (self-hosted, OS, architecture) should be searchable.
@ghost ghost changed the title fix(#951): add exception for self-hosted label in webhook search WIP: fix(#951): add exception for self-hosted label in webhook search Nov 17, 2021
@ghost ghost marked this pull request as draft November 17, 2021 11:55
@ghost ghost changed the title WIP: fix(#951): add exception for self-hosted label in webhook search fix(#951): add exception for self-hosted label in webhook search Nov 17, 2021
@ghost ghost marked this pull request as ready for review November 17, 2021 12:32
@stale
Copy link

stale bot commented Dec 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It took a bit more time until I figure out how this aligns with all the other aspects of the system. After rereading your comments and lastly @fgalind1's suggestion and summary, I'm finally confident with this change.

LGTM. Thank you so much for your patience and contribution!

@mumoshu mumoshu merged commit 0c34196 into actions:master Dec 19, 2021
mumoshu pushed a commit that referenced this pull request Dec 21, 2021
Duplicate condition caused after merge of #953 and #1012
KENNYSOFT added a commit to KENNYSOFT/actions-runner-controller that referenced this pull request Jan 6, 2022
KENNYSOFT added a commit to KENNYSOFT/actions-runner-controller that referenced this pull request Jan 6, 2022
mumoshu pushed a commit that referenced this pull request Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant