Skip to content

Build/Test Tools: Fix Installation Tests fatal on a truncated Twenty Twenty-Two pattern file - #15152

Closed
adimoldovan wants to merge 2 commits into
WordPress:trunkfrom
adimoldovan:66403-install-tests-fatal-on-a-truncated-path
Closed

adimoldovan wants to merge 2 commits into
WordPress:trunkfrom
adimoldovan:66403-install-tests-fatal-on-a-truncated-path

Conversation

@adimoldovan

@adimoldovan adimoldovan commented Oct 29, 2026 •

Copy link
Copy Markdown

The Installation Tests workflow now downloads release tarballs with curl and extracts them with the system tar.

WP-CLI 2.12.0 extracts tarballs with PharData, which cuts paths at 100 characters. On WordPress 5.9 and 6.0, twentytwentytwo/inc/patterns/header-text-only-with-tagline-black-background.php loses its .php extension, and the post-install smoke check fails with a fatal error. The system tar keeps the full path.

nightly and trunk still use wp core download. Nightly builds are only available as a zip, and the zip extraction does not cut paths.

Testing

Run the Installation Tests workflow manually with wp-version set to 5.9, 6.0, latest, and nightly. All single-site jobs pass the smoke check.

Results on my fork, with this change and the github.repository checks removed so the jobs run outside WordPress/wordpress-develop:

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

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Investigation, implementation, and review. I reviewed the final change.


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.

…ation Tests.

WP-CLI extracts tarballs with PharData, which cuts paths at 100 characters. On WordPress 5.9 and 6.0, this breaks a Twenty Twenty-Two pattern file, and the post-install smoke check fails with a fatal error.

See #66403.
@adimoldovan adimoldovan self-assigned this Oct 29, 2026
@adimoldovan
adimoldovan marked this pull request as ready for review October 29, 2026 10:12
@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 adrianmoldovanwp.

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 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.

@adimoldovan
adimoldovan requested a review from a team October 29, 2026 10:13

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.

🟡 Changes recommended

The documented wp-version: latest input uses an incorrect archive URL, causing the download to fail before installation.

1 open issue
What changed in this PR

This PR updates the Installation Tests workflow to avoid WP-CLI tarball extraction truncating long filenames, which causes WordPress 5.9 and 6.0 installation smoke checks to fail.

Changes:

  • Downloads release tarballs with curl and extracts them using system tar.
  • Keeps WP-CLI downloads for nightly and trunk, which use ZIP archives.
  • Adds comments explaining the extraction workaround.
File Description
.github/​workflows/​install-testing.yml Changes release download and extraction handling to preserve long filenames.

Review effort: Balanced

Comment thread .github/workflows/install-testing.yml Resolved

@lancewillett lancewillett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The release download uses system tar while nightly/trunk retain the ZIP download path. Local extraction passed for 5.9, 6.0, and latest, including the full Twenty Twenty-Two pattern filename. ShellCheck passed. The local actionlint warning about the existing $/ action syntax also occurs on the base workflow; GitHub lint and installation checks passed. Both linked fork installation runs passed. No blockers found.

AI review · gpt-6

wporg-sync pushed a commit that referenced this pull request Oct 29, 2026
Download release archives with `curl` and extract them with the system `tar` to avoid truncated filenames from `PharData`. This fixes the Twenty Twenty-Two pattern loading failure in WordPress 5.9 and 6.0 installation smoke checks.

Keep `wp core download` for `nightly` and `trunk`, which use ZIP archives.

Developed in: #15152

Props adrianmoldovanwp.
Fixes #66403.


git-svn-id: https://develop.svn.wordpress.org/trunk@65004 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 65004
GitHub commit: aeb7f2a

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Oct 29, 2026
@lancewillett

Copy link
Copy Markdown
Member

@adimoldovan Could you please follow up in a new PR/Trac ticket for how we might upgrade to latest version of WP CLI to avoid this patch? See https://core.trac.wordpress.org/ticket/66403#comment:3

wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Oct 29, 2026
Download release archives with `curl` and extract them with the system `tar` to avoid truncated filenames from `PharData`. This fixes the Twenty Twenty-Two pattern loading failure in WordPress 5.9 and 6.0 installation smoke checks.

Keep `wp core download` for `nightly` and `trunk`, which use ZIP archives.

Developed in: WordPress/wordpress-develop#15152

Props adrianmoldovanwp.
Fixes #66403.

Built from https://develop.svn.wordpress.org/trunk@65004


git-svn-id: http://core.svn.wordpress.org/trunk@64154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

5 participants