Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_gen_ai/inference/tests/index·ts - Inference plugin - API integration tests Connector bedrock-claude-3-5-sonnet chatComplete API streaming enabled executes a tool when explicitly requested #203062

Closed
kibanamachine opened this issue Dec 5, 2024 · 4 comments · Fixed by #203369
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:AI Infra AppEx AI Infrastructure Team

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 5, 2024

A test failed on a tracked branch

TypeError: Cannot read properties of undefined (reading 'length')
    at Context.<anonymous> (chat_complete.ts:204:34)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.apply (wrap_function.js:74:16)

First failure: kibana-on-merge - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Dec 5, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 5, 2024
@kibanamachine kibanamachine added the Team:AI Infra AppEx AI Infrastructure Team label Dec 5, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-ai-infra (Team:AI Infra)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 5, 2024
@pgayvallet
Copy link
Contributor

Similar to #203064 - was caused by a temporary bedrock service outage.

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

@legrego
Copy link
Member

legrego commented Dec 5, 2024

Latest failure ^ looks to be the same:

[00:00:00]  
[00:00:00]   â””-: Inference plugin - API integration tests
[00:00:00]     â””-> "before all" hook: beforeTestSuite.trigger in "Inference plugin - API integration tests"
[00:00:32]     â””-: Connector bedrock-claude-3-5-sonnet
[00:00:32]       â””-> "before all" hook: beforeTestSuite.trigger in "Connector bedrock-claude-3-5-sonnet"
[00:00:32]       â””-: chatComplete API
[00:00:32]         â””-> "before all" hook: beforeTestSuite.trigger in "chatComplete API"
[00:00:43]         â””-: streaming enabled
[00:00:43]           â””-> "before all" hook: beforeTestSuite.trigger for "returns a chat completion message for a simple prompt"
[00:00:43]           â””-> returns a chat completion message for a simple prompt
[00:00:43]             â””-> "before each" hook: global before each for "returns a chat completion message for a simple prompt"
[00:00:43]             │ proc [kibana] [2024-12-05T18:47:51.002+00:00][WARN ][http.server.kbn-internal-api-restricted] Access to uri [/internal/inference/chat_complete/stream] with method [post] is deprecated {"service":{"node":{"roles":["background_tasks","ui"]}}}
[00:00:48]             └- ✓ pass  (4.9s)
[00:00:48]           â””-> executes a tool when explicitly requested
[00:00:48]             â””-> "before each" hook: global before each for "executes a tool when explicitly requested"
[00:00:48]             │ proc [kibana] [2024-12-05T18:47:55.908+00:00][WARN ][http.server.kbn-internal-api-restricted] Access to uri [/internal/inference/chat_complete/stream] with method [post] is deprecated {"service":{"node":{"roles":["background_tasks","ui"]}}}
[00:00:52]             │ proc [kibana] [2024-12-05T18:47:59.638+00:00][ERROR][plugins.inference.chatComplete] Error: Encountered error in Bedrock stream of type serviceUnavailableException
[00:00:52]             │ proc [kibana] Bedrock is unable to process your request.
[00:00:52]             │ proc [kibana]     at createInferenceInternalError (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733423946255724876/elastic/kibana-on-merge/kibana-build-xpack/node_modules/@kbn/inference-common/src/errors.js:49:10)
[00:00:52]             │ proc [kibana]     at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1733423946255724876/elastic/kibana-on-merge/kibana-build-xpack/node_modules/@kbn/inference-plugin/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.js:48:69
[00:00:52]             │ proc [kibana]     at processTicksAndRejections (node:internal/process/task_queues:95:5) {"service":{"node":{"roles":["background_tasks","ui"]}}}
[00:00:52]             │ info Taking window screenshot "/opt/buildkite-agent/builds/bk-agent-prod-gcp-1733423946255724876/elastic/kibana-on-merge/kibana/x-pack/test/functional/screenshots/failure/Inference plugin - API integration tests Connector bedrock-claude-3-5-sonnet cha-8f9597ece72839087f620732258141ef0f75c9da0f0c75ec346e525f63a9dbc2.png"
[00:00:52]             │ info Current URL is: data:,
[00:00:52]             │ info Saving page source to: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1733423946255724876/elastic/kibana-on-merge/kibana/x-pack/test/functional/failure_debug/html/Inference plugin - API integration tests Connector bedrock-claude-3-5-sonnet cha-8f9597ece72839087f620732258141ef0f75c9da0f0c75ec346e525f63a9dbc2.html
[00:00:52]             └- ✖ fail: Inference plugin - API integration tests Connector bedrock-claude-3-5-sonnet chatComplete API streaming enabled executes a tool when explicitly requested
[00:00:52]             │      TypeError: Cannot read properties of undefined (reading 'length')
[00:00:52]             │       at Context.<anonymous> (chat_complete.ts:204:34)
[00:00:52]             │       at processTicksAndRejections (node:internal/process/task_queues:95:5)
[00:00:52]             │       at Object.apply (wrap_function.js:74:16)
[00:00:52]             │ 
[00:00:52]             │ 

Given the apparent frequency so far, we may want to look into ways of gracefully handling this within our test infrastructure.

pgayvallet added a commit to pgayvallet/kibana that referenced this issue Dec 9, 2024
## Summary

Part of elastic/kibana-team#1271
Follow-up of elastic#198000

Fix elastic#203205
Fix elastic#203062

- Fix the problem with the Gemini token count events
- Unskip the test suite
- Remove the suite from the `on-merge` pipeline
- Add a dedicated pipeline to run the tests daily

(cherry picked from commit 1f2a76a)

# Conflicts:
#	.buildkite/pipeline-resource-definitions/locations.yml
#	.buildkite/pipelines/on_merge.yml
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 9, 2024
## Summary

Part of elastic/kibana-team#1271
Follow-up of elastic#198000

Fix elastic#203205
Fix elastic#203062

- Fix the problem with the Gemini token count events 
- Unskip the test suite
- Remove the suite from the `on-merge` pipeline
- Add a dedicated pipeline to run the tests daily
Samiul-TheSoccerFan pushed a commit to Samiul-TheSoccerFan/kibana that referenced this issue Dec 10, 2024
## Summary

Part of elastic/kibana-team#1271
Follow-up of elastic#198000

Fix elastic#203205
Fix elastic#203062

- Fix the problem with the Gemini token count events 
- Unskip the test suite
- Remove the suite from the `on-merge` pipeline
- Add a dedicated pipeline to run the tests daily
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 12, 2024
## Summary

Part of elastic/kibana-team#1271
Follow-up of elastic#198000

Fix elastic#203205
Fix elastic#203062

- Fix the problem with the Gemini token count events 
- Unskip the test suite
- Remove the suite from the `on-merge` pipeline
- Add a dedicated pipeline to run the tests daily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:AI Infra AppEx AI Infrastructure Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants