Fix install-package-tests random build failures
danielbachhuber opened this issue · comments
Daniel Bachhuber commented
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.
Done is:
- Builds no longer randomly fail with this error.
Daniel Bachhuber commented
Daniel Bachhuber commented
Opened a GitHub discussion https://github.com/orgs/community/discussions/52445
Daniel Bachhuber commented
Here's a job where mysql
never became available: https://github.com/wp-cli/automated-tests/actions/runs/4683019581/jobs/8297593809
mysql
said it was ready though:
LIES
Daniel Bachhuber commented
Wojciech Smoliński commented
@danielbachhuber Please re-enable testing workflow in automated-testing repository.
Daniel Bachhuber commented
@wojsmol Ah, the warning message at the top that I just looked past? 😁 I clicked the button.