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] Fix TestQueuedRetryPersistentEnabled_shutdown_dataIsRequeued #8986

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

dmitryax
Copy link
Member

Fix flaky TestQueuedRetryPersistentEnabled_shutdown_dataIsRequeued by moving it to persistent queue.

  • It makes the test easy to validate given that the size of the persistent queue is always available even if it's closed.
  • It brings behavior closer to the name of the test
  • It removes the flakiness associated with data race specific to re-enqueuing to the bounded memory queue by shutdown which should be resolved separately once the re-enqueue option is available for the memory queue

Fixes #8124

Fix flaky TestQueuedRetryPersistentEnabled_shutdown_dataIsRequeued by moving it to persistent queue.
- It makes the test easy to validate given that the size of the persistent queue is always available even if it's closed.
- It brings behavior closer to the name of the test
- It removes the flakiness associated with data race specific to re-enqueuing to the bounded memory queue by shutdown which should be resolved separately once the re-enqueue option is available for the memory queue
@dmitryax dmitryax requested a review from a team as a code owner November 23, 2023 00:26
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7e3e725) 91.55% compared to head (70c5568) 91.55%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8986   +/-   ##
=======================================
  Coverage   91.55%   91.55%           
=======================================
  Files         315      315           
  Lines       17117    17117           
=======================================
  Hits        15672    15672           
  Misses       1150     1150           
  Partials      295      295           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bogdandrutu bogdandrutu merged commit 3b56bd0 into open-telemetry:main Nov 23, 2023
32 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 23, 2023
@dmitryax dmitryax deleted the fix-flake-reqenqueue-test branch November 26, 2023 16:26
pantuza pushed a commit to pantuza/opentelemetry-collector that referenced this pull request Dec 8, 2023
…pen-telemetry#8986)

Fix flaky TestQueuedRetryPersistentEnabled_shutdown_dataIsRequeued by
moving it to persistent queue.
- It makes the test easy to validate given that the size of the
persistent queue is always available even if it's closed.
- It brings behavior closer to the name of the test
- It removes the flakiness associated with data race specific to
re-enqueuing to the bounded memory queue by shutdown which should be
resolved separately once the re-enqueue option is available for the
memory queue

Fixes
open-telemetry#8124
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.

TestQueuedRetryPersistentEnabled_shutdown_dataIsRequeued is flaky
2 participants