[wp-trac] [WordPress Trac] #63752: Limit the number of GitHub Actions jobs that spawn for pull requests to forks
WordPress Trac
noreply at wordpress.org
Fri Aug 1 12:42:34 UTC 2025
#63752: Limit the number of GitHub Actions jobs that spawn for pull requests to
forks
------------------------------+----------------------
Reporter: desrosj | Owner: desrosj
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+----------------------
Changes (by desrosj):
* owner: (none) => desrosj
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60534" 60534]:
{{{
#!CommitTicketReference repository="" revision="60534"
Build/Test Tools: Spawn fewer jobs in GitHub Actions on forks.
The GitHub Actions workflows currently limit when jobs run for forks by
short-circuiting any that are triggered by `push` events when not running
within the `wordpress-develop` repository.
Because the large majority of forks are not created under organizations,
they will be subject to the individual account limit of 20 concurrent jobs
(40 for pro accounts) at any given time instead of the 500 concurrent job
limit that applies to the WordPress organization. This means that a single
pull request back to a fork can take several hours to complete the
workflow jobs that are spawned.
This revises the conditional statements to further limit the number of
jobs that spawn within a fork while still allowing the full test matrices
for forks within the `WordPress` organization and pull requests back to
`wordpress-develop`.
These adjustments result in a maximum of 53 jobs when all workflows
configured to run within forks are triggered. Of these, ~66% will run in
less than 3 minutes, and ~55% will run in less than 1 minute.
Props jorbin, johnbillion.
Fixes #63752.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63752#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list