Kong / gateway-operator

Kubernetes Operator for Kong Gateways
Apache License 2.0
50 stars 11 forks source link

Flaky `envtest` test: `TestKongSNI` #702

Open pmalek opened 19 hours ago

pmalek commented 19 hours ago

Problem statement

TestKongSNI fails randomly on CI. For some reason, it seems that the deletion operation is not called on the provided sdk object when SNI is deleted:

=== RUN   TestKongSNI
=== PAUSE TestKongSNI
=== CONT  TestKongSNI
    konnect_entities_sni_test.go:32: starting envtest environment for test TestKongSNI...
    konnect_entities_sni_test.go:32: install Kong CRDs from path /Users/patryk.malek@konghq.com/.gvm/pkgsets/go1.23.0/global/pkg/mod/github.com/kong/kubernetes-configuration@v0.0.27/config/crd
    konnect_entities_sni_test.go:32: envtest environment (v1.31.0) started at https://127.0.0.1:52808/
    konnect_entities_sni_test.go:34: Setting up the manager with reconcilers
    konnect_entities_sni_test.go:38: Starting manager for test case TestKongSNI
    konnect_entities_sni_test.go:44: Setting up clients
    konnect_entities_sni_test.go:51: Creating KonnectAPIAuthConfiguration and KonnectGatewayControlPlane
    konnect_entities_sni_test.go:52: deployed new test-56pw8/api-auth-config-xpvxt KonnectAPIAuthConfiguration
    konnect_entities_sni_test.go:53: deployed new test-56pw8/cp-60e25efb KonnectGatewayControlPlane
=== RUN   TestKongSNI/adding,_patching_and_deleting_KongSNI
    konnect_entities_sni_test.go:56: Creating KongCertificate and setting it to Programmed
    konnect_entities_sni_test.go:57: deployed new KongCertificate test-56pw8/cert-npvms
    konnect_entities_sni_test.go:75: Setting up a watch for KongSNI events
    konnect_entities_sni_test.go:78: Setting up SDK for creating SNI
    konnect_entities_sni_test.go:93: deployed KongSNI test-56pw8/sni-281b9e21
    konnect_entities_sni_test.go:100: Waiting for SNI to be programmed and get Konnect ID
    konnect_entities_sni_test.go:108: Set up SDK for SNI update
    konnect_entities_sni_test.go:119: Patching KongSNI
    konnect_entities_sni_test.go:124: Waiting for KongSNI to be updated in the SDK
    konnect_entities_sni_test.go:129: Setting up SDK for deleting SNI
    konnect_entities_sni_test.go:140: Deleting KongSNI
    konnect_entities_sni_test.go:151: Waiting for SNI to be deleted in SDK
=== NAME  TestKongSNI
    konnect_entities_sni_test.go:32: stopping envtest environment for test TestKongSNI
--- PASS: TestKongSNI (8.20s)
    --- PASS: TestKongSNI/adding,_patching_and_deleting_KongSNI (1.79s)
PASS
=== RUN   TestKongSNI
=== PAUSE TestKongSNI
=== CONT  TestKongSNI
    konnect_entities_sni_test.go:32: starting envtest environment for test TestKongSNI...
    konnect_entities_sni_test.go:32: install Kong CRDs from path /Users/patryk.malek@konghq.com/.gvm/pkgsets/go1.23.0/global/pkg/mod/github.com/kong/kubernetes-configuration@v0.0.27/config/crd
    konnect_entities_sni_test.go:32: envtest environment (v1.31.0) started at https://127.0.0.1:53042/
    konnect_entities_sni_test.go:34: Setting up the manager with reconcilers
    konnect_entities_sni_test.go:38: Starting manager for test case TestKongSNI
    konnect_entities_sni_test.go:44: Setting up clients
    konnect_entities_sni_test.go:51: Creating KonnectAPIAuthConfiguration and KonnectGatewayControlPlane
    konnect_entities_sni_test.go:52: deployed new test-5xbgr/api-auth-config-d5pwh KonnectAPIAuthConfiguration
    konnect_entities_sni_test.go:53: deployed new test-5xbgr/cp-f79d875d KonnectGatewayControlPlane
=== RUN   TestKongSNI/adding,_patching_and_deleting_KongSNI
    konnect_entities_sni_test.go:56: Creating KongCertificate and setting it to Programmed
    konnect_entities_sni_test.go:57: deployed new KongCertificate test-5xbgr/cert-zt898
    konnect_entities_sni_test.go:75: Setting up a watch for KongSNI events
    konnect_entities_sni_test.go:78: Setting up SDK for creating SNI
    konnect_entities_sni_test.go:93: deployed KongSNI test-5xbgr/sni-080f2360
    konnect_entities_sni_test.go:100: Waiting for SNI to be programmed and get Konnect ID
    konnect_entities_sni_test.go:108: Set up SDK for SNI update
    konnect_entities_sni_test.go:119: Patching KongSNI
    konnect_entities_sni_test.go:124: Waiting for KongSNI to be updated in the SDK
    konnect_entities_sni_test.go:129: Setting up SDK for deleting SNI
    konnect_entities_sni_test.go:140: Deleting KongSNI
    konnect_entities_sni_test.go:151: Waiting for SNI to be deleted in SDK
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:153: FAIL:     DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    konnect_entities_sni_test.go:153: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/test/envtest/konnect_entities_sni_test.go:153 go/src/runtime/asm_arm64.s:1223]
    konnect_entities_sni_test.go:152:
                Error Trace:    gateway-operator/test/envtest/konnect_entities_sni_test.go:153
                                                        go/src/runtime/asm_arm64.s:1223
                Error:          Should be true
    konnect_entities_sni_test.go:152:
                Error Trace:    gateway-operator/test/envtest/konnect_entities_sni_test.go:152
                Error:          Condition never satisfied
                Test:           TestKongSNI/adding,_patching_and_deleting_KongSNI
=== NAME  TestKongSNI
    controller.go:80: Test TestKongSNI failed: dumping controller logs
    controller.go:80: 2024-10-04T18:30:39+02:00 info    Starting EventSource{"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "source": "kind source: *v1alpha1.KongSNI"}
    controller.go:80: 2024-10-04T18:30:39+02:00 info    Starting EventSource{"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "source": "kind source: *v1alpha1.KongCertificate"}
    controller.go:80: 2024-10-04T18:30:39+02:00 info    Starting Controller{"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI"}
    controller.go:80: 2024-10-04T18:30:39+02:00 info    Starting workers   {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "worker count": 8}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "f346a9b3-afec-4d6b-9a81-fa38eeee4084", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "3a63f05f-6109-413f-9dbf-b9b7c8b63ca4", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "63fe50e0-173e-42bf-bb0e-191cc590006d", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 info    controlplane    operation in Konnect API complete   {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "63fe50e0-173e-42bf-bb0e-191cc590006d", "op": "create", "duration": 0.00022925, "type": "KongSNI", "konnect_id": "sni-12345"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "bd60ee96-1aa2-4c19-8816-48f07377d1da", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "442fa3b8-83ad-474d-b6c7-d114e66eaef2", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "8201020e-0a5d-4611-b73b-236bdfdfd28f", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 info    controlplane    operation in Konnect API complete   {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "8201020e-0a5d-4611-b73b-236bdfdfd28f", "op": "update", "duration": 0.000214, "type": "KongSNI", "konnect_id": "sni-12345"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "5e75c92f-69ea-414b-ab20-a973a56136fc", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    no need for update, requeueing after configured sync period {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "5e75c92f-69ea-414b-ab20-a973a56136fc", "namespace": "test-5xbgr", "name": "sni-080f2360", "last_update": "2024-10-04T18:30:41+02:00", "time_from_last_update": 0.667285, "requeue_after": 3599.332715, "requeue_at": "2024-10-04T19:30:40+02:00"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    reconciling {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "35d530f9-e62c-47bd-b7ff-f3ca2bc79d4c", "namespace": "test-5xbgr", "name": "sni-080f2360"}
    controller.go:80: 2024-10-04T18:30:41+02:00 debug   controlplane    no need for update, requeueing after configured sync period {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI", "KongSNI": {"name":"sni-080f2360","namespace":"test-5xbgr"}, "namespace": "test-5xbgr", "name": "sni-080f2360", "reconcileID": "35d530f9-e62c-47bd-b7ff-f3ca2bc79d4c", "namespace": "test-5xbgr", "name": "sni-080f2360", "last_update": "2024-10-04T18:30:41+02:00", "time_from_last_update": 0.687746, "requeue_after": 3599.312254, "requeue_at": "2024-10-04T19:30:41+02:00"}
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Stopping and waiting for non leader election runnables
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Stopping and waiting for leader election runnables
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Shutdown signal received, waiting for all workers to finish {"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI"}
    controller.go:80: 2024-10-04T18:30:52+02:00 info    All workers finished{"controller": "KongSNI", "controllerGroup": "configuration.konghq.com", "controllerKind": "KongSNI"}
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Stopping and waiting for caches
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Stopping and waiting for webhooks
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Stopping and waiting for HTTP servers
    controller.go:80: 2024-10-04T18:30:52+02:00 info    Wait completed, proceeding to shutdown the manager
    kongsni_mock.go:256: FAIL:  DeleteSniWithCertificate(string,operations.DeleteSniWithCertificateRequest)
                        at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:146 gateway-operator/test/envtest/konnect_entities_sni_test.go:131]
    kongsni_mock.go:256: FAIL: 2 out of 3 expectation(s) were met.
                The code you are testing needs to make 1 more call(s).
                at: [gateway-operator/controller/konnect/ops/kongsni_mock.go:256 go/src/testing/testing.go:1176 go/src/testing/testing.go:1354 go/src/testing/testing.go:1684]
    konnect_entities_sni_test.go:32: stopping envtest environment for test TestKongSNI
--- FAIL: TestKongSNI (17.01s)
    --- FAIL: TestKongSNI/adding,_patching_and_deleting_KongSNI (11.30s)
FAIL

BuildPulse link: https://app.buildpulse.io/@Kong/gateway-operator/tests/24827529252?filter_results_type=flaky

pmalek commented 15 hours ago

Happened again in https://github.com/Kong/gateway-operator/actions/runs/11215121735/job/31171684031?pr=707