Skip to content

Conversation

benank
Copy link
Contributor

@benank benank commented Aug 16, 2022

4/6 telemetry writer tests in the extension are currently failing 100% of the time. However, they only fail when run individually or only as a file (right click Test_TelemetryWriter -> Run Unittests...). If the tests are run as part of all the extension tests, they succeed.

Previously, the GitHub runner did not encounter issues with these tests. Within the last month, this issue has started to occur on GitHub and can also be reproduced locally.

The issue is that the telemetry writer tests do not use RuntimeComposer, which mocks the call to os.getenv, which is necessary for telemetry initialization through environment variables. This PR fixes the problem by adding RuntimeComposer to the telemetry writer tests.

@benank benank requested review from a team, kjohn-msft and rane-rajasi and removed request for a team August 16, 2022 18:02
@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

Merging #159 (42fb24e) into master (25e1860) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #159   +/-   ##
=======================================
  Coverage   87.42%   87.42%           
=======================================
  Files          48       48           
  Lines        8326     8326           
=======================================
  Hits         7279     7279           
  Misses       1047     1047           
Flag Coverage Δ
python27 86.26% <ø> (ø)
python39 87.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@benank benank merged commit a8571b6 into master Aug 16, 2022
@benank benank deleted the bankiel-fix-telem-tests branch August 16, 2022 18:22
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.

2 participants