-
Notifications
You must be signed in to change notification settings - Fork 448
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
Waiting a longer time when run unit tests of http client, which may take a long time when run under valgrind. #1171
Waiting a longer time when run unit tests of http client, which may take a long time when run under valgrind. #1171
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1171 +/- ##
=======================================
Coverage 93.29% 93.29%
=======================================
Files 174 174
Lines 6404 6404
=======================================
Hits 5974 5974
Misses 430 430
|
@@ -251,7 +251,7 @@ TEST_F(OtlpHttpLogExporterTestPeer, ExportJsonIntegrationTest) | |||
report_span_id.assign(span_id_hex, sizeof(span_id_hex)); | |||
} | |||
|
|||
ASSERT_TRUE(waitForRequests(8, old_count + 1)); | |||
ASSERT_TRUE(waitForRequests(30, old_count + 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.
interesting. We started with 2, then 8, and now 30. Didn't know it's that slow with Valgrind :)
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 found otlp http client test under valgrind takes 6s most of the time. The //sdk/test/_metrics:metric_instrument_test
take the longest time(almost 1minute). But sometime it takes more time to finish, maybe the CI node is busy at that time?
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 to increase the HTTP wait time as part of this PR if it's 6 secs most of the time even with valgrind? We should eventually remove the old metrics tests once new implementation is ready.
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 failure is happening every now and then in my PR recently.
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 can merge this PR if that's the case. If the problem persists, we can think of mocking the HTTP responses instead of using a real server.
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.
Agree
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
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
@owent - can you please rebase this PR with main, to allow merging. |
…ake a long time when run under valgrind. Signed-off-by: owentou <[email protected]>
Signed-off-by: owentou <[email protected]>
7c70e6b
to
e5d9c92
Compare
Done |
Signed-off-by: owentou [email protected]
Fixes #1049
Changes
Increase timeout for http client. We find 8s is not enough sometime.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes