-
Notifications
You must be signed in to change notification settings - Fork 702
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
Add timestamp to log messages in test_helper.tcl #714
Conversation
to avoid restarting Valkey server during the test. The `DEBUG RESTART` procedure was not always reliable, as sometimes the server would fail to restart, leading to flaky tests. Signed-off-by: Ping Xie <[email protected]>
…ca versions. Added logic to iterate through the list of replicas and check for any replicas running a version older than 8.0.0. Older replicas do not support the CLUSTER SETSLOT command on replicas. If such a replica is found, the replication is skipped and falls back to the old (non-replicated) behavior. Signed-off-by: Ping Xie <[email protected]>
Signed-off-by: Ping Xie <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #714 +/- ##
============================================
+ Coverage 70.26% 70.28% +0.02%
============================================
Files 110 111 +1
Lines 60108 60215 +107
============================================
+ Hits 42234 42323 +89
- Misses 17874 17892 +18 |
Nice! How do you add timestamps locally? I can make this optional as I'd like to have timestamps locally too but if there is already a way that doesn't require code change that would be even better. |
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 think it is a good idea to add this, i've had this thought in the past. Do you have a screenshot of the example output?
Typically I use
|
You can check the CI link, https://github.com/valkey-io/valkey/actions/runs/9721454412/job/26834153304?pr=714. |
I think |
current_time
function to generate a formatted timestamp.read_from_test_client
to include timestamps.This change aims to help analyze the recent slew of test timeout issues by providing precise timing information in the logs, allowing for better tracking and debugging of test execution times.
https://github.com/hwware/valkey/actions/runs/9715726013/job/26817778389#step:6:3736