-
Notifications
You must be signed in to change notification settings - Fork 832
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
test(fetch): make prepareData async to enforce fakeTime order #2969
test(fetch): make prepareData async to enforce fakeTime order #2969
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2969 +/- ##
=======================================
Coverage 92.77% 92.77%
=======================================
Files 183 183
Lines 6134 6134
Branches 1300 1300
=======================================
Hits 5691 5691
Misses 443 443 |
Looks like coverage changes imply the browser tests no longer trigger the |
0484412
to
b1d9b86
Compare
@dyladan, seems to be an issue with coverage reporting. The reports are uploaded under different commit hashes for some reason. Both runs belong to Unit Tests #4251:
Looks better after rerunning, but it is indeed strange. The same thing happened in my other PR, I think. |
experimental/packages/opentelemetry-instrumentation-fetch/test/fetch.test.ts
Show resolved
Hide resolved
b1d9b86
to
b8604d9
Compare
experimental/packages/opentelemetry-instrumentation-fetch/test/fetch.test.ts
Outdated
Show resolved
Hide resolved
experimental/packages/opentelemetry-instrumentation-fetch/test/fetch.test.ts
Show resolved
Hide resolved
Any pointers on how to repro, @Ugzuzg ? |
@rauno56, I'm mounting this repo in a container with half a cpu: |
b8604d9
to
2b2b70e
Compare
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 thanks for looking into this
experimental/packages/opentelemetry-instrumentation-fetch/test/fetch.test.ts
Show resolved
Hide resolved
@rauno56 the race you mentioned is removed. Would appreciate a ✅ and we can merge |
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 really appreciate the effort you've put into it finding out the root cause, @Ugzuzg. Thanks!
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 great! Thanks for putting in the time and effort to work on this. 🙂
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.
Thank you for your work on this!
experimental/packages/opentelemetry-instrumentation-fetch/test/fetch.test.ts
Outdated
Show resolved
Hide resolved
…/fetch.test.ts Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
Landed. Thank you for your contribution! |
Which problem is this PR solving?
Trying to resolve flaky fetch instrumentation tests.
Fixes #2852
Short description of the changes
I was able to reproduce the issue by supplying half a cpu to a docker container in which the tests are running.
Type of change
How Has This Been Tested?
Repeated the test execution multiple times in a container with half a cpu.
Checklist: