policyfilter test failure on bpf-next
kkourt opened this issue · comments
=== RUN TestK8s
=== RUN TestK8s/namespaces
=== RUN TestK8s/pod_labels
map_test.go:24:
Error Trace: /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/policyfilter/map_test.go:24
/home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/policyfilter/k8s_test.go:429
/home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/policyfilter/k8s_test.go:773
Error: Not equal:
expected: map[policyfilter.PolicyID]map[policyfilter.CgroupID]struct {}{0x1:map[policyfilter.CgroupID]struct {}{0x3c12b25a44aff3ec:struct {}{}, 0x3c2746fd7b823f78:struct {}{}, 0x41741c658872581d:struct {}{}, 0xf902e3c713283c61:struct {}{}}, 0x2:map[policyfilter.CgroupID]struct {}{0x41741c658872581d:struct {}{}, 0xf902e3c713283c61:struct {}{}}, 0x3:map[policyfilter.CgroupID]struct {}{0x3c12b25a44aff3ec:struct {}{}, 0x41741c658872581d:struct {}{}, 0xf902e3c713283c61:struct {}{}}}
actual : map[policyfilter.PolicyID]map[policyfilter.CgroupID]struct {}{0x1:map[policyfilter.CgroupID]struct {}{0x3c12b25a44aff3ec:struct {}{}, 0x41741c658872581d:struct {}{}, 0xf902e3c713283c61:struct {}{}}, 0x2:map[policyfilter.CgroupID]struct {}{0x41741c658872581d:struct {}{}, 0xf902e3c713283c61:struct {}{}}, 0x3:map[policyfilter.CgroupID]struct {}{0x3c12b25a44aff3ec:struct {}{}, 0x41741c658872581d:struct {}{}, 0xf902e3c713283c61:struct {}{}}}
Diff:
--- Expected
+++ Actual
@@ -1,6 +1,4 @@
(map[policyfilter.PolicyID]map[policyfilter.CgroupID]struct {}) (len=3) {
- (policyfilter.PolicyID) 1: (map[policyfilter.CgroupID]struct {}) (len=4) {
+ (policyfilter.PolicyID) 1: (map[policyfilter.CgroupID]struct {}) (len=3) {
(policyfilter.CgroupID) 4328718292625650668: (struct {}) {
- },
- (policyfilter.CgroupID) 4334511220880195448: (struct {}) {
},
Test: TestK8s/pod_labels
=== RUN TestK8s/container_fields
k8s_test.go:496:
Error Trace: /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/policyfilter/k8s_test.go:496
/home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/policyfilter/k8s_test.go:777
Error: Received unexpected error:
policy with id 1 already exists: not adding new one
Test: TestK8s/container_fields
=== RUN TestK8s/pre-existing_pods
k8s_test.go:186: error injecting pod add: pods "web" already exists
=== RUN TestK8s/containers_change
k8s_test.go:186: error injecting pod add: pods "web" already exists
--- FAIL: TestK8s (0.24s)
--- PASS: TestK8s/namespaces (0.05s)
--- FAIL: TestK8s/pod_labels (0.02s)
--- FAIL: TestK8s/container_fields (0.00s)
--- FAIL: TestK8s/pre-existing_pods (0.00s)
--- FAIL: TestK8s/containers_change (0.00s)
FAIL