Skip to content

Allow organization or repository variable to dictate the Actions runner - #81087

Merged
desrosj merged 4 commits into
trunkfrom
add/support-for-org-runner-group
Aug 4, 2026
Merged

Allow organization or repository variable to dictate the Actions runner#81087
desrosj merged 4 commits into
trunkfrom
add/support-for-org-runner-group

Conversation

@desrosj

@desrosj desrosj commented Aug 3, 2026

Copy link
Copy Markdown
Member

What?

This updates the performance and E2E GitHub Actions workflows to be directed by an organization or repository variable to use a specific runner or configured group of runners, while still defaulting to the default.

When a maintainer sets RUNNER_GROUP to a runner label, the configured jobs will run on that runner instead without editing the workflow.

See also Core-65749.

Why?

This is useful for directing longer-running jobs to a dedicated runner during high-load contribution periods, such as Contributor Days or deadlines within a release window.

Use of AI Tools

None.

This updates the performance and E2E GitHub Actions workflows to be directed by an organization or repository variable to use a specific runner or configured group of runners, while still defaulting to the default.

When a maintainer sets `RUNNER_GROUP` to a runner label, the configured jobs will run on that runner instead without editing the workflow.

This is useful for directing longer-running jobs to a dedicated runner during high-load contribution periods, such as Contributor Days or deadlines within a release window.

See also https://core.trac.wordpress.org/ticket/65749.
@desrosj desrosj self-assigned this Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: lancewillett <lancewillett@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@lancewillett lancewillett changed the title Allow organzation or repository variable to dictate the Actions runner Allow organization or repository variable to dictate the Actions runner Aug 3, 2026

@lancewillett lancewillett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code is fine. No blockers.

Naming nit: Since this variable contains the runner label such as release-runner could you name it RUNNER_LABEL instead? RUNNER_GROUP could be confused with GitHub’s separate runner-group setting.

@desrosj

desrosj commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Naming nit: Since this variable contains the runner label such as release-runner could you name it RUNNER_LABEL instead? RUNNER_GROUP could be confused with GitHub’s separate runner-group setting.

Good point! I went with RUNNERS_NAME as that maps to the actual org/repository setting (Runners) and the input label (Name). Will update wordpress-develop momentarily as well.

@desrosj
desrosj enabled auto-merge (squash) August 4, 2026 01:57
@desrosj
desrosj merged commit a509e14 into trunk Aug 4, 2026
46 checks passed
@desrosj
desrosj deleted the add/support-for-org-runner-group branch August 4, 2026 02:32
@github-actions github-actions Bot added this to the Gutenberg 23.8 milestone Aug 4, 2026
@sirreal sirreal added the [Type] Build Tooling Issues or PRs related to build tooling label Aug 12, 2026
shail-mehta pushed a commit that referenced this pull request Aug 12, 2026
…er (#81087)

* Allow variable to dictate the Actions runner.

This updates the performance and E2E GitHub Actions workflows to be directed by an organization or repository variable to use a specific runner or configured group of runners, while still defaulting to the default.

When a maintainer sets `RUNNER_GROUP` to a runner label, the configured jobs will run on that runner instead without editing the workflow.

This is useful for directing longer-running jobs to a dedicated runner during high-load contribution periods, such as Contributor Days or deadlines within a release window.

See also https://core.trac.wordpress.org/ticket/65749.

* Rename variable.

* Change to `RUNNERS_NAME` to avoid confusion.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: lancewillett <lancewillett@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants