-
Notifications
You must be signed in to change notification settings - Fork 17
Support Valkey image:latest and Redis:latest for test #258
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
Support Valkey image:latest and Redis:latest for test #258
Conversation
1e62f6d to
afc4a44
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #258 +/- ##
=======================================
Coverage ? 41.00%
=======================================
Files ? 97
Lines ? 12296
Branches ? 0
=======================================
Hits ? 5042
Misses ? 7254
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I don't think there is any need for multiple valkey images. There isn't enough of a difference between versions. But adding the latest redis might be useful |
|
Sorry for the misunderstanding. I’ve added Valkey v9. Should I delete v8? |
|
Maybe use images |
fc82827 to
1c02d2c
Compare
|
disable these test, CI is succeeded |
|
Interesting FUNCTION LIST and SCRIPT LIST fail. |
| redis.register_function('valkey_swift_test_set', test_set) | ||
| redis.register_function('valkey_swift_test_get', test_get) |
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.
rename to fix testFUNCTIONLIST() for Redis
|
|
||
| @available(valkeySwift 1.0, *) | ||
| @Test | ||
| @Test(.enabled(if: Self.isValkey)) |
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.
testSCRIPTfunctions() is enabled for Valkey not Redis
Redis has no SCRIPT SHOW
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.
Instead of adding a isValkey test. Perhaps you can use HELLO to get the server name and only do the SCRIPT SHOW command test if the server name if valkey.
Signed-off-by: zunda <zunda.dev@gmail.com>
4ab03be to
5902dbd
Compare
Signed-off-by: yazawa hiroki <zunda.dev@gmail.com> Signed-off-by: zunda <zunda.dev@gmail.com>
Signed-off-by: zunda <zunda.dev@gmail.com>
remove space Signed-off-by: zunda <zunda.dev@gmail.com>
5902dbd to
7404c92
Compare
|
@adam-fowler |
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.
Sorry for the slow response here. I've been away on holiday
|
|
||
| @available(valkeySwift 1.0, *) | ||
| @Test | ||
| @Test(.enabled(if: Self.isValkey)) |
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.
Instead of adding a isValkey test. Perhaps you can use HELLO to get the server name and only do the SCRIPT SHOW command test if the server name if valkey.
Signed-off-by: zunda <zunda.dev@gmail.com>
8d384a8 to
d608f5e
Compare
|
@adam-fowler |
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.
This looks good, just needs you to run swift format
|
thanks for this |
Add Valkey image v9.0 for testAdd Valkey image:latest(v9.0)
Add Redis image:latest(v8.4)
disable testSCRIPTfunctions() for Redis