elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.67k stars 8.23k forks source link

Failing test: Jest Tests.x-pack/plugins/security_solution/public/attack_discovery/pages - AttackDiscovery when connectors are NOT configured and didInitialFetch is false does NOT render attack discoveries #196408

Open kibanamachine opened 1 month ago

kibanamachine commented 1 month ago

A test failed on a tracked branch

TypeError: (0 , _reactUse.useLocalStorage) is not a function or its return value is not iterable
    at SettingsModalComponent (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/public/attack_discovery/pages/header/settings_modal/index.tsx:70:66)
    at renderWithHooks (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:14985:18)
    at updateFunctionComponent (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:17356:20)
    at updateSimpleMemoComponent (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:17215:10)
    at updateMemoComponent (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:17092:14)
    at beginWork (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:19135:16)
    at HTMLUnknownElement.callCallback (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:3945:14)
    at HTMLUnknownElement.callTheUserObjectsOperation (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
    at innerInvokeEventListeners (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
    at invokeEventListeners (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:3994:16)
    at invokeGuardedCallback (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:4056:31)
    at beginWork$1 (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:23964:7)
    at performUnitOfWork (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22779:12)
    at workLoopSync (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22707:5)
    at renderRootSync (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22670:7)
    at performSyncWorkOnRoot (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22293:18)
    at scheduleUpdateOnFiber (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:21881:7)
    at updateContainer (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:25482:3)
    at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:26021:7
    at unbatchedUpdates (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22431:12)
    at legacyRenderSubtreeIntoContainer (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:26020:5)
    at Object.render (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:26103:10)
    at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/@testing-library/react/dist/pure.js:101:25
    at batchedUpdates$1 (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22380:12)
    at act (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
    at render (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/@testing-library/react/dist/pure.js:97:26)
    at Object.<anonymous> (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/x-pack/plugins/security_solution/public/attack_discovery/pages/index.test.tsx:425:13)
    at Promise.then.completed (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:281:40)
    at _runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:121:9)
    at run (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1729012282494935342/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: kibana-on-merge - main

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main