-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 MariaDB health check #618
Conversation
image: ${{ matrix.db-image }} | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
options: ${{ startsWith(matrix.db-image, 'mariadb') && '--health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=1s --health-timeout=10s --health-retries=60' || '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted to the variant I did not like at first, because its the easiest way for now to get the builds green - which is most important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I disagree?
The most important is long-term sustainability.
Why fix an error today if you have to refix it 12 more times in the coming months??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a red CI pipeline for mariadb for a few months and did not know why. thanks to your PR I have an idea how to fix, so I want at first fix the problem to get the pipeline green again, which is super important.
I am still open to the matrix refactoring PR you submitted and doing the options via matrix instead.
thanks @szepeviktor |
Glad to contribute. |
inspired by #613
extracted the parts which actually fix the current failling builds.
refactoring the matrix, like done in #613 should be a separate PR.
Co-authored-by: @szepeviktor