Skip to content

[Failed test][testbed] TestSyslogComplementaryRFC3164 failed all the time #38238

Open
@songy23

Description

@songy23

Component(s)

testbed

Describe the issue you're reporting

e.g. https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13527902261/job/37823788519#logs

Error:      	Not equal: 
        	            	expected: plog.Logs{orig:(*v1.ExportLogsServiceRequest)(0xc000896318), state:(*internal.State)(0xc0007200bc)}
        	            	actual  : plog.Logs{orig:(*v1.ExportLogsServiceRequest)(0xc000bc28a0), state:(*internal.State)(0xc000564b4c)}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -19,9 +19,9 @@
        	            	        (*v1.LogRecord)({
        	            	-        TimeUnixNano: (uint64) 1697062455000000000,
        	            	+        TimeUnixNano: (uint64) 0,
        	            	         ObservedTimeUnixNano: (uint64) 0,
        	            	-        SeverityNumber: (v1.SeverityNumber) 18,
        	            	-        SeverityText: (string) (len=4) "crit",
        	            	+        SeverityNumber: (v1.SeverityNumber) 0,
        	            	+        SeverityText: (string) "",
        	            	         Body: (v1.AnyValue) {
        	            	          Value: (*v1.AnyValue_StringValue)({
        	            	-          StringValue: (string) (len=[81](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13527902261/job/37823788519#step:10:82)) "<34>Oct 11 2023 22:14:15 mymachine su: 'su root' failed for lonvick on /dev/pts/8"
        	            	+          StringValue: (string) (len=22) "<165>Jan 01 00:00:00 -"
        	            	          })
        	            	@@ -40,9 +40,9 @@
        	            	        (*v1.LogRecord)({
        	            	-        TimeUnixNano: (uint64) 1697062455000000000,
        	            	+        TimeUnixNano: (uint64) 0,
        	            	         ObservedTimeUnixNano: (uint64) 0,
        	            	-        SeverityNumber: (v1.SeverityNumber) 17,
        	            	-        SeverityText: (string) (len=3) "err",
        	            	+        SeverityNumber: (v1.SeverityNumber) 0,
        	            	+        SeverityText: (string) "",
        	            	         Body: (v1.AnyValue) {
        	            	          Value: (*v1.AnyValue_StringValue)({
        	            	-          StringValue: (string) (len=28) "<19>Oct 11 2023 22:14:15 - -"
        	            	+          StringValue: (string) (len=22) "<165>Jan 01 00:00:00 -"
        	            	          })
        	Test:       	TestSyslogComplementaryRFC3164
    syslog_integration_test.go:203: 
        	Error Trace:	/home/ghrunner/actions-runner/_work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/testbed/tests/syslog_integration_test.go:203
        	            				/home/ghrunner/actions-runner/_work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/testbed/tests/syslog_integration_test.go:[97](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13527902261/job/37823788519#step:10:98)
        	Error:      	Not equal: 
        	            	expected: []map[string]interface {}{map[string]interface {}{"appname":"su", "facility":4, "hostname":"mymachine", "message":"'su root' failed for lonvick on /dev/pts/8", "priority":34}, map[string]interface {}{"facility":2, "message":"-", "priority":19}}
        	            	actual  : []map[string]interface {}{map[string]interface {}{}, map[string]interface {}{}}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,13 +1,5 @@
        	            	 ([]map[string]interface {}) (len=2) {
        	            	- (map[string]interface {}) (len=5) {
        	            	-  (string) (len=7) "appname": (string) (len=2) "su",
        	            	-  (string) (len=8) "facility": (int64) 4,
        	            	-  (string) (len=8) "hostname": (string) (len=9) "mymachine",
        	            	-  (string) (len=7) "message": (string) (len=42) "'su root' failed for lonvick on /dev/pts/8",
        	            	-  (string) (len=8) "priority": (int64) 34
        	            	+ (map[string]interface {}) {
        	            	  },
        	            	- (map[string]interface {}) (len=3) {
        	            	-  (string) (len=8) "facility": (int64) 2,
        	            	-  (string) (len=7) "message": (string) (len=1) "-",
        	            	-  (string) (len=8) "priority": (int64) 19
        	            	+ (map[string]interface {}) {
        	            	  }
        	Test:       	TestSyslogComplementaryRFC3164

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions