Skip to content

Repair wp/5.8 branch Actions: Install Xdebug 3.1.6 in wp-env on PHP 7 - #84446

Open
desrosj wants to merge 1 commit into
fix-actions-5.8/fix-react-native-screens-git-dependencyfrom
fix-actions-5.8/fix-xdebug-pecl-php7
Open

desrosj wants to merge 1 commit into
fix-actions-5.8/fix-react-native-screens-git-dependencyfrom
fix-actions-5.8/fix-xdebug-pecl-php7

Conversation

@desrosj

@desrosj desrosj commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Part of #82935.

What?

Pins the version of Xdebug installed by wp-env's Dockerfile template to 3.1.6 whenever the configured PHP major version is 7, instead of letting pecl install xdebug resolve to whatever the newest published release happens to be.

Why?

The PHP 7.4 and PHP 7.4 multisite legs of unit-test.yml fail at the Install WordPress step:

#7 0.383 pecl/xdebug requires PHP (version >= 8.0.0, version <= 8.5.99), installed version is 7.4.33
#7 0.383 No valid packages found
#7 0.383 install failed

Every Xdebug release from 3.2.0 on declares php >= 8.0.0 in its PECL metadata (https://pecl.php.net/rest/r/xdebug/deps.<version>.txt), and 3.1.6 is the newest release whose metadata supports PHP 7.2–7.4. This branch's wp-env installs Xdebug on PHP 7.2 and newer whether or not it is turned on, so this breaks CI here, not only local development.

How?

Makes the same change as #50490, which made wp-env install xdebug-3.1.6 on PHP 7 (wp/6.3 and newer have it), inside this branch's existing PHP version check in dockerFileContents() (packages/env/lib/init-config.js). PHP 8.0+ environments still install the latest Xdebug release. Adds a packages/env changelog entry.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

@desrosj desrosj added [Type] Build Tooling Issues or PRs related to build tooling [Tool] Env /packages/env labels Oct 9, 2026
@desrosj desrosj self-assigned this Oct 9, 2026
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3791f972-b1d0-4735-93d8-0eaa2a08481e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 1.05 MB

ℹ️ View Unchanged
Filename Size
build/a11y/index.js 1.11 kB
build/annotations/index.js 2.91 kB
build/api-fetch/index.js 2.41 kB
build/autop/index.js 2.3 kB
build/blob/index.js 676 B
build/block-directory/index.js 6.62 kB
build/block-directory/style-rtl.css 981 B
build/block-directory/style.css 983 B
build/block-editor/index.js 120 kB
build/block-editor/style-rtl.css 12.9 kB
build/block-editor/style.css 12.9 kB
build/block-library/blocks/archives/editor-rtl.css 61 B
build/block-library/blocks/archives/editor.css 60 B
build/block-library/blocks/audio/editor-rtl.css 59 B
build/block-library/blocks/audio/editor.css 59 B
build/block-library/blocks/audio/style-rtl.css 113 B
build/block-library/blocks/audio/style.css 113 B
build/block-library/blocks/block/editor-rtl.css 159 B
build/block-library/blocks/block/editor.css 159 B
build/block-library/blocks/button/editor-rtl.css 474 B
build/block-library/blocks/button/editor.css 474 B
build/block-library/blocks/button/style-rtl.css 599 B
build/block-library/blocks/button/style.css 598 B
build/block-library/blocks/buttons/editor-rtl.css 315 B
build/block-library/blocks/buttons/editor.css 315 B
build/block-library/blocks/buttons/style-rtl.css 373 B
build/block-library/blocks/buttons/style.css 373 B
build/block-library/blocks/calendar/style-rtl.css 206 B
build/block-library/blocks/calendar/style.css 206 B
build/block-library/blocks/categories/editor-rtl.css 84 B
build/block-library/blocks/categories/editor.css 83 B
build/block-library/blocks/categories/style-rtl.css 79 B
build/block-library/blocks/categories/style.css 79 B
build/block-library/blocks/code/style-rtl.css 90 B
build/block-library/blocks/code/style.css 90 B
build/block-library/blocks/columns/editor-rtl.css 190 B
build/block-library/blocks/columns/editor.css 190 B
build/block-library/blocks/columns/style-rtl.css 425 B
build/block-library/blocks/columns/style.css 424 B
build/block-library/blocks/cover/editor-rtl.css 646 B
build/block-library/blocks/cover/editor.css 644 B
build/block-library/blocks/cover/style-rtl.css 1.22 kB
build/block-library/blocks/cover/style.css 1.22 kB
build/block-library/blocks/embed/editor-rtl.css 484 B
build/block-library/blocks/embed/editor.css 484 B
build/block-library/blocks/embed/style-rtl.css 400 B
build/block-library/blocks/embed/style.css 400 B
build/block-library/blocks/file/editor-rtl.css 301 B
build/block-library/blocks/file/editor.css 301 B
build/block-library/blocks/file/style-rtl.css 254 B
build/block-library/blocks/file/style.css 254 B
build/block-library/blocks/file/view.js 783 B
build/block-library/blocks/freeform/editor-rtl.css 2.43 kB
build/block-library/blocks/freeform/editor.css 2.43 kB
build/block-library/blocks/gallery/editor-rtl.css 704 B
build/block-library/blocks/gallery/editor.css 705 B
build/block-library/blocks/gallery/style-rtl.css 1.06 kB
build/block-library/blocks/gallery/style.css 1.06 kB
build/block-library/blocks/group/editor-rtl.css 160 B
build/block-library/blocks/group/editor.css 160 B
build/block-library/blocks/group/style-rtl.css 58 B
build/block-library/blocks/group/style.css 58 B
build/block-library/blocks/heading/editor-rtl.css 128 B
build/block-library/blocks/heading/editor.css 128 B
build/block-library/blocks/heading/style-rtl.css 78 B
build/block-library/blocks/heading/style.css 78 B
build/block-library/blocks/home-link/style-rtl.css 258 B
build/block-library/blocks/home-link/style.css 258 B
build/block-library/blocks/html/editor-rtl.css 281 B
build/block-library/blocks/html/editor.css 282 B
build/block-library/blocks/image/editor-rtl.css 711 B
build/block-library/blocks/image/editor.css 710 B
build/block-library/blocks/image/style-rtl.css 485 B
build/block-library/blocks/image/style.css 487 B
build/block-library/blocks/latest-comments/style-rtl.css 285 B
build/block-library/blocks/latest-comments/style.css 286 B
build/block-library/blocks/latest-posts/editor-rtl.css 136 B
build/block-library/blocks/latest-posts/editor.css 136 B
build/block-library/blocks/latest-posts/style-rtl.css 529 B
build/block-library/blocks/latest-posts/style.css 528 B
build/block-library/blocks/list/style-rtl.css 65 B
build/block-library/blocks/list/style.css 65 B
build/block-library/blocks/media-text/editor-rtl.css 175 B
build/block-library/blocks/media-text/editor.css 175 B
build/block-library/blocks/media-text/style-rtl.css 490 B
build/block-library/blocks/media-text/style.css 488 B
build/block-library/blocks/more/editor-rtl.css 431 B
build/block-library/blocks/more/editor.css 432 B
build/block-library/blocks/navigation-link/editor-rtl.css 629 B
build/block-library/blocks/navigation-link/editor.css 630 B
build/block-library/blocks/navigation-link/style-rtl.css 94 B
build/block-library/blocks/navigation-link/style.css 94 B
build/block-library/blocks/navigation/editor-rtl.css 1.53 kB
build/block-library/blocks/navigation/editor.css 1.53 kB
build/block-library/blocks/navigation/style-rtl.css 1.8 kB
build/block-library/blocks/navigation/style.css 1.8 kB
build/block-library/blocks/navigation/view.js 2.85 kB
build/block-library/blocks/nextpage/editor-rtl.css 392 B
build/block-library/blocks/nextpage/editor.css 392 B
build/block-library/blocks/page-list/editor-rtl.css 309 B
build/block-library/blocks/page-list/editor.css 309 B
build/block-library/blocks/page-list/style-rtl.css 232 B
build/block-library/blocks/page-list/style.css 232 B
build/block-library/blocks/paragraph/editor-rtl.css 157 B
build/block-library/blocks/paragraph/editor.css 157 B
build/block-library/blocks/paragraph/style-rtl.css 248 B
build/block-library/blocks/paragraph/style.css 248 B
build/block-library/blocks/post-author/editor-rtl.css 209 B
build/block-library/blocks/post-author/editor.css 209 B
build/block-library/blocks/post-author/style-rtl.css 184 B
build/block-library/blocks/post-author/style.css 184 B
build/block-library/blocks/post-comments-form/style-rtl.css 140 B
build/block-library/blocks/post-comments-form/style.css 140 B
build/block-library/blocks/post-comments/style-rtl.css 359 B
build/block-library/blocks/post-comments/style.css 359 B
build/block-library/blocks/post-content/editor-rtl.css 139 B
build/block-library/blocks/post-content/editor.css 139 B
build/block-library/blocks/post-excerpt/editor-rtl.css 73 B
build/block-library/blocks/post-excerpt/editor.css 73 B
build/block-library/blocks/post-excerpt/style-rtl.css 71 B
build/block-library/blocks/post-excerpt/style.css 71 B
build/block-library/blocks/post-featured-image/editor-rtl.css 341 B
build/block-library/blocks/post-featured-image/editor.css 340 B
build/block-library/blocks/post-featured-image/style-rtl.css 141 B
build/block-library/blocks/post-featured-image/style.css 141 B
build/block-library/blocks/post-template/editor-rtl.css 99 B
build/block-library/blocks/post-template/editor.css 98 B
build/block-library/blocks/post-template/style-rtl.css 379 B
build/block-library/blocks/post-template/style.css 380 B
build/block-library/blocks/post-title/style-rtl.css 60 B
build/block-library/blocks/post-title/style.css 60 B
build/block-library/blocks/preformatted/style-rtl.css 102 B
build/block-library/blocks/preformatted/style.css 102 B
build/block-library/blocks/pullquote/editor-rtl.css 183 B
build/block-library/blocks/pullquote/editor.css 183 B
build/block-library/blocks/pullquote/style-rtl.css 319 B
build/block-library/blocks/pullquote/style.css 319 B
build/block-library/blocks/query-pagination-numbers/editor-rtl.css 121 B
build/block-library/blocks/query-pagination-numbers/editor.css 118 B
build/block-library/blocks/query-pagination/editor-rtl.css 270 B
build/block-library/blocks/query-pagination/editor.css 262 B
build/block-library/blocks/query-pagination/style-rtl.css 168 B
build/block-library/blocks/query-pagination/style.css 168 B
build/block-library/blocks/query-title/editor-rtl.css 87 B
build/block-library/blocks/query-title/editor.css 87 B
build/block-library/blocks/query/editor-rtl.css 132 B
build/block-library/blocks/query/editor.css 133 B
build/block-library/blocks/quote/style-rtl.css 170 B
build/block-library/blocks/quote/style.css 170 B
build/block-library/blocks/rss/editor-rtl.css 200 B
build/block-library/blocks/rss/editor.css 200 B
build/block-library/blocks/rss/style-rtl.css 290 B
build/block-library/blocks/rss/style.css 289 B
build/block-library/blocks/search/editor-rtl.css 187 B
build/block-library/blocks/search/editor.css 187 B
build/block-library/blocks/search/style-rtl.css 359 B
build/block-library/blocks/search/style.css 361 B
build/block-library/blocks/separator/editor-rtl.css 100 B
build/block-library/blocks/separator/editor.css 100 B
build/block-library/blocks/separator/style-rtl.css 249 B
build/block-library/blocks/separator/style.css 249 B
build/block-library/blocks/shortcode/editor-rtl.css 476 B
build/block-library/blocks/shortcode/editor.css 476 B
build/block-library/blocks/site-logo/editor-rtl.css 463 B
build/block-library/blocks/site-logo/editor.css 463 B
build/block-library/blocks/site-logo/style-rtl.css 152 B
build/block-library/blocks/site-logo/style.css 152 B
build/block-library/blocks/site-tagline/editor-rtl.css 87 B
build/block-library/blocks/site-tagline/editor.css 87 B
build/block-library/blocks/site-title/editor-rtl.css 85 B
build/block-library/blocks/site-title/editor.css 85 B
build/block-library/blocks/social-link/editor-rtl.css 163 B
build/block-library/blocks/social-link/editor.css 164 B
build/block-library/blocks/social-links/editor-rtl.css 800 B
build/block-library/blocks/social-links/editor.css 799 B
build/block-library/blocks/social-links/style-rtl.css 1.32 kB
build/block-library/blocks/social-links/style.css 1.32 kB
build/block-library/blocks/spacer/editor-rtl.css 307 B
build/block-library/blocks/spacer/editor.css 307 B
build/block-library/blocks/spacer/style-rtl.css 48 B
build/block-library/blocks/spacer/style.css 48 B
build/block-library/blocks/table/editor-rtl.css 476 B
build/block-library/blocks/table/editor.css 477 B
build/block-library/blocks/table/style-rtl.css 478 B
build/block-library/blocks/table/style.css 478 B
build/block-library/blocks/tag-cloud/editor-rtl.css 118 B
build/block-library/blocks/tag-cloud/editor.css 118 B
build/block-library/blocks/tag-cloud/style-rtl.css 94 B
build/block-library/blocks/tag-cloud/style.css 94 B
build/block-library/blocks/template-part/editor-rtl.css 545 B
build/block-library/blocks/template-part/editor.css 545 B
build/block-library/blocks/term-description/editor-rtl.css 89 B
build/block-library/blocks/term-description/editor.css 89 B
build/block-library/blocks/text-columns/editor-rtl.css 95 B
build/block-library/blocks/text-columns/editor.css 95 B
build/block-library/blocks/text-columns/style-rtl.css 165 B
build/block-library/blocks/text-columns/style.css 165 B
build/block-library/blocks/verse/style-rtl.css 86 B
build/block-library/blocks/verse/style.css 86 B
build/block-library/blocks/video/editor-rtl.css 566 B
build/block-library/blocks/video/editor.css 567 B
build/block-library/blocks/video/style-rtl.css 173 B
build/block-library/blocks/video/style.css 173 B
build/block-library/common-rtl.css 1.25 kB
build/block-library/common.css 1.25 kB
build/block-library/editor-rtl.css 9.65 kB
build/block-library/editor.css 9.64 kB
build/block-library/index.js 145 kB
build/block-library/reset-rtl.css 507 B
build/block-library/reset.css 509 B
build/block-library/style-rtl.css 10.4 kB
build/block-library/style.css 10.4 kB
build/block-library/theme-rtl.css 687 B
build/block-library/theme.css 688 B
build/block-serialization-default-parser/index.js 1.3 kB
build/block-serialization-spec-parser/index.js 3.06 kB
build/blocks/index.js 47.5 kB
build/components/index.js 189 kB
build/components/style-rtl.css 15.8 kB
build/components/style.css 15.8 kB
build/compose/index.js 10 kB
build/core-data/index.js 12.5 kB
build/customize-widgets/index.js 10.8 kB
build/customize-widgets/style-rtl.css 1.45 kB
build/customize-widgets/style.css 1.45 kB
build/data-controls/index.js 830 B
build/data/index.js 7.2 kB
build/date/index.js 32 kB
build/deprecated/index.js 742 B
build/dom-ready/index.js 576 B
build/dom/index.js 4.77 kB
build/edit-navigation/index.js 14 kB
build/edit-navigation/style-rtl.css 3.07 kB
build/edit-navigation/style.css 3.07 kB
build/edit-post/classic-rtl.css 455 B
build/edit-post/classic.css 455 B
build/edit-post/index.js 59.1 kB
build/edit-post/style-rtl.css 6.97 kB
build/edit-post/style.css 6.95 kB
build/edit-site/index.js 25.9 kB
build/edit-site/style-rtl.css 4.74 kB
build/edit-site/style.css 4.73 kB
build/edit-widgets/index.js 16.7 kB
build/edit-widgets/style-rtl.css 3.67 kB
build/edit-widgets/style.css 3.67 kB
build/editor/index.js 38.5 kB
build/editor/style-rtl.css 3.84 kB
build/editor/style.css 3.84 kB
build/element/index.js 3.43 kB
build/escape-html/index.js 742 B
build/format-library/index.js 5.71 kB
build/format-library/style-rtl.css 635 B
build/format-library/style.css 636 B
build/hooks/index.js 1.77 kB
build/html-entities/index.js 629 B
build/i18n/index.js 3.73 kB
build/is-shallow-equal/index.js 709 B
build/keyboard-shortcuts/index.js 1.74 kB
build/keycodes/index.js 1.43 kB
build/list-reusable-blocks/index.js 2.06 kB
build/list-reusable-blocks/style-rtl.css 627 B
build/list-reusable-blocks/style.css 626 B
build/media-utils/index.js 3.07 kB
build/notices/index.js 1.07 kB
build/nux/index.js 2.3 kB
build/nux/style-rtl.css 716 B
build/nux/style.css 713 B
build/plugins/index.js 1.99 kB
build/primitives/index.js 1.03 kB
build/priority-queue/index.js 793 B
build/react-i18n/index.js 920 B
build/redux-routine/index.js 2.81 kB
build/reusable-blocks/index.js 2.55 kB
build/reusable-blocks/style-rtl.css 225 B
build/reusable-blocks/style.css 225 B
build/rich-text/index.js 10.8 kB
build/server-side-render/index.js 1.63 kB
build/shortcode/index.js 1.7 kB
build/token-list/index.js 843 B
build/url/index.js 2 kB
build/viewport/index.js 1.28 kB
build/warning/index.js 1.13 kB
build/widgets/index.js 6.51 kB
build/widgets/style-rtl.css 1.02 kB
build/widgets/style.css 1.02 kB
build/wordcount/index.js 1.25 kB

compressed-size-action

@desrosj
desrosj added this pull request to stack #84460 October 9, 2026 18:29
@desrosj
desrosj removed this pull request from stack #84460 October 10, 2026 00:22
@desrosj
desrosj changed the base branch from fix-actions-5.8/fix-react-native-screens-git-dependency to wp/5.8 October 10, 2026 00:23
@desrosj
desrosj force-pushed the fix-actions-5.8/fix-xdebug-pecl-php7 branch from c92e69e to 3ed9a64 Compare October 10, 2026 00:24
@desrosj
desrosj changed the base branch from wp/5.8 to fix-actions-5.8/fix-react-native-screens-git-dependency October 10, 2026 00:26
@desrosj
desrosj added this pull request to stack #84492 October 10, 2026 00:27
@desrosj
desrosj marked this pull request as ready for review October 13, 2026 01:09
@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. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj
desrosj removed this pull request from stack #84492 October 16, 2026 01:21
@desrosj
desrosj added this pull request to stack #84874 October 16, 2026 01:21
@desrosj
desrosj removed this pull request from stack #84874 October 16, 2026 15:49
@desrosj
desrosj added this pull request to stack #84943 October 16, 2026 15:50
@desrosj desrosj changed the title Repair wp/5.8 branch Actions: Pin Xdebug to a PHP-7.x-compatible release Repair wp/5.8 branch Actions: Install Xdebug 3.1.6 in wp-env on PHP 7 Oct 16, 2026
@desrosj
desrosj force-pushed the fix-actions-5.8/fix-xdebug-pecl-php7 branch from 3ed9a64 to b6b0580 Compare October 19, 2026 17:09
@desrosj
desrosj removed this pull request from stack #84943 October 21, 2026 19:47
@desrosj
desrosj added this pull request to stack #85352 October 21, 2026 19:48
@desrosj
desrosj force-pushed the fix-actions-5.8/fix-xdebug-pecl-php7 branch from b6b0580 to fc83eed Compare October 22, 2026 18:35
@desrosj
desrosj force-pushed the fix-actions-5.8/fix-xdebug-pecl-php7 branch from fc83eed to 6d7a7b9 Compare October 23, 2026 13:50

This branch has not been deployed

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

Labels

[Tool] Env /packages/env [Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants