Skip to content

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Jun 16, 2025

Implements a series of bugfixes and improvements to enable integration with WordPress Playground. Some highlights:

  • Add blueprint.http_client filter so Playground can setup its own HTTP Client instance
  • Add blueprint.resolved filter to enable injecting additional steps in Playground
  • RequestReadStream doesn't expect Content-Length when Content-Encoding is present.
  • WPCLIStep now gets an explicit --path argument to avoid relying on WordPress autodetection heuristics
  • Restored 64KB as the default byte stream chunk size
  • latest is now a valid WordPress version identifier
  • Importing content is now supported even when running as phar
  • StreamImporter now requires new_site_content_root_url and a few other options when they can't be backfilled via WordPress functions. For example, when WordPress hasn't yet been loaded
  • Magic strings, such as create-new-site, are replaced with constants, such as self::EXECUTION_MODE_CREATE_NEW_SITE
  • ...a lot more other tiny improvements.

Testing instructions

Confirm the CLI failures are in line with trunk (most successes, some flaky failures)

@adamziel adamziel marked this pull request as ready for review August 6, 2025 12:44
@adamziel adamziel merged commit f4af30b into trunk Aug 6, 2025
15 of 21 checks passed
@adamziel adamziel deleted the integrate-blueprints-v2-with-playground-cli branch August 6, 2025 12:44
@adamziel adamziel changed the title Get Blueprints v2 to work with Playground CLI [Blueprints v2] Playground CLI compatibility (#128) Aug 6, 2025
@adamziel adamziel added the enhancement New feature or request label Aug 6, 2025
@adamziel adamziel changed the title [Blueprints v2] Playground CLI compatibility (#128) [Blueprints v2] Playground CLI compatibility Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants