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

test: Add workaround for Windows logs SDK test failure #1751

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented Oct 16, 2024

The Logs SDK has an intermittent failure in the Windows OS for Ruby 3.2 related to the work method being run outside of its stub.

We have to instantiate the processor outside of the stub so that the stub can be applied to the processor, but the method we're stubbing runs on initialization, so we sometimes run out of expectations due to timing with thread generation.

If we explicitly set OTEL_RUBY_BLRP_START_THREAD_ON_BOOT to false for the removes the older log records from the batch if full test, the stubbed work method will not run outside of the stub block.

Co-authored by @tannalynn

We have to instantiate the processor outside of the stub so that the
stub can be applied to the processor, but the method we're stubbing
runs on initialization, so we sometimes run out of expectations.

If we explicitly set 'OTEL_RUBY_BLRP_START_THREAD_ON_BOOT' to 'false'
for the 'removes the older log records from the batch if full' test, the
stubbed `work` method will not run outside of the stub block.

Co-authored-by: Tanna McClure <[email protected]>
@kaylareopelle kaylareopelle changed the title test: Add workaround for Windows test failure test: Add workaround for Windows logs SDK test failure Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant