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

[processor/logstransform] Flaky test - TestLogsTransformProcessor/simpleTest #9761

Open
dmitryax opened this issue May 5, 2022 · 14 comments
Assignees
Labels
bug Something isn't working flaky test a test is flaky never stale Issues marked with this label will be never staled and automatically removed priority:p1 High

Comments

@dmitryax
Copy link
Member

dmitryax commented May 5, 2022

=== RUN   TestLogsTransformProcessor/simpleTest
    processor_test.go:140: 
        	Error Trace:	processor_test.go:140
        	Error:      	Not equal: 
        	            	expected: internal.Logs{orig:(*v1.ExportLogsServiceRequest)(0xc00000e420)}
        	            	actual  : internal.Logs{orig:(*v1.ExportLogsServiceRequest)(0xc00000e468)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -16,6 +16,6 @@
        	            	        (*v1.LogRecord)({
        	            	-        TimeUnixNano: (uint64) 1640995200000000000,
        	            	+        TimeUnixNano: (uint64) 0,
        	            	         ObservedTimeUnixNano: (uint64) 1641081600000000000,
        	            	-        SeverityNumber: (v1.SeverityNumber) 9,
        	            	-        SeverityText: (string) (len=4) "Info",
        	            	+        SeverityNumber: (v1.SeverityNumber) 0,
        	            	+        SeverityText: (string) "",
        	            	         Body: (v1.AnyValue) {
        	            	@@ -25,22 +25,3 @@
        	            	         },
        	            	-        Attributes: ([]v1.KeyValue) (len=3) {
        	            	-         (v1.KeyValue) {
        	            	-          Key: (string) (len=3) "msg",
        	            	-          Value: (v1.AnyValue) {
        	            	-           <max depth reached>
        	            	-          }
        	            	-         },
        	            	-         (v1.KeyValue) {
        	            	-          Key: (string) (len=3) "sev",
        	            	-          Value: (v1.AnyValue) {
        	            	-           <max depth reached>
        	            	-          }
        	            	-         },
        	            	-         (v1.KeyValue) {
        	            	-          Key: (string) (len=4) "time",
        	            	-          Value: (v1.AnyValue) {
        	            	-           <max depth reached>
        	            	-          }
        	            	-         }
        	            	-        },
        	            	+        Attributes: ([]v1.KeyValue) <nil>,
        	            	         DroppedAttributesCount: (uint32) 0,
        	Test:       	TestLogsTransformProcessor/simpleTest
--- FAIL: TestLogsTransformProcessor (0.12s)
    --- FAIL: TestLogsTransformProcessor/simpleTest (0.12s)
FAIL
FAIL	github.com/open-telemetry/opentelemetry-collector-contrib/processor/logstransformprocessor	0.168s
FAIL
make[2]: *** [../../Makefile.Common:46: test] Error 1

Seen in https://github.com/open-telemetry/opentelemetry-collector-contrib/runs/6313031997?check_suite_focus=true

@dmitryax dmitryax added bug Something isn't working flaky test a test is flaky labels May 5, 2022
@dmitryax
Copy link
Member Author

dmitryax commented May 5, 2022

Looks like introduced after #9335

@dehaansa can you please take a look?

@dmitryax
Copy link
Member Author

dmitryax commented May 6, 2022

@dmitryax
Copy link
Member Author

dmitryax commented May 6, 2022

@djaglowski
Copy link
Member

@djaglowski djaglowski reopened this Jun 17, 2022
@djaglowski
Copy link
Member

@BinaryFissionGames
Copy link
Contributor

@djaglowski djaglowski changed the title Flaky test TestLogsTransformProcessor [processor/logstransform] Flaky test - TestLogsTransformProcessor/simpleTest Aug 11, 2022
@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Nov 10, 2022
@djaglowski djaglowski added never stale Issues marked with this label will be never staled and automatically removed and removed Stale labels Nov 10, 2022
@djaglowski
Copy link
Member

Resolved by #17079

@dmitryax
Copy link
Member Author

dmitryax commented Jan 7, 2023

@dmitryax dmitryax reopened this Jan 7, 2023
@dmitryax
Copy link
Member Author

dmitryax commented Jan 7, 2023

@atoulme
Copy link
Contributor

atoulme commented Jan 7, 2023

@atoulme
Copy link
Contributor

atoulme commented May 6, 2023

Trying to fix this with #21530 and following up on open-telemetry/opentelemetry-collector#7634 so we avoid using time.Sleep at all in our tests.

@bogdandrutu
Copy link
Member

Definitely we should avoid time.Sleep, but we cannot also block infinitely. Why the Eventuallyf is not working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky test a test is flaky never stale Issues marked with this label will be never staled and automatically removed priority:p1 High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants