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/threat_intelligence/public/components - <UpdateStatus /> should render Updated now #186996

Open kibanamachine opened 4 months ago

kibanamachine commented 4 months ago

A test failed on a tracked branch

Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `<UpdateStatus /> should render Updated now 1`

- Snapshot  - 1
+ Received  + 1

@@ -7,10 +7,10 @@
      >
        <div
          class="euiText emotion-euiText-xs-euiTextColor-subdued"
          data-test-subj="updateStatus"
        >
-         Updated now
+         Updated 1 second ago
        </div>
      </div>
    </div>
  </DocumentFragment>
    at Object.toMatchInlineSnapshot (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/x-pack/plugins/threat_intelligence/public/components/update_status.test.tsx:19:33)
    at Promise.then.completed (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:300:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:233:10)
    at _callCircusTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:314:40)
    at _runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:250:3)
    at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:125:9)
    at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:120:9)
    at run (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:70:3)
    at runAndTransformResultsToJestFormat (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/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-1719412654552890814/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-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1719412654552890814/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: kibana-on-merge - main

elasticmachine commented 4 months ago

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

kibanamachine commented 4 months ago

New failure: kibana-on-merge - main

kibanamachine commented 3 months ago

New failure: kibana-on-merge - main

delanni commented 3 months ago

This seems like it's going to get flaky, because the timing would always be imprecise, and can always fall on a turn of a second. An easy workaround is retries baked into the test case, a more solid solution would be mocked timers. Until then, skipping the test to get some attention to it.

delanni commented 3 months ago

/skip