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

bug: fix flaky test TestQueuedRetry_RequeuingEnabled #8989

Conversation

berkeli
Copy link
Contributor

@berkeli berkeli commented Nov 23, 2023

Description: fixes a flaky test
Fixing a bug - TestQueuedRetry_RequeuingEnabled has been failing occasionally. Upon investigation, be.send calls the underlying observabilityConsumerSender.send which calls wg.Done(), so we need to add wg.Add(1) before that

Link to tracking Issue: #6624

Testing: Ran the same test multiple times before/after change: go test -race -run TestQueuedRetry_RequeuingEnabled -count 1000

Documentation: N/A

@berkeli berkeli requested review from a team and codeboten November 23, 2023 21:05
Copy link

linux-foundation-easycla bot commented Nov 23, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: berkeli / name: Berkeli Halmyradov (62df6d6)

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! thanks for the fix @berkeli

Copy link

codecov bot commented Nov 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7e3e725) 91.55% compared to head (62df6d6) 91.55%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8989   +/-   ##
=======================================
  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.

@codeboten codeboten added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Nov 24, 2023
@codeboten codeboten merged commit c21ea16 into open-telemetry:main Nov 24, 2023
32 of 34 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 24, 2023
pantuza pushed a commit to pantuza/opentelemetry-collector that referenced this pull request Dec 8, 2023
…8989)

fixes a flaky test 
Fixing a bug - TestQueuedRetry_RequeuingEnabled has been failing
occasionally. Upon investigation, `be.send` calls the underlying
`observabilityConsumerSender.send` which calls `wg.Done()`, so we need
to add `wg.Add(1)` before that

Fixes open-telemetry#6624

**Testing:** Ran the same test multiple times before/after change: `go
test -race -run TestQueuedRetry_RequeuingEnabled -count 1000`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants