Skip to content

Build/Test Tools: Run PHPUnit timing reports on PHP 8.6. - #16317

Open
lancewillett wants to merge 1 commit into
WordPress:trunkfrom
lancewillett:fix/phpunit-reporting-php86
Open

lancewillett wants to merge 1 commit into
WordPress:trunkfrom
lancewillett:fix/phpunit-reporting-php86

Conversation

@lancewillett

Copy link
Copy Markdown
Member

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

After https://core.trac.wordpress.org/changeset/65384, the routine PHPUnit matrix runs PHP 8.6 and omits PHP 8.5. The slow-test annotations and CodeVitals steps still require PHP 8.5. A trunk run can therefore succeed without reporting any PHPUnit timings.

Select the existing PHP 8.6 single-site MySQL 8.4 reporting job for both steps. Pull requests can flag slow tests again, and trunk pushes can publish the six timing metrics. This adds no matrix jobs. The historical samples used PHP 8.5, which matters when comparing the trend across this change.

Verification

  • Before the matrix change, the reporting job completed both steps.
  • On current trunk, the PHP 8.6 reporting job skipped both steps. The old selector matched zero jobs in that push. The new selector matches one.
  • actionlint passed. The unchanged reporting script flagged four slow redirect tests and produced all six metric values from a local full-suite JUnit report. Actual delivery to CodeVitals can be checked on the first trunk push after landing.

AI assistance: Codex helped compare the runs, prepare the change, and validate the workflow.

The routine matrix stopped scheduling PHP 8.5 when Core declared support for PHP 8.6. Select the existing PHP 8.6 reporting job so pull requests show slow tests and trunk pushes publish PHPUnit metrics again.
@github-actions

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.

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.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the update aligning PHPUnit timing-reporting selectors with PHP 8.6.

No open issues 🎉

What changed in this PR

Aligns PHPUnit timing reporting with the routine PHP 8.6 matrix, replacing selectors that no longer match an eligible job.

Changes:

  • Selects PHP 8.6 for advisory slow-test annotations on pull requests and trunk pushes.
  • Selects the same reporting job for publishing six timing metrics to CodeVitals, without adding matrix jobs.
File Description
.github/​workflows/​reusable-phpunit-tests-v3.yml Updates both reporting selectors from PHP 8.5 to PHP 8.6.

Review effort: Balanced

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

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants