Skip to content

fix(meshtrafficpermission): nil pointer for autoreachableservice when no top targetRef (backport of #12152) #9590

fix(meshtrafficpermission): nil pointer for autoreachableservice when no top targetRef (backport of #12152)

fix(meshtrafficpermission): nil pointer for autoreachableservice when no top targetRef (backport of #12152) #9590

Triggered via pull request December 3, 2024 17:01
Status Failure
Total duration 10m 40s
Artifacts

build-test-distribute.yaml

on: pull_request
Matrix: test_e2e
Waiting for pending jobs
Matrix: test_e2e_env
distributions
3s
distributions
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 6 warnings
test: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L8
no required module provides package github.com/kumahq/kuma/pkg/core/resources/apis/meshservice/api/v1alpha1; to add it:
test: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L12
no required module provides package github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph/util; to add it:
test: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L8
no required module provides package github.com/kumahq/kuma/pkg/core/resources/apis/meshservice/api/v1alpha1; to add it:
test: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L12
no required module provides package github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph/util; to add it:
test
Process completed with exit code 2.
test_e2e_env (multizone, v1.28.1-k3s1, amd64, 1, flannel, false) / e2e (0): pkg/plugins/policies/meshtrafficpermission/graph/reachable_services_graph.go#L157
invalid operation: mtp.Spec.TargetRef != nil (mismatched types "github.com/kumahq/kuma/api/common/v1alpha1".TargetRef and untyped nil)
test_e2e_env (multizone, v1.28.1-k3s1, amd64, 1, flannel, false) / e2e (0)
Process completed with exit code 2.
test_e2e_env (universal, kind, amd64, 1, flannel, false) / e2e (0): pkg/plugins/policies/meshtrafficpermission/graph/reachable_services_graph.go#L157
invalid operation: mtp.Spec.TargetRef != nil (mismatched types "github.com/kumahq/kuma/api/common/v1alpha1".TargetRef and untyped nil)
test_e2e_env (universal, kind, amd64, 1, flannel, false) / e2e (0)
Process completed with exit code 2.
test_e2e_env (kubernetes, v1.28.1-k3s1, amd64, 1, flannel, false) / e2e (0): pkg/plugins/policies/meshtrafficpermission/graph/reachable_services_graph.go#L157
invalid operation: mtp.Spec.TargetRef != nil (mismatched types "github.com/kumahq/kuma/api/common/v1alpha1".TargetRef and untyped nil)
test_e2e_env (kubernetes, v1.28.1-k3s1, amd64, 1, flannel, false) / e2e (0)
Process completed with exit code 2.
check: pkg/plugins/policies/meshtrafficpermission/graph/reachable_services_graph.go#L1
: # github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph
check: pkg/plugins/policies/meshtrafficpermission/graph/reachable_services_graph.go#L157
invalid operation: mtp.Spec.TargetRef != nil (mismatched types "github.com/kumahq/kuma/api/common/v1alpha1".TargetRef and untyped nil) (typecheck)
check: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L17
undefined: core_model.TypedResourceIdentifier (typecheck)
check: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L18
undefined: core_model.TypedResourceIdentifier (typecheck)
check: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L20
cannot infer M (/opt/hostedtoolcache/go/1.22.9/x64/src/maps/maps.go:41:12) (typecheck)
check: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L35
undefined: core_model.NewTypedResourceIdentifier (typecheck)
check: pkg/plugins/policies/meshtrafficpermission/graph/backends/reachable_backend_refs_graph.go#L44
invalid operation: mtp.Spec.TargetRef != nil (mismatched types "github.com/kumahq/kuma/api/common/v1alpha1".TargetRef and untyped nil) (typecheck)
check: pkg/core/bootstrap/bootstrap.go#L52
could not import github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph (-: # github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph
check: pkg/plugins/policies/meshtrafficpermission/graph/reachable_services_graph.go#L157
invalid operation: mtp.Spec.TargetRef != nil (mismatched types "github.com/kumahq/kuma/api/common/v1alpha1".TargetRef and untyped nil)) (typecheck)
check: pkg/plugins/policies/meshtrafficpermission/graph/reachable_backend_refs_graph_test.go#L13
could not import github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph (-: # github.com/kumahq/kuma/pkg/plugins/policies/meshtrafficpermission/graph
distributions
Process completed with exit code 1.
gen_e2e_matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test_e2e_env (multizone, v1.28.1-k3s1, amd64, 1, flannel, false) / e2e (0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test_e2e_env (universal, kind, amd64, 1, flannel, false) / e2e (0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test_e2e_env (kubernetes, v1.28.1-k3s1, amd64, 1, flannel, false) / e2e (0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636