elastic / kibana

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

Failing test: Jest Tests.x-pack/plugins/search_playground/public/hooks - useSourceIndicesFields Hook should handle addIndex correctly changing indices #188840

Open kibanamachine opened 1 month ago

kibanamachine commented 1 month ago

A test failed on a tracked branch

Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `useSourceIndicesFields Hook should handle addIndex correctly changing indices 2`

- Snapshot  - 15
+ Received  +  3

@@ -2,30 +2,18 @@
    "doc_size": 3,
    "elasticsearch_query": Object {
      "retriever": Object {
        "standard": Object {
          "query": Object {
-           "sparse_vector": Object {
-             "field": "field1",
-             "inference_id": "model1",
-             "query": "{query}",
-           },
+           "match_all": Object {},
          },
        },
      },
    },
    "indices": Array [
      "newIndex",
    ],
    "prompt": "You are an assistant for question-answering tasks.",
-   "query_fields": Object {
-     "newIndex": Array [
-       "field1",
-     ],
-   },
-   "source_fields": Object {
-     "newIndex": Array [
-       "field1",
-     ],
-   },
+   "query_fields": Object {},
+   "source_fields": Object {},
    "summarization_model": undefined,
  }
    at toMatchInlineSnapshot (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721650058591341921/elastic/kibana-on-merge/kibana/x-pack/plugins/search_playground/public/hooks/use_source_indices_fields.test.tsx:113:27)
    at batchedUpdates (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721650058591341921/elastic/kibana-on-merge/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13452:12)
    at act (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721650058591341921/elastic/kibana-on-merge/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15280:14)
    at Object.<anonymous> (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721650058591341921/elastic/kibana-on-merge/kibana/x-pack/plugins/search_playground/public/hooks/use_source_indices_fields.test.tsx:112:14)

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

jbudz commented 1 month ago

Skipped

main: https://github.com/elastic/kibana/commit/06b111d9931e1d4c60788ece072baeca7ba12f0f

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

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main

kibanamachine commented 1 month ago

New failure: kibana-on-merge - main