Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Build Tooling: Wait for MySQL availability before install #16461
This pull request seeks to resolve an issue where Travis builds may fail in the "PHP unit tests (Docker)" task. The issue is caused by a race condition which can occur when the MySQL container is not given sufficient time to initialize before the WordPress test procedure begins. This can cause errors to occur when the database is unavailable and refuses connections.
The changes here resolve this issue by waiting for the MySQL host to be available to receive connections before proceeding with the installation procedure.
Verify the Travis build passes, and that the logs of the "PHP unit tests (Docker)" are sensible and include the expected PHP test cases result.