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

chore: fixing zone from which to fork a new zone #1209

Merged
merged 3 commits into from
Jun 18, 2020

Conversation

obecny
Copy link
Member

@obecny obecny commented Jun 17, 2020

Which problem is this PR solving?

Another PR will be in contrib

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #1209 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1209   +/-   ##
=======================================
  Coverage   92.32%   92.32%           
=======================================
  Files         122      122           
  Lines        3533     3533           
  Branches      714      714           
=======================================
  Hits         3262     3262           
  Misses        271      271           
Impacted Files Coverage Δ
...ry-context-zone-peer-dep/src/ZoneContextManager.ts 85.36% <100.00%> (ø)

@dyladan
Copy link
Member

dyladan commented Jun 17, 2020

Does this preclude the need for the rxjs/angular plugin, or are you still doing that?

@dyladan
Copy link
Member

dyladan commented Jun 17, 2020

Can you add a test? Since all the tests were passing before I would like to see an example of one that would be broken without this change to more easily understand what is going on.

@obecny
Copy link
Member Author

obecny commented Jun 17, 2020

Does this preclude the need for the rxjs/angular plugin, or are you still doing that?

No the mentioned plugin will be needed in case to fully support context propagation in angular between our plugins like with promiseQ etc. So this is to fix creating new zone from active instead of root always - this was wrong from the beginning.

@dyladan
Copy link
Member

dyladan commented Jun 17, 2020

If it was always wrong how did the tests pass?

@obecny
Copy link
Member Author

obecny commented Jun 17, 2020

If it was always wrong how did the tests pass?

cus it wasn't tested ?

@owais
Copy link

owais commented Jun 17, 2020

This specific case obviously wasn't tested but it raises the question if we have tests that actually test a real world scenario with some popular frameworks. In addition to unit tests that test specific behavior of some functions or classes, we should have functional or integration tests that instrument a demo application and test the full lifecycle of the app making sure expected spans are generated at the end.

@owais
Copy link

owais commented Jun 17, 2020

@obecny Thank you so much for the fast turn around on this. You mentioned there will be another PR in contrib to fix this and probably that's why but this fix alone does not fix the bug. You probably are obviously aware of it but just wanted to share in case there was some miscommunication.

@obecny
Copy link
Member Author

obecny commented Jun 17, 2020

This specific case obviously wasn't tested but it raises the question if we have tests that actually test a real world scenario with some popular frameworks.
We don't and to achieve that there was already issue raised long time ago

#650

Without having e2e test we can't test real world scenario

@mayurkale22 @dyladan ^^

@mayurkale22
Copy link
Member

We need to add integration tests sooner rather than later. This is must requirement for GA / 1.0.

@dyladan dyladan added the bug Something isn't working label Jun 18, 2020
@dyladan
Copy link
Member

dyladan commented Jun 18, 2020

@open-telemetry/javascript-approvers this is a high priority bugfix please review

@dyladan dyladan added the Merge:LGTM This PR is ready to be merged by a Maintainer (has enough valid approvals, successful build, etc.) label Jun 18, 2020
@mayurkale22 mayurkale22 merged commit 2486c3d into open-telemetry:master Jun 18, 2020
@obecny obecny deleted the zone-context branch July 8, 2020 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Merge:LGTM This PR is ready to be merged by a Maintainer (has enough valid approvals, successful build, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants