Closed
Description
Flaky Test
- Test Name: Build&Test / libbeat-build / TestAutodiscoverWithMutlipleEntries – autodiscover
- Link:
- Branch: Seen in Ensure mage is installed to the expected version #23313, reproduced in master.
- Notes:
- May be related to Honor kube event resysncs to handle missed watch events #22668.
- According to the comments in the test, this can be an actual bug, because it seems that events are being received in wrong order (or multiple times?).
- It can be reproduced locally with
go test -count 10 -run TestAutodiscoverWithMutlipleEntries ./libbeat/autodiscover/
Stack Trace
autodiscover_test.go:447:
Error Trace: autodiscover_test.go:447
Error: Not equal:
expected: &common.Config{ctx:ucfg.context{parent:ucfg.value(nil), field:""}, metadata:(*ucfg.Meta)(nil), fields:(*ucfg.fields)(0xc00009bc00)}
actual : &common.Config{ctx:ucfg.context{parent:ucfg.value(nil), field:""}, metadata:(*ucfg.Meta)(nil), fields:(*ucfg.fields)(0xc00009bd00)}
Diff:
--- Expected
+++ Actual
@@ -8,3 +8,3 @@
d: (map[string]ucfg.value) (len=1) {
- (string) (len=1) "a": (*ucfg.cfgString)({
+ (string) (len=1) "x": (*ucfg.cfgString)({
cfgPrimitive: (ucfg.cfgPrimitive) {
@@ -14,3 +14,3 @@
},
- field: (string) (len=1) "a"
+ field: (string) (len=1) "x"
},
@@ -18,3 +18,3 @@
},
- s: (string) (len=1) "b"
+ s: (string) (len=1) "y"
})
Test: TestAutodiscoverWithMutlipleEntries
autodiscover_test.go:469:
Error Trace: autodiscover_test.go:469
Error: Not equal:
expected: &common.Config{ctx:ucfg.context{parent:ucfg.value(nil), field:""}, metadata:(*ucfg.Meta)(nil), fields:(*ucfg.fields)(0xc00009bba0)}
actual : &common.Config{ctx:ucfg.context{parent:ucfg.value(nil), field:""}, metadata:(*ucfg.Meta)(nil), fields:(*ucfg.fields)(0xc0005f8c00)}
Diff:
--- Expected
+++ Actual
@@ -8,3 +8,3 @@
d: (map[string]ucfg.value) (len=1) {
- (string) (len=1) "x": (*ucfg.cfgString)({
+ (string) (len=1) "a": (*ucfg.cfgString)({
cfgPrimitive: (ucfg.cfgPrimitive) {
@@ -14,3 +14,3 @@
},
- field: (string) (len=1) "x"
+ field: (string) (len=1) "a"
},
@@ -18,3 +18,3 @@
},
- s: (string) (len=1) "y"
+ s: (string) (len=1) "b"
})
Test: TestAutodiscoverWithMutlipleEntries
autodiscover_test.go:473:
Error Trace: autodiscover_test.go:473
Error: Should be false
Test: TestAutodiscoverWithMutlipleEntries
autodiscover_test.go:515: Waiting for condition