Skip to content

[8.x] Observability AI Assistant Tests Deployment Agnostic (#205194)#206516

Merged
arturoliduena merged 2 commits intoelastic:8.xfrom
arturoliduena:backport/8.x/pr-205194
Jan 13, 2025
Merged

[8.x] Observability AI Assistant Tests Deployment Agnostic (#205194)#206516
arturoliduena merged 2 commits intoelastic:8.xfrom
arturoliduena:backport/8.x/pr-205194

Conversation

@arturoliduena
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

Closes elastic#192718

## Summary

This PR add a deployment-agnostic testing environment for Observability
AI Assistant tests by unifying the duplicated tests for stateful and
serverless environments. It create the ObservabilityAIAssistantApiClient
to work seamlessly in both environments, enabling a single test to run
across stateful, CI, and MKI.

Initial efforts focus on deduplicating the `conversations.spec.ts` and
`connectors.spec.ts` files, as these already run in all environments.

Move / dedup the tests that exist in stateful and serverless. They run
in serverless CI but not MKI and add the skipMki tag.
`chat.spec.ts`
`complete.spec.ts`
`elasticsearch.spec.ts`
`public_complete.spec.ts`
`alerts.spec.ts`
`knowledge_base_setup.spec.ts`
`knowledge_base_status.spec.ts`
`knowledge_base.spec.ts`
`summarize.ts`
`knowledge_base_user_instructions.spec.ts`

(cherry picked from commit ee6c5bd)

# Conflicts:
#	.github/CODEOWNERS
#	x-pack/test_serverless/tsconfig.json
@arturoliduena arturoliduena added the backport This PR is a backport of another PR label Jan 13, 2025
@arturoliduena arturoliduena enabled auto-merge (squash) January 13, 2025 21:23
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant labels Jan 13, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jan 13, 2025

💚 Build Succeeded

  • Buildkite Build
  • Commit: e2a1302
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-206516-e2a1302c9cf3

Metrics [docs]

✅ unchanged

History

@arturoliduena arturoliduena merged commit d7b26dc into elastic:8.x Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants