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 MariaDB health check #618

Merged
merged 2 commits into from
Jul 30, 2023
Merged

Fix MariaDB health check #618

merged 2 commits into from
Jul 30, 2023

Conversation

staabm
Copy link
Owner

@staabm staabm commented Jul 30, 2023

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

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' }}
Copy link
Owner Author

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.

Copy link
Contributor

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??

Copy link
Owner Author

@staabm staabm Jul 30, 2023

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.

@staabm staabm marked this pull request as ready for review July 30, 2023 09:09
@staabm staabm merged commit 2b9b044 into main Jul 30, 2023
30 checks passed
@staabm staabm deleted the fix branch July 30, 2023 09:09
@staabm
Copy link
Owner Author

staabm commented Jul 30, 2023

thanks @szepeviktor

@szepeviktor
Copy link
Contributor

Glad to contribute.

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

Successfully merging this pull request may close these issues.

None yet

2 participants