wp-cli / wp-cli-tests

WP-CLI testing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix install-package-tests random build failures

danielbachhuber opened this issue · comments

Builds fail quite frequently with this error:

> install-package-tests
Warning: arning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:32768' (111)
/home/runner/work/extension-command/extension-command/vendor/wp-cli/wp-cli-tests/bin/install-package-tests: 81: [: Illegal number: 
Detected MySQL at version .
+ mysql -e CREATE DATABASE IF NOT EXISTS `wp_cli_test`; -h127.0.0.1 -P32768 --protocol=tcp -uroot -proot
Warning: arning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:32768' (111)
Script install-package-tests handling the prepare-tests event returned with error code 1
Error: Process completed with exit code 1.

image

Done is:

  • Builds no longer randomly fail with this error.

Here's a job where mysql never became available: https://github.com/wp-cli/automated-tests/actions/runs/4683019581/jobs/8297593809

image

mysql said it was ready though:

image

LIES

@wp-cli/committers Automated tests seem to be passing more reliably now with #167 and #168

image

@danielbachhuber Please re-enable testing workflow in automated-testing repository.

@wojsmol Ah, the warning message at the top that I just looked past? 😁 I clicked the button.