Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5692

BDD tests crashing due to concurrency issue

XMLWordPrintable

    • 2021 Week 31-33 (from Aug 2), 2021 Week 34-36 (from Aug 23), 2021 Week 37-39 (from Sep 13)

      Does not happen often but it crashes the whole testing when it happens:

      panic: reflect: slice index out of range [recovered] panic: reflect: slice index out of range goroutine 440 [running]: encoding/json.(*encodeState).marshal.func1(0xc001669a00) /usr/local/go/src/encoding/json/encode.go:326 +0x9a panic(0x1b309c0, 0x218d800) /usr/local/go/src/runtime/panic.go:967 +0x15d reflect.Value.Index(0x1ad6ce0, 0xc000c7a3d8, 0x197, 0x1, 0x1d30100, 0xc000d5e000, 0x199) /usr/local/go/src/reflect/value.go:939 +0x1e7 encoding/json.arrayEncoder.encode(0xc0009bb680, 0xc00026ba00, 0x1ad6ce0, 0xc000c7a3d8, 0x197, 0x100) /usr/local/go/src/encoding/json/encode.go:885 +0x8d encoding/json.sliceEncoder.encode(0xc000cd57a0, 0xc00026ba00, 0x1ad6ce0, 0xc000c7a3d8, 0x197, 0x100) /usr/local/go/src/encoding/json/encode.go:859 +0x8f encoding/json.structEncoder.encode(0xc0052e9680, 0x4, 0x4, 0xc0009bb6b0, 0xc00026ba00, 0x1c95960, 0xc000c7a380, 0x199, 0x1bb0100) /usr/local/go/src/encoding/json/encode.go:758 +0x2bb encoding/json.ptrEncoder.encode(0xc0009bb6e0, 0xc00026ba00, 0x1d52ce0, 0xc000c7a380, 0x16, 0x1d50100) /usr/local/go/src/encoding/json/encode.go:914 +0x116 encoding/json.(*encodeState).reflectValue(0xc00026ba00, 0x1d52ce0, 0xc000c7a380, 0x16, 0xc001660100) /usr/local/go/src/encoding/json/encode.go:358 +0x82 encoding/json.(*encodeState).marshal(0xc00026ba00, 0x1d52ce0, 0xc000c7a380, 0x100, 0x0, 0x0) /usr/local/go/src/encoding/json/encode.go:330 +0xf0 encoding/json.Marshal(0x1d52ce0, 0xc000c7a380, 0xc00008c700, 0x7f6adaa46560, 0xc002271240, 0xc000130018, 0xc001669ad0) /usr/local/go/src/encoding/json/encode.go:161 +0x52 encoding/json.MarshalIndent(0x1d52ce0, 0xc000c7a380, 0x0, 0x0, 0x1e44215, 0x2, 0x0, 0x0, 0x4, 0xc011305ef0, ...) /usr/local/go/src/encoding/json/encode.go:176 +0x3f github.com/kiegroup/kogito-operator/test/pkg/framework.LogKubernetesObjects(0xc000966460, 0x15, 0xc0010dd900, 0x1e, 0x28, 0x1873254, 0xc00521a020) /home/jenkins/agent/workspace/kogito/kogito-operator-PR-check/test/pkg/framework/logging.go:466 +0x461 github.com/kiegroup/kogito-operator/test/pkg/steps.(*Data).AfterScenario.func1(0xc000966460, 0x15, 0xc0009f3401, 0x0) /home/jenkins/agent/workspace/kogito/kogito-operator-PR-check/test/pkg/steps/data.go:144 +0x10e github.com/kiegroup/kogito-operator/test/pkg/framework.OperateOnNamespaceIfExists(0xc000966460, 0x15, 0xc001073da8, 0xc0009574a0, 0xc000ab3dd0) /home/jenkins/agent/workspace/kogito/kogito-operator-PR-check/test/pkg/framework/namespace.go:84 +0xe0 github.com/kiegroup/kogito-operator/test/pkg/steps.(*Data).AfterScenario(0xc000a24050, 0xc0005658c0, 0x0, 0x0, 0xc0003e0160, 0xc0005658c0) /home/jenkins/agent/workspace/kogito/kogito-operator-PR-check/test/pkg/steps/data.go:134 +0x5e github.com/kiegroup/kogito-operator/test/pkg/executor.initializeScenario.func2(0xc0005658c0, 0x0, 0x0) /home/jenkins/agent/workspace/kogito/kogito-operator-PR-check/test/pkg/executor/bdd_executor.go:218 +0x78 github.com/cucumber/godog.(*suite).runPickle(0xc0003e0160, 0xc0005658c0, 0x0, 0x0) /home/jenkins/go/pkg/mod/github.com/cucumber/godog@v0.11.0/suite.go:288 +0x259 github.com/cucumber/godog.(*runner).concurrent.func1(0xc000a0f4d0, 0xc000619950, 0xc000a08270, 0xc000a08268, 0xc0005658c0) /home/jenkins/go/pkg/mod/github.com/cucumber/godog@v0.11.0/run.go:111 +0xe2 created by github.com/cucumber/godog.(*runner).concurrent /home/jenkins/go/pkg/mod/github.com/cucumber/godog@v0.11.0/run.go:90 +0x284 FAIL github.com/kiegroup/kogito-operator/test 129.188s FAIL Tests finished with code 1
      

              tradisso@redhat.com Tristan Radisson
              tradisso@redhat.com Tristan Radisson
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: