-
Notifications
You must be signed in to change notification settings - Fork 25
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
SmartRedis test system refactor #356
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #356 +/- ##
============================================
+ Coverage 0 78.36% +78.36%
============================================
Files 0 97 +97
Lines 0 7057 +7057
============================================
+ Hits 0 5530 +5530
- Misses 0 1527 +1527 |
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.
Looks amazing!
I went on a deep dive into the launch_redis.py
file basically just trying to remove the need for shell=True
in the Popen
calls and calling out some style things along the way.
I skimmed through the Makefile
as well and that, to the best of my ability looks great with one outstanding questiong.
Overall, only some pedantic feedback! LGTM!!
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
Co-authored-by: Matt Drozt <[email protected]>
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.
Looks good to me, with the exception of the one change to the detection of redis-cli
. This should avoid the need to set another environment variable.
Thanks for this; it's a HUGE improvement
is_uds = udsport is not None | ||
if is_uds: | ||
n_nodes = 1 | ||
cicd = os.getenv('SR_CICD_EXECUTION') |
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 the easier way to do this is to use shutil.which('redis-cli')
and then set the rediscli
variable at the top of the file and/or make it into a small function
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.
We actually have fairly substantial changes based on whether we're in CI/CD or not, so this isn't the only thing affected. Can discuss more offline
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.
LGTM!! Ship it!!
Co-authored-by: Matt Drozt <[email protected]>
Revamp SmartRedis test environment [ committed by @billschereriii ] [ reviewed by @ashao @MattToast ]
Massive overhaul of test system, automating launch and teardown of Redis and removing the need for the setup_test_env.sh script