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/transform] Failing unit test: Test_aggregateOnAttributes/matching_attribute #34297

Closed
crobert-1 opened this issue Jul 29, 2024 · 10 comments
Assignees
Labels
bug Something isn't working flaky test a test is flaky priority:p1 High processor/transform Transform processor

Comments

@crobert-1
Copy link
Member

Component(s)

processor/transform

Describe the issue you're reporting

Failing CI/CD link

Failure output:

=== FAIL: internal/metrics Test_aggregateOnAttributes/matching_attribute (0.00s)
    func_aggregate_on_attributes_metrics_test.go:329: 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/transformprocessor/internal/metrics/func_aggregate_on_attributes_metrics_test.go:329
        	Error:      	Not equal: 
        	            	expected: pmetric.MetricSlice{orig:(*[]*v1.Metric)(0xc0004e8f30), state:(*internal.State)(0xc00050345c)}
        	            	actual  : pmetric.MetricSlice{orig:(*[]*v1.Metric)(0xc0004e8f18), state:(*internal.State)(0xc00050342c)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -9,2 +9,12 @@
        	            	      DataPoints: ([]*v1.NumberDataPoint) (len=2) {
        	            	+      (*v1.NumberDataPoint)({
        	            	+       Attributes: ([]v1.KeyValue) <nil>,
        	            	+       StartTimeUnixNano: (uint64) 0,
        	            	+       TimeUnixNano: (uint64) 0,
        	            	+       Value: (*v1.NumberDataPoint_AsDouble)({
        	            	+        AsDouble: (float64) 20
        	            	+       }),
        	            	+       Exemplars: ([]v1.Exemplar) <nil>,
        	            	+       Flags: (uint32) 0
        	            	+      }),
        	            	       (*v1.NumberDataPoint)({
        	            	@@ -27,12 +37,2 @@
        	            	        Flags: (uint32) 0
        	            	-      }),
        	            	-      (*v1.NumberDataPoint)({
        	            	-       Attributes: ([]v1.KeyValue) <nil>,
        	            	-       StartTimeUnixNano: (uint64) 0,
        	            	-       TimeUnixNano: (uint64) 0,
        	            	-       Value: (*v1.NumberDataPoint_AsDouble)({
        	            	-        AsDouble: (float64) 20
        	            	-       }),
        	            	-       Exemplars: ([]v1.Exemplar) <nil>,
make[2]: *** [../../Makefile.Common:131: test-with-cover] Error 1
make[1]: *** [Makefile:179: processor/transformprocessor] Error 2
make: *** [Makefile:131: gotest-with-cover] Error 2
        	            	-       Flags: (uint32) 0
        	            	       })
        	Test:       	Test_aggregateOnAttributes/matching_attribute

=== FAIL: internal/metrics Test_aggregateOnAttributes (0.01s)

=== FAIL: internal/metrics Test_aggregateOnAttributes/matching_attribute (re-run 1) (0.00s)
    func_aggregate_on_attributes_metrics_test.go:[329](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10150354140/job/28067345409#step:9:330): 
        	Error Trace:	/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/transformprocessor/internal/metrics/func_aggregate_on_attributes_metrics_test.go:329
        	Error:      	Not equal: 
        	            	expected: pmetric.MetricSlice{orig:(*[]*v1.Metric)(0xc0000129f0), state:(*internal.State)(0xc00001543c)}
        	            	actual  : pmetric.MetricSlice{orig:(*[]*v1.Metric)(0xc0000129d8), state:(*internal.State)(0xc00001540c)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -9,2 +9,12 @@
        	            	      DataPoints: ([]*v1.NumberDataPoint) (len=2) {
        	            	+      (*v1.NumberDataPoint)({
        	            	+       Attributes: ([]v1.KeyValue) <nil>,
        	            	+       StartTimeUnixNano: (uint64) 0,
        	            	+       TimeUnixNano: (uint64) 0,
        	            	+       Value: (*v1.NumberDataPoint_AsDouble)({
        	            	+        AsDouble: (float64) 20
        	            	+       }),
        	            	+       Exemplars: ([]v1.Exemplar) <nil>,
        	            	+       Flags: (uint32) 0
        	            	+      }),
        	            	       (*v1.NumberDataPoint)({
        	            	@@ -27,12 +37,2 @@
        	            	        Flags: (uint32) 0
        	            	-      }),
        	            	-      (*v1.NumberDataPoint)({
        	            	-       Attributes: ([]v1.KeyValue) <nil>,
        	            	-       StartTimeUnixNano: (uint64) 0,
        	            	-       TimeUnixNano: (uint64) 0,
        	            	-       Value: (*v1.NumberDataPoint_AsDouble)({
        	            	-        AsDouble: (float64) 20
        	            	-       }),
        	            	-       Exemplars: ([]v1.Exemplar) <nil>,
        	            	-       Flags: (uint32) 0
        	            	       })
        	Test:       	Test_aggregateOnAttributes/matching_attribute

=== FAIL: internal/metrics Test_aggregateOnAttributes (re-run 1) (0.00s)
@crobert-1 crobert-1 added the needs triage New item requiring triage label Jul 29, 2024
@github-actions github-actions bot added the processor/transform Transform processor label Jul 29, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@evan-bradley evan-bradley added bug Something isn't working priority:p1 High and removed needs triage New item requiring triage labels Jul 30, 2024
@evan-bradley
Copy link
Contributor

@odubajDT could you take a look?

@odubajDT
Copy link
Contributor

@odubajDT could you take a look?

sure

@crobert-1
Copy link
Member Author

+1 freq: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10185859921/job/28176468068?pr=34278

This failure is techincally Test_aggregateOnAttributes/duplicate_attributes, but I believe it's likely related.

@pjanotti
Copy link
Contributor

@songy23
Copy link
Member

songy23 commented Aug 6, 2024

Saw a similar failure in Test_aggregateOnAttributes/duplicate_attributes
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/10272482710/job/28424990328?pr=34433#step:5:280

@songy23 songy23 added the flaky test a test is flaky label Aug 6, 2024
evan-bradley pushed a commit that referenced this issue Aug 6, 2024
…etrics in unit tests (#34338)

**Description:** <Describe what has changed.>

**Link to tracking Issue:** #34297

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@evan-bradley
Copy link
Contributor

evan-bradley commented Aug 6, 2024

Thanks for the reports everyone. I just merged a change that should fix this. I'll keep an eye out, but please feel free to say something if you see another failure on a branch that has been based off this commit.

@odubajDT
Copy link
Contributor

The issue seems to be resolved, this ticket may be closed

@crobert-1
Copy link
Member Author

Thanks for the update @odubajDT, agreed that this can be closed. Resolved by #34338.

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 priority:p1 High processor/transform Transform processor
Projects
None yet
Development

No branches or pull requests

5 participants