Skip to content

Restore automated testing capabilities and GitHub Actions workflows in wp/X.Y branches #82780

Closed
23 of 23 issues completed

Description

@desrosj

Overall Goal

While only the most recent release of WordPress is officially supported, the project has a much wider support policy in regards to which releases are eligible to receive security updates. All versions >=4.7 in a security-only support state, receiving select security patches as a courtesy to users of WordPress.

The software itself ships from https://github.com/WordPress/wordpress-develop/ and github.com/WordPress/wordpress/, but the code maintained here in this repository is just as critical from WordPress >=5.0. The code in this repository that corresponds to each release of WordPress is organized using wp/X.Y branches.

Because the testing infrastructure in these branches has not been maintained, automated checks and test suites currently broken entirely, consistently fail, or don't run at all due to poorly scoped branch filters or event targeting.

It is imperative that these GitHub Actions workflows and the underlying testing infrastructure is restored to a working state so that should a security patch in these versions be necessary, they can be properly validated and confirmed before shipped to users.

This issue tracks the effort to bring CI back to a working, accurate state on every branch still eligible for security patches.

Scope

The scope for this ticket includes any changes necessary to restore the functionality of the relevant GitHub Actions workflows in each wp/X.Y branch while also ensuring that each automation only runs when necessary/

A second issue will be created as a Part 2 aimed at converting all GitHub Actions workflow files into calling workflows that reference reusable workflows maintained in trunk, which is the same pattern that https://github.com/WordPress/wordpress-develop/ has used for a few years now. This reduces the level of effort and maintenance burden to keep these workflows running in old branches significantly.

Tasks

The fixes fall into a handful of recurring categories, not all of which apply to every branch depending on its age and what it already supports:

  • Removing obsolete/trunk-only workflows (React Native runners, Storybook Pages deploy, changelog verification, plugin-repo publishing, issue automation) while keeping genuinely branch-relevant.
  • Bumping third-party GitHub Actions to current releases: Some actions are so outdated that workflows will not even start running because GitHub has force short-circuited them due to the presence of deprecated features.
  • Pin all actions to full-length SHAs: Referencing actions by SHA values is a hardening measure recommended in GitHub's secure usage documentation.
  • Pinning floating runner images (ubuntu-latest etc.) to fixed versions: the underlying image tagged as -latest changes over time and can inconsistently resolve to different images during a rollout.
  • Simplifying/removing Node and wp-env core version test matrices that no longer serve a purpose on a frozen branch.
  • Correcting PHP version test matrices to the versions each branch's own Requires PHP header actually supports: each branch should always test the earliest and newest minor version of PHP supported by a release.
  • Fixing wp-env's Docker builds against archived Debian Buster/Bullseye package repositories.
  • Removing CI jobs that silently track trunk's moving tooling (flaky-test issue reporting) rather than the frozen branch's own copy.
  • Correcting Composer's PHP-version platform override, which was masking real dependency resolution failures.
  • Widening workflow push/pull_request branch filters that were missing or too narrow to ever trigger on these branches.
  • Adding standard concurrency: blocks to cancel stale in-progress runs.
  • Guarding PHP 8.5–deprecated reflection calls in PHPUnit tests.
  • Various branch-specific stabilization fixes (flaky Playwright/e2e tests, browserslist warnings).
  • and likely more!

To track this effort, there will be one sub-issue per branch tracking any findings specific to that branch, and used as the issue reference for the individual PRs in the PR stack which brings the branch into a working state.

Note: AI has been used heavily to prepare this work. Any pull request that is in Draft state should be considered unreviewed and unverified by a human.

Contributors

Activity

  1. self-assigned this
    on Sep 11, 2026
  2. added
    [Type] Build Tooling
    on Sep 11, 2026
  3. added theissue type on Sep 11, 2026
  4. moved this from Backlog to In progress in WordPress Project Build Toolingon Sep 11, 2026
  5. 4 remaining items

  6. lancewillett commented on Sep 28, 2026

    @lancewillett
    Member

    Contributors

    Could you please add in @lucatume and @adimoldovan here? We'd love to help push this forward.

  7. moved this from In progress to In review in WordPress Project Build Toolingon Oct 29, 2026
  8. desrosj commented on Oct 29, 2026

    @desrosj
    MemberAuthor

    Thank you, everyone for helping with this effort! I am pleased to report that all stacks have been merged and all workflows/automated testing is now passing in each wp/x.y branch. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Type] Build Tooling

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions