Added URI support to redis-benchmark (cli and benchmark share the same uri-parsing methods)#9314
Conversation
…he same uri-parsing methods)
yoav-steinberg
left a comment
There was a problem hiding this comment.
More-or-less ok.
Kind of surprised by the mixup of sds/char* and not so safe/strict url parsing. But this was already in redis-cli to begin with. So your call regarding what to fix and what not...
|
generally, the changes seem ok. |
fixing all comments until EOD @oranagra :) |
Co-authored-by: yoav-steinberg <[email protected]>
|
@filipecosta90 can you take care of the CI failure and see if you can handle the memory "leak" issues? |
doing so @oranagra 👍 |
…include uri parsing
|
@oranagra @yoav-steinberg using always sds on conn info on the benchmark/cli. Can you guys check it? |
yoav-steinberg
left a comment
There was a problem hiding this comment.
Looks good.
Note regarding the new tests, they are piratically identical. Worth trying to unify them do reduce code duplication.
You can search for foreach usage under tests/ to see example of how we avoid code duplication when we want to run the same test with slightly different arguments.
@yoav-steinberg tried to add two common code blocks across the tests to reduce duplication. can you check if it's OK now? |
|
triggered daily (partial) daily CI: https://github.com/redis/redis/actions/runs/1234446071 |
-u <uri>command line option to supportredis://URI scheme.struct cliConnInfo), used to describe an ip:port pair, db num user input, and user:pass to avoid a large number of function arguments.To test solely redis-benchmark:
revamp of #4507 ( cc @itamarhaber )