Skip to content

Build/Test Tools: Add the missing reusable-prepare-gutenberg.yml workflow - #12724

Open
lancewillett wants to merge 1 commit into
WordPress:trunkfrom
lancewillett:fix/add-reusable-prepare-gutenberg-workflow
Open

Build/Test Tools: Add the missing reusable-prepare-gutenberg.yml workflow#12724
lancewillett wants to merge 1 commit into
WordPress:trunkfrom
lancewillett:fix/add-reusable-prepare-gutenberg-workflow

Conversation

@lancewillett

@lancewillett lancewillett commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The download-once change (#12701) added the callers of reusable-prepare-gutenberg.yml (phpunit-tests.yml, reusable-phpunit-tests-v3.yml, and test-coverage.yml) but the new reusable-prepare-gutenberg.yml file itself was not committed to trunk. Those workflows now reference a reusable workflow that does not exist, so:

  • Lint GitHub Actions workflow files fails on trunk (actionlint: could not read reusable workflow file ... no such file or directory).
  • The PHPUnit Tests workflow cannot load on trunk, because phpunit-tests.yml calls the missing prepare-gutenberg job that the whole matrix depends on.

This adds the file. It resolves the Gutenberg build once per run, verifies it (SHA-256 and size), uploads it as a gutenberg-build run artifact, and exposes the resolved gutenberg-sha output, the interface the three callers already expect.

Verified with actionlint locally: the dangling reference resolves and the new file is clean.

Follow-up to the download-once landing in #12701 (r62859).

Trac ticket: #65721.

…flow.

[62859] added the callers of this reusable workflow (phpunit-tests.yml, reusable-phpunit-tests-v3.yml, and test-coverage.yml) but did not add the reusable-prepare-gutenberg.yml file they depend on, so those workflows reference a reusable workflow that does not exist and fail to load. This reddens actionlint and blocks the PHPUnit workflow from starting on trunk.

Add the file: it resolves the Gutenberg build once per run, verifies it (SHA-256 and size), and uploads it as a run artifact the PHPUnit callers consume via the gutenberg-build artifact and the gutenberg-sha output.

Follow-up to [62859].
Props lance.willett@automattic.com.
See #65721.
Copilot AI review requested due to automatic review settings July 27, 2026 22:46
@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.

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.

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.

Pull request overview

Adds the missing reusable GitHub Actions workflow that other CI workflows already reference, restoring trunk CI validity by providing the prepare-gutenberg producer job and its expected outputs/artifacts.

Changes:

  • Introduces .github/workflows/reusable-prepare-gutenberg.yml as a reusable workflow callable via workflow_call.
  • Downloads and verifies the Gutenberg build (SHA/size via tools/gutenberg/download.js), uploads it as a gutenberg-build run artifact, and exposes the resolved immutable gutenberg-sha as an output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

pento pushed a commit that referenced this pull request Jul 27, 2026
…flow.

[62859] added the callers of this reusable workflow (phpunit-tests.yml, reusable-phpunit-tests-v3.yml, and test-coverage.yml) but not the reusable-prepare-gutenberg.yml file they depend on, so those workflows reference a reusable workflow that does not exist and fail to load. Add the file: it resolves the Gutenberg build once per run, verifies it (SHA-256 and size), and uploads it as a run artifact the PHPUnit callers consume.

Developed in: #12724

Follow-up to [62859]
See #65721


git-svn-id: https://develop.svn.wordpress.org/trunk@62862 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Jul 27, 2026
…flow.

[62859] added the callers of this reusable workflow (phpunit-tests.yml, reusable-phpunit-tests-v3.yml, and test-coverage.yml) but not the reusable-prepare-gutenberg.yml file they depend on, so those workflows reference a reusable workflow that does not exist and fail to load. Add the file: it resolves the Gutenberg build once per run, verifies it (SHA-256 and size), and uploads it as a run artifact the PHPUnit callers consume.

Developed in: WordPress/wordpress-develop#12724

Follow-up to [62859]
See #65721

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


git-svn-id: http://core.svn.wordpress.org/trunk@62142 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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants