Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@michael-grunder
Copy link
Member

  • Attempt to fix a flaky test that only fails in GitHub CI and add more diagnostics when the tests fail with a fatal error.

  • Fix a float -> int truncation warning in our HEXPIRE tests.

We often have to rerun the test suite on GitHub actions because of a
hard to reproduce "Read error on connection" exception when getting a
new `RedisCluster` instance.

No one has ever reported this failure outside of GitHub CI and it's not
clear exactly what might be going on.

This commit does two main things:

1. Allows for one failure to construct a new `RedisCluster` instance but
   only if we detect we're running in GitHub CI.

2. Adds much more diagnostic information if we still have a fatal error
   (e.g. we can't connect in two tries, or some other fatal error
   happens). The new info includes the whole callstack before aborting
   as well as an attempt to manually ping the seeds with `redis-cli`.
@michael-grunder michael-grunder merged commit 152fdda into develop May 8, 2025
109 of 110 checks passed
@michael-grunder michael-grunder deleted the fix/flaky-githb-ci-test branch May 8, 2025 16:19
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.

2 participants