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

fix(pytest): Add master restart delay #909

Merged
merged 3 commits into from
Mar 5, 2023
Merged

fix(pytest): Add master restart delay #909

merged 3 commits into from
Mar 5, 2023

Conversation

dranikpg
Copy link
Contributor

@dranikpg dranikpg commented Mar 5, 2023

Add small delay before re-starting master

Signed-off-by: Vladislav Oleshko <[email protected]>
@dranikpg dranikpg requested a review from adiholden March 5, 2023 10:16
@@ -52,6 +52,7 @@ def stop(self, kill=False):
except subprocess.TimeoutExpired:
print("Unable to terminate DragonflyDB gracefully, it was killed")
proc.kill()
proc.communicate()
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not print the results? https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate
or does it print it internally?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you see the print above when test run? and where did you see the port print?
I found this fail for the disconnect replication fail and I dont see those prints
https://github.com/dragonflydb/dragonfly/actions/runs/4335282784/jobs/7569761257#step:6:1582

Copy link
Contributor Author

@dranikpg dranikpg Mar 5, 2023

Choose a reason for hiding this comment

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

Oh, its unrelated to the failing test, sorry, I just added this line for correctness

@romange
Copy link
Collaborator

romange commented Mar 5, 2023

unrelated, maybe increase the timeout from 30min to 45?

@dranikpg dranikpg merged commit 7cb2232 into main Mar 5, 2023
@romange romange deleted the run-pytest branch June 7, 2023 09:44
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