Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHPUnit tests by updating the database health check #375

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

noahtallen
Copy link
Contributor

@noahtallen noahtallen commented Feb 7, 2024

Looking into the logs for the failing PHPUnit tests, I came across this GitHub issue, which describes an identical problem: MariaDB/mariadb-docker#523. (Which is that the mariadb service fails to start, but doesn't have an error message.) The suggested fix was to update the health check command. I assume GitHub Actions is using the health command to detect if the service is running, and something about the old command must not work anymore.

That worked, but then I got a different error that PHPUnit Polyfills was out of date, so I also updated that to v1.1.

For testing instructions, just double check that the PHPUnit checks on this PR ran the test suite :)

@noahtallen noahtallen marked this pull request as ready for review February 7, 2024 00:26
@noahtallen noahtallen self-assigned this Feb 7, 2024
@noahtallen noahtallen merged commit 643cec3 into main Feb 7, 2024
10 checks passed
@noahtallen noahtallen deleted the fix-phpunit-tests branch February 7, 2024 01:01
@rinatkhaziev
Copy link
Contributor

rinatkhaziev commented Feb 7, 2024

Where does healthcheck.sh live @noahtallen @WPprodigy ?
nm seems a part of MariaDB image. Was just making sure we didn't forget to commit the file.

@noahtallen
Copy link
Contributor Author

It's part of the mariadb image, I believe: https://mariadb.com/kb/en/using-healthcheck-sh/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants