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

policyfilter test failure on bpf-next #2470

Closed
kkourt opened this issue May 25, 2024 · 0 comments · Fixed by #2629
Closed

policyfilter test failure on bpf-next #2470

kkourt opened this issue May 25, 2024 · 0 comments · Fixed by #2629
Assignees

Comments

@kkourt
Copy link
Contributor

kkourt commented May 25, 2024

=== 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

#2469

tetragon-vmtests-bpf-next-20240524.012945-0-results.zip

@kkourt kkourt changed the title polcifiter test FAIL policyfilter test failure on bpf-next May 25, 2024
@kkourt kkourt self-assigned this May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant