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

[Obs AI Assistant] Deployment agnostic API integration tests #192718

Closed
neptunian opened this issue Sep 12, 2024 · 6 comments · Fixed by #205194
Closed

[Obs AI Assistant] Deployment agnostic API integration tests #192718

neptunian opened this issue Sep 12, 2024 · 6 comments · Fixed by #205194
Assignees
Labels
Team:Obs AI Assistant Observability AI Assistant

Comments

@neptunian
Copy link
Contributor

neptunian commented Sep 12, 2024

Create a deployment agnostic testing environment for obs ai assistant tests. Currently tests are duplicated between stateful and serverless with most skipped in MKI.

  • Make ObservabilityAIAssistantApiClient deployment agnostic so a single test can work in stateful and serverless using the client

  • Start with moving / deduping the tests that meet the actual definition of deployment agnostic which is to run in stateful, CI and MKI. Start with the following files because they are running in all environments

    • conversations.spec.ts
    • connectors.spec.ts
    • knowledge_base_setup.spec.ts
  • Move / dedup the rest of the tests that exist in stateful and serverless. They run in serverless CI but not MKI and add the failsOnMKI tag. This is a temporarily solution until we figure out a full deployment agnostic solution. This keeps us from having to keep duplicated tests.

During this process we should try to make "DA" as much as possible between the two environments, eg the createObservabilityAIAssistantApiClient could be probably be packaged out to work in either.

Eg: #192063

@neptunian neptunian added the Team:Obs AI Assistant Observability AI Assistant label Sep 12, 2024
neptunian added a commit that referenced this issue Sep 30, 2024
Tests for serverless

