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

[internal/otelarrow] Fix test flake (for 34719) #34889

Merged
merged 19 commits into from
Sep 6, 2024

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Aug 27, 2024

Description: Restore a skipped test, after understanding the nature of the problem.

The problem was mostly addressed in #34794, which left the test disabled. The test had been flaky because while testing for an out-of-memory condition, the test could fail for timeout or other reason. To make the test more reliable, this now waits until at least one ArrowTraces span has been received by both components. After one span is available, it checks that the expected log messages are present on both sides.

Link to tracking Issue:
Fixes #34719.

Testing:

@jmacd jmacd changed the title Fix internal/otelarrow test flake (for 34719) [internal/otelarrow] Fix test flake (for 34719) Aug 27, 2024
@crobert-1 crobert-1 added Skip Changelog PRs that do not require a CHANGELOG.md entry Run Windows Enable running windows test on a PR labels Aug 27, 2024
@jmacd jmacd marked this pull request as draft August 28, 2024 18:19
@jmacd
Copy link
Contributor Author

jmacd commented Aug 28, 2024

Still flaky!

@github-actions github-actions bot added the cmd/otelcontribcol otelcontribcol command label Sep 4, 2024
@jmacd jmacd marked this pull request as ready for review September 4, 2024 23:38
@jmacd
Copy link
Contributor Author

jmacd commented Sep 5, 2024

PR is green and restores a test. Please merge!

internal/otelarrow/test/e2e_test.go Outdated Show resolved Hide resolved
@crobert-1 crobert-1 added the ready to merge Code review completed; ready to merge by maintainers label Sep 5, 2024
@jmacd
Copy link
Contributor Author

jmacd commented Sep 5, 2024

(Unrelated test flakes strike.)

@crobert-1
Copy link
Member

(Unrelated test flakes strike.)

I've filed #35033, agreed they're unrelated.

@jmacd
Copy link
Contributor Author

jmacd commented Sep 6, 2024

Green!!!

@codeboten codeboten merged commit af21ce7 into open-telemetry:main Sep 6, 2024
172 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 6, 2024
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
**Description:** Restore a skipped test, after understanding the nature
of the problem.

The problem was mostly addressed in
open-telemetry#34794,
which left the test disabled. The test had been flaky because while
testing for an out-of-memory condition, the test could fail for timeout
or other reason. To make the test more reliable, this now waits until at
least one ArrowTraces span has been received by both components. After
one span is available, it checks that the expected log messages are
present on both sides.

**Link to tracking Issue:** 
Fixes open-telemetry#34719.

**Testing:** ✅

---------

Co-authored-by: Curtis Robert <crobert@splunk.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/otelcontribcol otelcontribcol command exporter/otelarrow internal/otelarrow ready to merge Code review completed; ready to merge by maintainers receiver/otelarrow Run Windows Enable running windows test on a PR Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[internal/otelarrow] Flaky test disabled: TestIntegrationMemoryLimited
6 participants