-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Obs AI Assistant] Make API tests more resilient #220503
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
Conversation
| await esClient.asInternalUser.indices.create({ | ||
| index: indexName, | ||
| mappings: { | ||
| properties: { | ||
| semantic_text: { | ||
| type: 'semantic_text', | ||
| inference_id: inferenceId, | ||
| }, | ||
| }, | ||
| }, | ||
| }); | ||
| await esClient.asInternalUser.indices.create({ index: indexName }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah my bad, thanks for updating this @sorenlouv 🙏🏻
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#8253[❌] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 99/100 tests passed. |
|
|
||
| before(async () => { | ||
| // setup KB initially | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
Starting backport for target branches: 8.19 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
This PR aims to make API test more resilient by improving logging and utilities gracefully handling known errors. (cherry picked from commit 3743f7d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…20565) # Backport This will backport the following commits from `main` to `8.19`: - [[Obs AI Assistant] Make API tests more resilient (#220503)](#220503) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Søren Louv-Jansen","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-05-08T17:45:18Z","message":"[Obs AI Assistant] Make API tests more resilient (#220503)\n\nThis PR aims to make API test more resilient by improving logging and\nutilities gracefully handling known errors.","sha":"3743f7d46598407a80030297531deb48707cfcda","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Make API tests more resilient","number":220503,"url":"https://github.com/elastic/kibana/pull/220503","mergeCommit":{"message":"[Obs AI Assistant] Make API tests more resilient (#220503)\n\nThis PR aims to make API test more resilient by improving logging and\nutilities gracefully handling known errors.","sha":"3743f7d46598407a80030297531deb48707cfcda"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/220503","number":220503,"mergeCommit":{"message":"[Obs AI Assistant] Make API tests more resilient (#220503)\n\nThis PR aims to make API test more resilient by improving logging and\nutilities gracefully handling known errors.","sha":"3743f7d46598407a80030297531deb48707cfcda"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
This PR aims to make API test more resilient by improving logging and utilities gracefully handling known errors.
This PR aims to make API test more resilient by improving logging and utilities gracefully handling known errors.
This PR aims to make API test more resilient by improving logging and utilities gracefully handling known errors.
This PR aims to make API test more resilient by improving logging and utilities gracefully handling known errors.