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

feat: Add label support to TotalNumberOfQueuedAndInProgressWorkflowRuns metric #1373

Merged
merged 1 commit into from
Apr 24, 2022

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented Apr 22, 2022

This is an implementation for my intepretation of the "bronze" case proposed in #1056

Ref #1056

@mumoshu mumoshu added this to the v0.23.0 milestone Apr 22, 2022
@mumoshu mumoshu force-pushed the add-label-support-for-workflow-runs-scale branch from f9f7a78 to ba4da3e Compare April 24, 2022 05:23
…ns metric

This is an implementation for my intepretation of the "bronze" case proposed in #1056

Ref #1056
@mumoshu mumoshu force-pushed the add-label-support-for-workflow-runs-scale branch from ba4da3e to 39bf1d6 Compare April 24, 2022 05:37
@mumoshu mumoshu merged commit a622968 into master Apr 24, 2022
@mumoshu mumoshu deleted the add-label-support-for-workflow-runs-scale branch April 24, 2022 05:41
mumoshu added a commit that referenced this pull request Apr 26, 2022
In #1373 we checked if all the runner labels are included in the job labels and only after that it marked the target as eligible for scale.
It should definitely be the opposite!
Otherwise, for example, jobs with `self-hosted` + `custom` labels wont result in scaling runner with `self-hosted` + `custom` + `custom2`.

Ref #1056
Ref #1373
mumoshu added a commit that referenced this pull request Apr 27, 2022
…tric

In #1373 we made two mistakes:

- We mistakenly checked if all the runner labels are included in the job labels and only after that it marked the target as eligible for scale. It should definitely be the opposite!
- We mistakenly checked for the existence of `self-hosted` labe l in the job. [Although it should be a good practice to explicitly say `runs-on: ["self-hosted", "custom-label"]`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-labels-for-runner-selection), that's not a requirement so we should code accordingly.

The consequence of those two mistakes was that, for example, jobs with `self-hosted` + `custom` labels didn't result in scaling runner with `self-hosted` + `custom` + `custom2`. This should fix that.

Ref #1056
Ref #1373
toast-gear pushed a commit that referenced this pull request Apr 27, 2022
…tric (#1390)

In #1373 we made two mistakes:

- We mistakenly checked if all the runner labels are included in the job labels and only after that it marked the target as eligible for scale. It should definitely be the opposite!
- We mistakenly checked for the existence of `self-hosted` labe l in the job. [Although it should be a good practice to explicitly say `runs-on: ["self-hosted", "custom-label"]`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-labels-for-runner-selection), that's not a requirement so we should code accordingly.

The consequence of those two mistakes was that, for example, jobs with `self-hosted` + `custom` labels didn't result in scaling runner with `self-hosted` + `custom` + `custom2`. This should fix that.

Ref #1056
Ref #1373
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