-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 flaky ctest tests #6310
Fix flaky ctest tests #6310
Conversation
Doxense CI Report for Windows 10
|
AWS CodeBuild CI Report for macOS BigSur 11.5.2
|
AWS CodeBuild CI Report for Linux CentOS 7
|
This way we get a predictable 127.0.0.1 in the trace file name
calling fdb_network_stop sends a "close" message to the trace thread, but the network thread might can still be running and sending "flush" messages to the network thread. This change basically ignores any flushes that come after a close.
134f07a
to
25caa34
Compare
@@ -216,6 +217,9 @@ def kill(logger): | |||
|
|||
@enable_logging() | |||
def suspend(logger): | |||
if not shutil.which("pidof"): | |||
logger.debug("Skipping suspend test. Pidof not available") | |||
return |
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.
Is this the case in our CI, such that we will stop running the test 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.
I remember we have it in the CI, not sure if it's changed.
But it's not available on macOS and makes the test fail on macOS.
Add this may make the test work on macOS I guess?
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.
This is the case in joshua agents, but in not CI. We could probably add pidof
to the Joshua agents. I'll follow up on that
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 fixing it.
@@ -216,6 +217,9 @@ def kill(logger): | |||
|
|||
@enable_logging() | |||
def suspend(logger): | |||
if not shutil.which("pidof"): | |||
logger.debug("Skipping suspend test. Pidof not available") | |||
return |
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 remember we have it in the CI, not sure if it's changed.
But it's not available on macOS and makes the test fail on macOS.
Add this may make the test work on macOS I guess?
AWS CodeBuild CI Report for macOS BigSur 11.5.2
|
Doxense CI Report for Windows 10
|
AWS CodeBuild CI Report for Linux CentOS 7
|
Fix a few sources of flakiness in our "ctest" tests. Flakiness found by running the tests many times in Joshua, using #6237
Code-Reviewer Section
The general guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branch
ormaster
if this is the youngest branch)