You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c87933c
Browse filesBrowse the repository at this point in the historyBrowse files
Give the Docker workers the database host, port and socket (#429)
The GitHub Actions workflows set MYSQL_HOST, MYSQL_TCP_PORT and
WP_CLI_TEST_DBSOCKET for the database server of the runner, and scenarios
use them through {MYSQL_HOST}, {MYSQL_PORT} and {DB_SOCKET}. The Docker
workers passed on none of them, and had no socket to connect through, so
scenarios such as those of wp-cli/config-command that connect through the
socket or with the mysql client failed as soon as they ran in containers.
Set all three for the worker's own database container, whose socket is now
in a directory of the host that both containers mount.
Claude-Session: https://claude.ai/code/session_01UWTd5pgZgbJQL9QCPAUWvf
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: utils/behat-parallel.php
+34-8Lines changed: 34 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,11 @@
32
32
*/
33
33
constWP_CLI_TESTS_SHARED_RESOURCES = '#localhost:\d+|127\.0\.0\.1:\d+|built-in web server|launch in the background|\bwp server\b|_scaffold\b|install-wp-tests|/tmp/#';
34
34
35
+
/**
36
+
* Directory in which the database container of a Docker worker puts its socket, in both of its containers.
0 commit comments