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 flaky test TestPersistentQueue_FullCapacity #8980

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Nov 22, 2023

Another fix for the flaky test TestPersistentQueue_FullCapacity. We need to make sure that the first item is consumed from the queue before proceeding. Otherwise, it can occasionally fail with:

--- FAIL: TestPersistentQueue_FullCapacity (0.00s)
    persistent_queue_test.go:91:
        	Error Trace:	/home/runner/work/opentelemetry-collector/opentelemetry-collector/exporter/exporterhelper/internal/persistent_queue_test.go:91
        	Error:      	Received unexpected error:
        	            	sending queue is full
        	Test:       	TestPersistentQueue_FullCapacity
FAIL

Another fix for flaky test TestPersistentQueue_FullCapacity. We need to make sure that the first item left consumed from the queue before proceeding. Otherwise, it can ocasionally fail with:

```
--- FAIL: TestPersistentQueue_FullCapacity (0.00s)
    persistent_queue_test.go:91:
        	Error Trace:	/home/runner/work/opentelemetry-collector/opentelemetry-collector/exporter/exporterhelper/internal/persistent_queue_test.go:91
        	Error:      	Received unexpected error:
        	            	sending queue is full
        	Test:       	TestPersistentQueue_FullCapacity
FAIL
```
@dmitryax dmitryax requested review from a team and bogdandrutu November 22, 2023 01:20
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (73fa163) 91.55% compared to head (28ef233) 91.55%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8980   +/-   ##
=======================================
  Coverage   91.55%   91.55%           
=======================================
  Files         316      316           
  Lines       17111    17111           
=======================================
  Hits        15666    15666           
  Misses       1150     1150           
  Partials      295      295           

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

@mx-psi mx-psi merged commit 4100298 into open-telemetry:main Nov 22, 2023
32 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 22, 2023
@dmitryax dmitryax deleted the fix-flaky-queue-test branch November 22, 2023 22:19
pantuza pushed a commit to pantuza/opentelemetry-collector that referenced this pull request Dec 8, 2023
…ry#8980)

Another fix for the flaky test `TestPersistentQueue_FullCapacity`. We
need to make sure that the first item is consumed from the queue before
proceeding. Otherwise, it can occasionally fail with:

```
--- FAIL: TestPersistentQueue_FullCapacity (0.00s)
    persistent_queue_test.go:91:
        	Error Trace:	/home/runner/work/opentelemetry-collector/opentelemetry-collector/exporter/exporterhelper/internal/persistent_queue_test.go:91
        	Error:      	Received unexpected error:
        	            	sending queue is full
        	Test:       	TestPersistentQueue_FullCapacity
FAIL
```
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.

2 participants