Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
…vice that talks to the database.
3df649f to
f050801
Compare
Part of #83419.
What?
Migrates
wp-env(packages/env) from the Docker Compose v1 binary to Docker Compose v2, and gives every WordPress container explicit database credentials.Why?
wp-envcalls the standalonedocker-composev1 binary, which current Docker installs and CI runner images no longer include, so everywp-envcommand fails withspawn docker-compose ENOENT.With that fixed,
wp-env startreaches its database check for the first time and fails again: the WordPress and CLI containers fall back to thewordpressimage's placeholder credentials, which don't match themysqlservice.How?
The same change as
trunk's a0943f2 (#51339): switch to thedocker-composenpm package'sv2export. On this branch every Compose call goes through onerequire()inlib/env.js, so that single change covers them all. The package is pinned to0.24.0, the newest release with thev2export whose own dependencies still run on the Node.js versions this branch has used. The database credentials are set on the four services that loadwp-config.php, matching themysqlservice'srootuser with an empty password.Testing Instructions
packages/env's tests run in theJavaScriptjob on this pull request. The CI workflows on this branch usewordpress-develop's environment rather thanwp-env, so this mainly fixeswp-envfor local use.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.
🤖 Generated with Claude Code