- copies over and modifies all tests from stateful to work in
serverless. ~~deployment agnostic tests do not yet support enterprise
license for stateful, so are tests don't yet qualify as being deployment
agnostic~~. Given how difficult it is to see differences from the
stateful tests, I've added PR comments where I've changed something that
might be of interest.
- changes to `createObservabilityAIAssistantApiClient` to use supertest
without basic auth and accept headers for serverless and use roles
- removes creating persisted users when tests start and [use
roles](https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#roles-based-testing)
within tests. its not possible to create custom users with the
serverless test framework at the moment. See
#192711

Skipped tests
- knowledge base tests #192886
- any test suite that uses the LLM proxy has been skipped on MKI
#192751
- all tests that depend on the config.modelId skipped in MKI
#192757

TODO:

- [x] move over remaining tests
- [x]  test in MKI environment before merging
- [x] create issues for skipped tests
- [ ] this will not run on MKI (after merging) unless we ping the
appex-qa team to add it to the pipeline. this is due to creating a
separate config. ask appex-qa team to add our config.


Followup / related issues to be tracked in a newly created issue:

- [ ] #192757
- [ ] #192886
- [ ] #192751
- [ ] #192701
- [ ] #192497
- [ ] #192711
- [ ] #192718
- [ ] serverless functional tests
- [ ] inquire with ml-ui-team to have the ability to delete system
indices which we do after uninstalling tiny elser with .ml indices
neptunian added a commit to neptunian/kibana that referenced this issue Oct 1, 2024
Tests for serverless

- copies over and modifies all tests from stateful to work in
serverless. ~~deployment agnostic tests do not yet support enterprise
license for stateful, so are tests don't yet qualify as being deployment
agnostic~~. Given how difficult it is to see differences from the
stateful tests, I've added PR comments where I've changed something that
might be of interest.
- changes to `createObservabilityAIAssistantApiClient` to use supertest
without basic auth and accept headers for serverless and use roles
- removes creating persisted users when tests start and [use
roles](https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#roles-based-testing)
within tests. its not possible to create custom users with the
serverless test framework at the moment. See
elastic#192711

Skipped tests
- knowledge base tests elastic#192886
- any test suite that uses the LLM proxy has been skipped on MKI
elastic#192751
- all tests that depend on the config.modelId skipped in MKI
elastic#192757

TODO:

- [x] move over remaining tests
- [x]  test in MKI environment before merging
- [x] create issues for skipped tests
- [ ] this will not run on MKI (after merging) unless we ping the
appex-qa team to add it to the pipeline. this is due to creating a
separate config. ask appex-qa team to add our config.

Followup / related issues to be tracked in a newly created issue:

- [ ] elastic#192757
- [ ] elastic#192886
- [ ] elastic#192751
- [ ] elastic#192701
- [ ] elastic#192497
- [ ] elastic#192711
- [ ] elastic#192718
- [ ] serverless functional tests
- [ ] inquire with ml-ui-team to have the ability to delete system
indices which we do after uninstalling tiny elser with .ml indices
neptunian added a commit to neptunian/kibana that referenced this issue Oct 1, 2024
Tests for serverless

- copies over and modifies all tests from stateful to work in
serverless. ~~deployment agnostic tests do not yet support enterprise
license for stateful, so are tests don't yet qualify as being deployment
agnostic~~. Given how difficult it is to see differences from the
stateful tests, I've added PR comments where I've changed something that
might be of interest.
- changes to `createObservabilityAIAssistantApiClient` to use supertest
without basic auth and accept headers for serverless and use roles
- removes creating persisted users when tests start and [use
roles](https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#roles-based-testing)
within tests. its not possible to create custom users with the
serverless test framework at the moment. See
elastic#192711

Skipped tests
- knowledge base tests elastic#192886
- any test suite that uses the LLM proxy has been skipped on MKI
elastic#192751
- all tests that depend on the config.modelId skipped in MKI
elastic#192757

TODO:

- [x] move over remaining tests
- [x]  test in MKI environment before merging
- [x] create issues for skipped tests
- [ ] this will not run on MKI (after merging) unless we ping the
appex-qa team to add it to the pipeline. this is due to creating a
separate config. ask appex-qa team to add our config.

Followup / related issues to be tracked in a newly created issue:

- [ ] elastic#192757
- [ ] elastic#192886
- [ ] elastic#192751
- [ ] elastic#192701
- [ ] elastic#192497
- [ ] elastic#192711
- [ ] elastic#192718
- [ ] serverless functional tests
- [ ] inquire with ml-ui-team to have the ability to delete system
indices which we do after uninstalling tiny elser with .ml indices
neptunian added a commit to neptunian/kibana that referenced this issue Oct 1, 2024
Tests for serverless

- copies over and modifies all tests from stateful to work in
serverless. ~~deployment agnostic tests do not yet support enterprise
license for stateful, so are tests don't yet qualify as being deployment
agnostic~~. Given how difficult it is to see differences from the
stateful tests, I've added PR comments where I've changed something that
might be of interest.
- changes to `createObservabilityAIAssistantApiClient` to use supertest
without basic auth and accept headers for serverless and use roles
- removes creating persisted users when tests start and [use
roles](https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#roles-based-testing)
within tests. its not possible to create custom users with the
serverless test framework at the moment. See
elastic#192711

Skipped tests
- knowledge base tests elastic#192886
- any test suite that uses the LLM proxy has been skipped on MKI
elastic#192751
- all tests that depend on the config.modelId skipped in MKI
elastic#192757

TODO:

- [x] move over remaining tests
- [x]  test in MKI environment before merging
- [x] create issues for skipped tests
- [ ] this will not run on MKI (after merging) unless we ping the
appex-qa team to add it to the pipeline. this is due to creating a
separate config. ask appex-qa team to add our config.

Followup / related issues to be tracked in a newly created issue:

- [ ] elastic#192757
- [ ] elastic#192886
- [ ] elastic#192751
- [ ] elastic#192701
- [ ] elastic#192497
- [ ] elastic#192711
- [ ] elastic#192718
- [ ] serverless functional tests
- [ ] inquire with ml-ui-team to have the ability to delete system
indices which we do after uninstalling tiny elser with .ml indices
neptunian added a commit that referenced this issue Oct 1, 2024
…194582)

Tests for serverless

- copies over and modifies all tests from stateful to work in
serverless. ~~deployment agnostic tests do not yet support enterprise
license for stateful, so are tests don't yet qualify as being deployment
agnostic~~. Given how difficult it is to see differences from the
stateful tests, I've added PR comments where I've changed something that
might be of interest.
- changes to `createObservabilityAIAssistantApiClient` to use supertest
without basic auth and accept headers for serverless and use roles
- removes creating persisted users when tests start and [use
roles](https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#roles-based-testing)
within tests. its not possible to create custom users with the
serverless test framework at the moment. See
#192711

Skipped tests
- knowledge base tests #192886
- any test suite that uses the LLM proxy has been skipped on MKI
#192751
- all tests that depend on the config.modelId skipped in MKI
#192757

TODO:

- [x] move over remaining tests
- [x]  test in MKI environment before merging
- [x] create issues for skipped tests
- [ ] this will not run on MKI (after merging) unless we ping the
appex-qa team to add it to the pipeline. this is due to creating a
separate config. ask appex-qa team to add our config.

Followup / related issues to be tracked in a newly created issue:

- [ ] #192757
- [ ] #192886
- [ ] #192751
- [ ] #192701
- [ ] #192497
- [ ] #192711
- [ ] #192718
- [ ] serverless functional tests
- [ ] inquire with ml-ui-team to have the ability to delete system
indices which we do after uninstalling tiny elser with .ml indices

## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.


### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces—unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes—Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
@miltonhultgren
Copy link
Contributor

What is the status of this ticket? The original deadline was the 14th of November, we'll be pushing this back a little bit but this is work that we should aim to get done soon since Serverless is going GA.

@neptunian
Copy link
Contributor Author

@emma-raffenne I've updated this with more clear instructions and steps. This should be the highest priority issue for the serverless test so I've moved it up here #180925.

@neptunian
Copy link
Contributor Author

@arturoliduena I updated the list of "skipped in MKI" tags to include the rest of the tests. A couple are pending on some open PRs which fix them or dup to serverless, so they should just work for the most part.

neptunian added a commit that referenced this issue Jan 4, 2025
…05519)

## Summary
Resolves #192886

- Unskips `knowledge_base_user_instructions.spec.ts` in serverless
  - stays skipped in mki due to proxy usage issue
  - Duplicates new changes from non serverless
- Removes `skipInMKI` tags for:
`knowledge_base_setup.spec.ts`
`knowledge_base.spec.ts `
`knowledge_base_status.spec.ts`


If #192718 is merged before
this, I will move `knowledge_base_user_instructions.spec.ts` to
deployment agnostic. Otherwise It can be done in that PR or another.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Jan 4, 2025
…astic#205519)

## Summary
Resolves elastic#192886

- Unskips `knowledge_base_user_instructions.spec.ts` in serverless
  - stays skipped in mki due to proxy usage issue
  - Duplicates new changes from non serverless
- Removes `skipInMKI` tags for:
`knowledge_base_setup.spec.ts`
`knowledge_base.spec.ts `
`knowledge_base_status.spec.ts`

If elastic#192718 is merged before
this, I will move `knowledge_base_user_instructions.spec.ts` to
deployment agnostic. Otherwise It can be done in that PR or another.

(cherry picked from commit b17b10e)
kibanamachine added a commit that referenced this issue Jan 4, 2025
…ss (#205519) (#205564)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Obs AI Assistant] unskip kb user instructions test in serverless
(#205519)](#205519)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sandra
G","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-04T21:32:32Z","message":"[Obs
AI Assistant] unskip kb user instructions test in serverless
(#205519)\n\n## Summary\r\nResolves
https://github.com/elastic/kibana/issues/192886\r\n\r\n- Unskips
`knowledge_base_user_instructions.spec.ts` in serverless\r\n - stays
skipped in mki due to proxy usage issue\r\n - Duplicates new changes
from non serverless\r\n- Removes `skipInMKI` tags
for:\r\n`knowledge_base_setup.spec.ts`\r\n`knowledge_base.spec.ts
`\r\n`knowledge_base_status.spec.ts`\r\n\r\n\r\nIf
#192718 is merged
before\r\nthis, I will move `knowledge_base_user_instructions.spec.ts`
to\r\ndeployment agnostic. Otherwise It can be done in that PR or
another.","sha":"b17b10eea1aa465a4291ce716dba473eb9195cb1","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:Obs
AI Assistant"],"title":"[Obs AI Assistant] unskip kb user instructions
test in
serverless","number":205519,"url":"https://github.com/elastic/kibana/pull/205519","mergeCommit":{"message":"[Obs
AI Assistant] unskip kb user instructions test in serverless
(#205519)\n\n## Summary\r\nResolves
https://github.com/elastic/kibana/issues/192886\r\n\r\n- Unskips
`knowledge_base_user_instructions.spec.ts` in serverless\r\n - stays
skipped in mki due to proxy usage issue\r\n - Duplicates new changes
from non serverless\r\n- Removes `skipInMKI` tags
for:\r\n`knowledge_base_setup.spec.ts`\r\n`knowledge_base.spec.ts
`\r\n`knowledge_base_status.spec.ts`\r\n\r\n\r\nIf
#192718 is merged
before\r\nthis, I will move `knowledge_base_user_instructions.spec.ts`
to\r\ndeployment agnostic. Otherwise It can be done in that PR or
another.","sha":"b17b10eea1aa465a4291ce716dba473eb9195cb1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205519","number":205519,"mergeCommit":{"message":"[Obs
AI Assistant] unskip kb user instructions test in serverless
(#205519)\n\n## Summary\r\nResolves
https://github.com/elastic/kibana/issues/192886\r\n\r\n- Unskips
`knowledge_base_user_instructions.spec.ts` in serverless\r\n - stays
skipped in mki due to proxy usage issue\r\n - Duplicates new changes
from non serverless\r\n- Removes `skipInMKI` tags
for:\r\n`knowledge_base_setup.spec.ts`\r\n`knowledge_base.spec.ts
`\r\n`knowledge_base_status.spec.ts`\r\n\r\n\r\nIf
#192718 is merged
before\r\nthis, I will move `knowledge_base_user_instructions.spec.ts`
to\r\ndeployment agnostic. Otherwise It can be done in that PR or
another.","sha":"b17b10eea1aa465a4291ce716dba473eb9195cb1"}}]}]
BACKPORT-->

Co-authored-by: Sandra G <[email protected]>
@arturoliduena
Copy link
Contributor

Thanks @neptunian, (cc @sorenlouv ) Here an updated:
Migrated to deployment-agnostic:

  • conversations.spec.ts
  • connectors.spec.ts
  • chat.spec.ts
  • complete.spec.ts
  • elasticsearch.spec.ts
  • public_complete.spec.ts
  • alerts.spec.ts

Pending migration (due to dependency on the ml service, which is not yet available in DA):

  • knowledge_base_setup.spec.ts
  • knowledge_base_status.spec.ts
  • knowledge_base.spec.ts
  • knowledge_base_user_instructions.spec.ts
  • summarize.ts

I’ll reach out to the @elastic/appex-qa to get more details on the ml service availability.

export const deploymentAgnosticServices = _.pick(apiIntegrationServices, [
'supertest', // TODO: review its behaviour
'es',
'esDeleteAllIndices', // TODO: review its behaviour
'esArchiver',
'esSupertest', // TODO: review its behaviour
'indexPatterns',
'ingestPipelines',
'kibanaServer',
// 'ml', depends on 'esDeleteAllIndices', can we make it deployment agnostic?
'randomness',

@sorenlouv
Copy link
Member

sorenlouv commented Jan 6, 2025

I created an issue related to this: #205599

kowalczyk-krzysztof pushed a commit to kowalczyk-krzysztof/kibana that referenced this issue Jan 7, 2025
…astic#205519)

## Summary
Resolves elastic#192886

- Unskips `knowledge_base_user_instructions.spec.ts` in serverless
  - stays skipped in mki due to proxy usage issue
  - Duplicates new changes from non serverless
- Removes `skipInMKI` tags for:
`knowledge_base_setup.spec.ts`
`knowledge_base.spec.ts `
`knowledge_base_status.spec.ts`


If elastic#192718 is merged before
this, I will move `knowledge_base_user_instructions.spec.ts` to
deployment agnostic. Otherwise It can be done in that PR or another.
@viduni94
Copy link
Contributor

viduni94 commented Jan 8, 2025

@arturoliduena
The last missing test in serverless was merged in - #205537
Hope you could move this to DA as well.

CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Jan 13, 2025
…astic#205519)

## Summary
Resolves elastic#192886

- Unskips `knowledge_base_user_instructions.spec.ts` in serverless
  - stays skipped in mki due to proxy usage issue
  - Duplicates new changes from non serverless
- Removes `skipInMKI` tags for:
`knowledge_base_setup.spec.ts`
`knowledge_base.spec.ts `
`knowledge_base_status.spec.ts`


If elastic#192718 is merged before
this, I will move `knowledge_base_user_instructions.spec.ts` to
deployment agnostic. Otherwise It can be done in that PR or another.
arturoliduena added a commit that referenced this issue Jan 13, 2025
Closes #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`
delanni pushed a commit to delanni/kibana that referenced this issue Jan 13, 2025
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`
arturoliduena added a commit that referenced this issue Jan 13, 2025
…206516)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Observability AI Assistant Tests Deployment Agnostic
(#205194)](#205194)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Arturo
Lidueña","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-13T15:03:51Z","message":"Observability
AI Assistant Tests Deployment Agnostic (#205194)\n\nCloses
#192718\r\n\r\n## Summary\r\n\r\nThis PR add a deployment-agnostic
testing environment for Observability\r\nAI Assistant tests by unifying
the duplicated tests for stateful and\r\nserverless environments. It
create the ObservabilityAIAssistantApiClient\r\nto work seamlessly in
both environments, enabling a single test to run\r\nacross stateful, CI,
and MKI.\r\n\r\nInitial efforts focus on deduplicating the
`conversations.spec.ts` and\r\n`connectors.spec.ts` files, as these
already run in all environments.\r\n\r\nMove / dedup the tests that
exist in stateful and serverless. They run\r\nin serverless CI but not
MKI and add the skipMki
tag.\r\n`chat.spec.ts`\r\n`complete.spec.ts`\r\n`elasticsearch.spec.ts`\r\n`public_complete.spec.ts`\r\n`alerts.spec.ts`\r\n`knowledge_base_setup.spec.ts`
\r\n`knowledge_base_status.spec.ts` \r\n`knowledge_base.spec.ts`
\r\n`summarize.ts`
\r\n`knowledge_base_user_instructions.spec.ts`","sha":"ee6c5bde34b984e14889eb136cfa1a9baa9991c0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Obs
AI
Assistant","ci:project-deploy-observability","backport:version","v8.18.0"],"number":205194,"url":"https://github.com/elastic/kibana/pull/205194","mergeCommit":{"message":"Observability
AI Assistant Tests Deployment Agnostic (#205194)\n\nCloses
#192718\r\n\r\n## Summary\r\n\r\nThis PR add a deployment-agnostic
testing environment for Observability\r\nAI Assistant tests by unifying
the duplicated tests for stateful and\r\nserverless environments. It
create the ObservabilityAIAssistantApiClient\r\nto work seamlessly in
both environments, enabling a single test to run\r\nacross stateful, CI,
and MKI.\r\n\r\nInitial efforts focus on deduplicating the
`conversations.spec.ts` and\r\n`connectors.spec.ts` files, as these
already run in all environments.\r\n\r\nMove / dedup the tests that
exist in stateful and serverless. They run\r\nin serverless CI but not
MKI and add the skipMki
tag.\r\n`chat.spec.ts`\r\n`complete.spec.ts`\r\n`elasticsearch.spec.ts`\r\n`public_complete.spec.ts`\r\n`alerts.spec.ts`\r\n`knowledge_base_setup.spec.ts`
\r\n`knowledge_base_status.spec.ts` \r\n`knowledge_base.spec.ts`
\r\n`summarize.ts`
\r\n`knowledge_base_user_instructions.spec.ts`","sha":"ee6c5bde34b984e14889eb136cfa1a9baa9991c0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205194","number":205194,"mergeCommit":{"message":"Observability
AI Assistant Tests Deployment Agnostic (#205194)\n\nCloses
#192718\r\n\r\n## Summary\r\n\r\nThis PR add a deployment-agnostic
testing environment for Observability\r\nAI Assistant tests by unifying
the duplicated tests for stateful and\r\nserverless environments. It
create the ObservabilityAIAssistantApiClient\r\nto work seamlessly in
both environments, enabling a single test to run\r\nacross stateful, CI,
and MKI.\r\n\r\nInitial efforts focus on deduplicating the
`conversations.spec.ts` and\r\n`connectors.spec.ts` files, as these
already run in all environments.\r\n\r\nMove / dedup the tests that
exist in stateful and serverless. They run\r\nin serverless CI but not
MKI and add the skipMki
tag.\r\n`chat.spec.ts`\r\n`complete.spec.ts`\r\n`elasticsearch.spec.ts`\r\n`public_complete.spec.ts`\r\n`alerts.spec.ts`\r\n`knowledge_base_setup.spec.ts`
\r\n`knowledge_base_status.spec.ts` \r\n`knowledge_base.spec.ts`
\r\n`summarize.ts`
\r\n`knowledge_base_user_instructions.spec.ts`","sha":"ee6c5bde34b984e14889eb136cfa1a9baa9991c0"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Obs AI Assistant Observability AI Assistant
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants