Skip to content

Build/Test Tools: Extend the PHPUnit runner variable to the v1 and v2 workflows - #12847

Open
lancewillett wants to merge 1 commit into
WordPress:trunkfrom
lancewillett:fix/runner-variable-v1-v2
Open

Build/Test Tools: Extend the PHPUnit runner variable to the v1 and v2 workflows#12847
lancewillett wants to merge 1 commit into
WordPress:trunkfrom
lancewillett:fix/runner-variable-v1-v2

Conversation

@lancewillett

Copy link
Copy Markdown
Contributor

Extends r62891 to the two older reusable PHPUnit workflows.

That change added the runs-on override to reusable-phpunit-tests-v3.yml alone, so only branches calling that workflow can be redirected.

Branches 4.7 through 5.1 call reusable-phpunit-tests-v1.yml, and branches 5.2 through 5.8 call reusable-phpunit-tests-v2.yml, both at @trunk. Neither reads the variable, so setting RUNNERS_NAME at the repository or organization level has no effect on those twelve branches.

This applies the same one-line change to both files. With the variable unset, jobs run on inputs.os exactly as before, so there is no change by default.

Each of the three reusable PHPUnit workflows contains exactly one runs-on, so no other line in these files needs the same treatment.

Trac ticket: https://core.trac.wordpress.org/ticket/65749

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Identifying the gap by comparing which branches call which reusable workflow, drafting the two-line change, and drafting this description. Reviewed and verified by me before opening.

… workflows.

[62891] added the `runs-on` override to `reusable-phpunit-tests-v3.yml` alone,
so only branches calling that workflow can be redirected.

Branches 4.7 through 5.1 call `reusable-phpunit-tests-v1.yml` and branches 5.2
through 5.8 call `reusable-phpunit-tests-v2.yml`, both at `@trunk`. Neither
workflow reads the variable, so a repository or organization variable has no
effect on those twelve branches.

This applies the same one-line change to both. With `RUNNERS_NAME` unset, jobs
run on `inputs.os` exactly as before, so there is no change by default.

Fixes #65749.
@github-actions

github-actions Bot commented Aug 4, 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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props lancewillett.

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

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.

1 participant