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: Resolve Truffle ruby intermittent failures on exporters #1752

Merged

Conversation

kaylareopelle
Copy link
Contributor

Zlib.gzip adds a timestamp, which may be different than the one in the encoded req.body due to the time difference between the request and the assertion. This caused intermittent an failure.

To resolve the problem, compare the unzipped request body with the encoded_estr to avoid Zlib timestamp interference with the equality check.

Co-authored by @tannalynn
Resolves #1507

kaylareopelle and others added 4 commits October 21, 2024 16:10
Zlib.gzip adds a timestamp, which may be different than the one in the
encoded req.body due to the test timing, and may cause an intermittent
failure. Compare the unzipped request with the encoded_estr to avoid
the timestamp interfering with the equality check.

Co-authored-by: Tanna McClure <[email protected]>
The assertions in this test differ from the other intermittent failures.
Hopefully, the test is not failing and was skipped because the name
of the test is the same as others.
@kaylareopelle kaylareopelle marked this pull request as ready for review October 21, 2024 23:25
@kaylareopelle kaylareopelle changed the title test: Truffle ruby intermittent failure on exporters test: Resolve Truffle ruby intermittent failure on exporters Oct 21, 2024
@kaylareopelle kaylareopelle changed the title test: Resolve Truffle ruby intermittent failure on exporters test: Resolve Truffle ruby intermittent failures on exporters Oct 21, 2024
@mwear mwear merged commit 0c372cd into open-telemetry:main Oct 22, 2024
64 of 65 checks passed
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.

Flaky test on truffle ruby
2 participants