-
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
Run examples in CI #220
Run examples in CI #220
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #220 +/- ##
========================================
Coverage 82.36% 82.36%
========================================
Files 51 51
Lines 2796 2796
========================================
Hits 2303 2303
Misses 493 493 |
This PR is blocked by Add clustered Redis testing to SmartRedis CI. Everything is working except for the fact that the examples are written for clustered Redis and CI uses non-clustered. |
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 should be in a different testing file (yml file) from run_test.yml
. Given that SR already has a whopping 34 checks for each check-in, lets run these once ever merged PR.
Changes:
- Separate workflow file
- run once every PR to develop.
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.
CI and Makefile changes LGTM, barring one inline 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.
Rest of the changes LGTM.
print(f"Test command {' '.join(cmd)}") | ||
print(f"Using cluster: {use_cluster}") | ||
execute_cmd(cmd) | ||
time.sleep(1) |
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.
Why do we need this sleep?
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.
Honestly, I'm not sure. It was in the other test driver scripts so I kept it there
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.
It would be nice to understand the rationale and document it as a comment here for our future selves, but that's a nit (not PR-blocking).
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.
@Spartee Do you happen to know?
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.
on shared systems sometimes it can take an extra couple seconds to spin up
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.
but we've optimized this since this was needed so my guess would be that it's not anymore
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.
Thanks for those changes. this looks good.
make test-examples
make test examples
to CI script