Skip to content

Make use of Pcov within Docker containers#9

Closed
desrosj wants to merge 7 commits into
johnbillion:pcovfrom
desrosj:use-pcov-within-docker-container
Closed

Make use of Pcov within Docker containers#9
desrosj wants to merge 7 commits into
johnbillion:pcovfrom
desrosj:use-pcov-within-docker-container

Conversation

@desrosj
Copy link
Copy Markdown

@desrosj desrosj commented May 22, 2026

This changes WordPress#11618 to make use of the changes in WordPress/wpdev-docker-images#210.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

SergeyBiryukov and others added 7 commits May 21, 2026 23:20
…Abilities API tests.

These are redundant: `WP_UnitTestCase_Base::tear_down()` runs `::_restore_hooks()`, which restores `$wp_filter`/`$wp_actions` to a pre-test baseline, so hooks added during a test are removed automatically.

Follow-up to [61032].

Props mohamedahamed, gziolo, westonruter, SergeyBiryukov.
Fixes #65301.

git-svn-id: https://develop.svn.wordpress.org/trunk@62405 602fd350-edb4-49c9-b593-d223f7449a82
Recent attempts to change the `BASE_TAG` version in the Performance Testing workflows  in [60324] and [62402] have failed due to memory exhaustion errors when trying to download the version using WP-CLI in the local Docker environment.

While the. performance tests are run within the Docker environment, there’s no hard requirement for the `wp core download` command to happen through the `wordpressdevelop/cli` conatiner. This adjusts the workflow to perform the failing WP-CLI call within the GitHub Action runner and outside of Docker to avoid the memory exhaustion issue.

Props westonruter, swissspidy.
Fixes #65289.

git-svn-id: https://develop.svn.wordpress.org/trunk@62406 602fd350-edb4-49c9-b593-d223f7449a82
This adds `9.7` (released on April 21, 2026) to the relevant testing strategies and makes it the default version in the local Docker environment.

MySQL 9.7 is also an LTS release.

Props chrisdavidmiles.
See #64894.

git-svn-id: https://develop.svn.wordpress.org/trunk@62407 602fd350-edb4-49c9-b593-d223f7449a82
…of `spl_object_hash()` to construct unique IDs.

* Also use `spl_object_id()` similarly when registering and unregistering classic widgets.
* Improve typing and phpdoc in `_wp_filter_build_unique_id()`. Return `null` for malformed callbacks.
* Add tests for `_wp_filter_build_unique_id()`.
* Improve type safety of `WP_Hook::add_filter()` in case an invalid callback is provided for parity with `::has_filter()` and `::remove_filter()`.

Developed in WordPress#11865
Follow-up to r46220, r46801, r60179.

Props bor0, westonruter, SergeyBiryukov, schlessera, arshidkv12, knutsp, spacedmonkey, swissspidy.
See #64898.
Fixes #58291.


git-svn-id: https://develop.svn.wordpress.org/trunk@62408 602fd350-edb4-49c9-b593-d223f7449a82
PCOV is a dedicated coverage reporting tool that performs significantly faster than Xdebug in coverage mode. This reduces the time that tests with coverage enabled take to run by around 50%.

This also removes the HTML report generation which was producing unusable artifacts in excess of 7 GB in size.

Props johnbillion, desrosj, swissspidy

See #64893


git-svn-id: https://develop.svn.wordpress.org/trunk@62409 602fd350-edb4-49c9-b593-d223f7449a82
@desrosj desrosj force-pushed the use-pcov-within-docker-container branch from 23cc3ba to 454ef97 Compare May 22, 2026 13:42
@desrosj
Copy link
Copy Markdown
Author

desrosj commented May 22, 2026

Closing in favor of WordPress#11949.

@desrosj desrosj closed this May 22, 2026
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.

4 participants