-
Notifications
You must be signed in to change notification settings - Fork 18
Custom responses and Standard Error types for cluster commands #260
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
Conversation
5023075 to
2bc45cb
Compare
Signed-off-by: Nilanshu Sharma <[email protected]>
Signed-off-by: Nilanshu Sharma <[email protected]>
2bc45cb to
cbe091e
Compare
|
✅ Pull request has performance improvements ✅ Summary
New baseline 'pull_request' is BETTER than the 'main' baseline thresholds. Full Benchmark ComparisonComparing results between 'main' and 'pull_request'ValkeyBenchmarksClient: GET benchmark metricsMalloc (total): results within specified thresholds, fold down for details.
Client: GET benchmark | parallel 20 | 20 concurrent connections metricsMalloc (total): results within specified thresholds, fold down for details.
Connection: GET benchmark metricsMalloc (total): results within specified thresholds, fold down for details.
Connection: GET benchmark – NoOpTracer metricsMalloc (total): results within specified thresholds, fold down for details.
Connection: Pipeline array benchmark metricsMalloc (total): results within specified thresholds, fold down for details.
Connection: Pipeline benchmark metricsMalloc (total): results within specified thresholds, fold down for details.
HashSlot – {user}.whatever metricsMalloc (total): results within specified thresholds, fold down for details.
ValkeyCommandEncoder – Command with 7 words metricsMalloc (total): results within specified thresholds, fold down for details.
ValkeyCommandEncoder – Simple GET metricsMalloc (total): results within specified thresholds, fold down for details.
ValkeyCommandEncoder – Simple MGET 15 keys metricsMalloc (total): results within specified thresholds, fold down for details.
|
Signed-off-by: Nilanshu Sharma <[email protected]>
Signed-off-by: Nilanshu Sharma <[email protected]>
Signed-off-by: Nilanshu Sharma <[email protected]>
Signed-off-by: Nilanshu Sharma <[email protected]>
adam-fowler
left a comment
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.
Hi @nilanshu-sharma I've had a quick look at this on my phone. Hard to do a proper review on the phone, but see my comments related to errors thrown.
adam-fowler
left a comment
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.
A quick review from my iPhone
Signed-off-by: Nilanshu Sharma <[email protected]>
|
Thanks @adam-fowler. I have addressed your comments. |
868f4b3 to
deeae68
Compare
adam-fowler
left a comment
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.
Most of this is fine, just moving code about.
Can we remove the docker file edits, as I'm not sure they work. At least valkey docs imply they don't. When testing cluster I tend to use a devcontainer in vscode. But if you can create a docker file we can use on macOS and Linux for testing cluster lets do it in another PR.
| } | ||
| } | ||
|
|
||
| @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) |
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.
These were never needed before why are they needed now
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.
These got removed as per these connection pool changes on Oct 29: https://github.com/valkey-io/valkey-swift/pull/256/files
Since then my local builds are failing. I'm okay to remove these if they are not required as it could be an issue with my local build env.
| @@ -1,3 +1,4 @@ | |||
| @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) | |||
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.
See above
Signed-off-by: Nilanshu Sharma <[email protected]>
Signed-off-by: Nilanshu Sharma <[email protected]>
Change Summary:
Adding custom responses for the following commands:
Converting error types for those Cluster Commands to
RESPDecodeErrorRemoving docker network to make cluster-mode valkey directly accessible to integration tests while testing locally on laptop.
Restoring platform availability macros causing builds to fail
Also realized that the Integration tests meant to cluster-mode features are not running in the CI, so CI needs to be enhanced to run cluster mode related docker dependencies. For now the verification of new integration tests is done locally.