-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
metricbeat/module/postgresql: Improve healthcheck for Postgres #36182
Conversation
This pull request doesn't have a |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Keeping this PR in draft for some time to do some testing myself. But it is ready for review. |
/test metricbeat |
^^ Will retrigger a few times in order to test if Postgres tests are failing or not. |
/test metricbeat |
1 similar comment
/test metricbeat |
/test postgres |
/test |
/test |
/test metricbeat-goIntegTest |
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.
LGTM!
What does this PR do?
Improve healthcheck for Postgres to reduce the flakiness in integration tests.
Why is it important?
Flaky tests lead to instability of CI and could lead to unnecessary blocking of PRs and unreliable tests. In my opinion,
start_period
and reason mentioned in peter-evans/docker-compose-healthcheck#16 (comment) is something that could help us as this improves healthcheck.Also bumped the fallback version for the image to the latest minor of the same major release to avoid any issues. Currently, my latest major is 15 and currently, I've set the fallback version to 13.11 so that it doesn't change the major.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
As the flaky tests are not reproducible, we'll do a soak testing i.e., soak it for some time to see if it really reduced the flakiness of integration tests or not.
Related issues