Skip to content
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

update server.call in the place of redis.call in test directory. #444

Open
wants to merge 2 commits into
base: unstable
Choose a base branch
from

Conversation

Shivshankar-Reddy
Copy link
Contributor

Updated all the files apart from scripting.tcl as it has both server and redis. Will update the file later.

foreach script_compatibility_api {server redis} {
foreach script_compatibility_api {server valkey} {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to remove all the references of redis in this file. We can update the compatibility code below to do a find replace of server -> redis, and then update all the code in this file to also use server.

Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.12%. Comparing base (20d583f) to head (b39730d).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #444      +/-   ##
============================================
- Coverage     70.54%   70.12%   -0.42%     
============================================
  Files           114      114              
  Lines         61644    61644              
============================================
- Hits          43488    43230     -258     
- Misses        18156    18414     +258     

see 15 files with indirect coverage changes

@Shivshankar-Reddy Shivshankar-Reddy changed the title update server.call in th eplace of redis.call in test directory. update server.call in the place of redis.call in test directory. May 7, 2024
@madolson
Copy link
Member

@Shivshankar-Reddy Are you going to update this

@Shivshankar-Reddy
Copy link
Contributor Author

Hi @madolson yes, I will update soon..

@madolson madolson self-requested a review July 6, 2024 17:55
@hwware hwware force-pushed the redis-call-to-valkey branch from ab8da42 to b39730d Compare September 9, 2024 18:00
@@ -361,7 +361,7 @@ start_server {overrides {save ""}} {

exec cp -f tests/assets/scriptbackup.rdb $server_path
start_server [list overrides [list "dir" $server_path "dbfilename" "scriptbackup.rdb" "appendonly" "no"]] {
# the script is: "return redis.call('set', 'foo', 'bar')""
# the script is: "return server.call('set', 'foo', 'bar')""
# its sha1 is: a0c38691e9fffe4563723c32ba77a34398e090e6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we need to also update the sha?

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.

3 participants