#66071 closed enhancement (fixed)
Build/Test Tools: Run the full PHPUnit matrix on pull requests using a label
| Reported by: | lancewillett | Owned by: | lancewillett |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description (last modified by )
Allow authors and reviewers to request the full PHPUnit matrix on wordpress-develop pull requests by adding a GitHub label, with results visible on the PR. The existing PHPUnit path filters still apply; documentation-only changes do not need the full matrix.
#65736 reduced the PHP versions tested on routine runs. #66069 proposes the same approach for database versions. Both retain full coverage in the weekly scheduled run.
Shared GitHub Actions results let authors and reviewers inspect full-matrix evidence for a particular PR before it lands, without reproducing the matrix locally.
Proposed behavior
Use a dedicated label, provisionally Full PHPUnit Matrix, in the existing PHPUnit workflow.
- Adding the label starts a full-matrix run for the PR's current revision without requiring another code push.
- Use the same PHP and database combinations, single site and multisite coverage, and additional configurations as the weekly run.
- Identify full-matrix runs in GitHub Actions, with checks and logs accessible from the PR.
- New commits use the full matrix while the label remains. Remove and reapply it to request another run for the current revision.
- Remove the label to return subsequent runs to the reduced matrix.
- Preserve existing path filters, fork approval requirements, and workflow permissions.
- Keep the weekly full run in place.
Contributor access
GitHub requires triage access to apply labels:
https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels#applying-a-label
Contributors who cannot apply labels can leave a PR comment asking a reviewer with triage access to add the label. Keep this request process manual for now, pending feedback.
This is a companion to #66069; implementing the label trigger is separate from trimming the database matrix.
Use of AI tools: Codex assisted with reviewing the workflow and drafting this ticket.
Change History (9)
This ticket was mentioned in PR #13448 on WordPress/wordpress-develop by @lancewillett.
2 months ago
#2
- Keywords has-patch has-unit-tests added
Adding the
Full PHPUnit Matrixlabel starts the weekly PHP and database matrix on an eligible PR without another code push. New commits keep using the full matrix while the label remains. Runs appear asPHPUnit Tests (full matrix)in GitHub Actions, with checks and logs on the PR.This extends the existing PHPUnit workflow and preserves its path filters, permissions, and fork approval requirements. Documentation-only changes remain excluded. Contributors without label access can ask a reviewer to apply it in a PR comment.
Unrelated label events skip tests and use a separate concurrency group so they cannot cancel active runs. Removing the label returns subsequent runs to the reduced matrix; removing and reapplying it requests another full run.
Depends on #13447 (https://core.trac.wordpress.org/ticket/66069). This branch includes that database trim; land #13447 first. The label change itself modifies only the existing workflow and PHPUnit README.
Validation: actionlint, zizmor, and
git diff --checkpassed. Matrix expansion confirmed 62 ordinary jobs and 182 full jobs, including Gutenberg preparation. Labeled and scheduled matrix rows match exactly. Reviewed event selection and concurrency for label addition, subsequent commits, and unrelated labels. Live GitHub Actions validation is pending.Use of AI tools: Codex (GPT-6 and GPT-5.6) assisted with implementation and review.