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] Unskip user instructions test (#205656) #205897

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

viduni94
Copy link
Contributor

@viduni94 viduni94 commented Jan 8, 2025

Closes #205656

Summary

Problem

There seems to be a race condition and state contamination between tests in the KB user instructions tests.

Solution

  • Clear knowledge base and conversations after tests
  • Remove title interceptor --> we don't need title interception for these tests

Checklist

  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

@viduni94 viduni94 added release_note:skip Skip the PR/issue when compiling release notes Team:Obs AI Assistant Observability AI Assistant backport:version Backport to applied version labels v8.18.0 labels Jan 8, 2025
@viduni94 viduni94 self-assigned this Jan 8, 2025
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7670

[❌] x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/config.ts: 160/200 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7674

[✅] x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/config.ts: 100/100 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7675

[❌] x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/config.ts: 175/200 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7676

[❌] x-pack/test/observability_ai_assistant_api_integration/enterprise/config.ts: 174/200 tests passed.

see run history

@viduni94 viduni94 marked this pull request as ready for review January 9, 2025 13:08
@viduni94 viduni94 requested a review from a team as a code owner January 9, 2025 13:08
@elasticmachine
Copy link
Contributor

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

@viduni94 viduni94 force-pushed the kb-user-instructions-flaky-test branch from 313bb9e to 666c8f1 Compare January 9, 2025 13:10
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jan 9, 2025
Copy link
Contributor

github-actions bot commented Jan 9, 2025

🤖 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!)

@elastic elastic deleted a comment from kibanamachine Jan 9, 2025
.interceptConversation({ name: 'conversation', response: 'I, the LLM, hear you!' })
.completeAfterIntercept(),
];
const interceptPromise = proxy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not wait for the LLM-generated title to be generated. if this is intentional?

Copy link
Contributor Author

@viduni94 viduni94 Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we don't check for the title in the test. Therefore, I removed the title interception

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7682

[❌] x-pack/test/observability_ai_assistant_api_integration/enterprise/config.ts: 74/100 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7681

[✅] x-pack/test_serverless/api_integration/test_suites/observability/ai_assistant/config.ts: 100/100 tests passed.

see run history

@sorenlouv
Copy link
Member

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7682

[❌] x-pack/test/observability_ai_assistant_api_integration/enterprise/config.ts: 74/100 tests passed.

see run history

Any idea why the first flaky test runner failed and the second passed? Looks like no code changes between the two.

@viduni94
Copy link
Contributor Author

viduni94 commented Jan 9, 2025

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7682

[❌] x-pack/test/observability_ai_assistant_api_integration/enterprise/config.ts: 74/100 tests passed.
see run history

Any idea why the first flaky test runner failed and the second passed? Looks like no code changes between the two.

Hey @sorenlouv
One was for serverless, one was for stateful.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @viduni94

@viduni94 viduni94 merged commit 37d7a5e into elastic:main Jan 9, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12692534725

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 9, 2025
…astic#205897)

Closes elastic#205656

## Summary

### Problem
There seems to be a race condition and state contamination between tests
in the KB user instructions tests.

### Solution
- Clear knowledge base and conversations after tests
- Remove title interceptor --> we don't need title interception for
these tests

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 37d7a5e)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

Zacqary pushed a commit to Zacqary/kibana that referenced this pull request Jan 9, 2025
…astic#205897)

Closes elastic#205656

## Summary

### Problem
There seems to be a race condition and state contamination between tests
in the KB user instructions tests.

### Solution
- Clear knowledge base and conversations after tests
- Remove title interceptor --> we don't need title interception for
these tests

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 10, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

viduni94 added a commit to kibanamachine/kibana that referenced this pull request Jan 10, 2025
…astic#205897)

Closes elastic#205656

## Summary

### Problem
There seems to be a race condition and state contamination between tests
in the KB user instructions tests.

### Solution
- Clear knowledge base and conversations after tests
- Remove title interceptor --> we don't need title interception for
these tests

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 37d7a5e)
kibanamachine added a commit that referenced this pull request Jan 10, 2025
…5897) (#206082)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Obs AI Assistant] Unskip user instructions test (#205656)
(#205897)](#205897)

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

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

<!--BACKPORT [{"author":{"name":"Viduni
Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-09T15:01:15Z","message":"[Obs
AI Assistant] Unskip user instructions test (#205656)
(#205897)\n\nCloses
https://github.com/elastic/kibana/issues/205656\r\n\r\n##
Summary\r\n\r\n### Problem\r\nThere seems to be a race condition and
state contamination between tests\r\nin the KB user instructions
tests.\r\n\r\n### Solution\r\n- Clear knowledge base and conversations
after tests\r\n- Remove title interceptor --> we don't need title
interception for\r\nthese tests\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [x] The PR description includes
the appropriate Release Notes section,\r\nand the correct
`release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"37d7a5efb760dc271a4fb26f1eeba0d66e037b07","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"],"title":"[Obs
AI Assistant] Unskip user instructions test
(#205656)","number":205897,"url":"https://github.com/elastic/kibana/pull/205897","mergeCommit":{"message":"[Obs
AI Assistant] Unskip user instructions test (#205656)
(#205897)\n\nCloses
https://github.com/elastic/kibana/issues/205656\r\n\r\n##
Summary\r\n\r\n### Problem\r\nThere seems to be a race condition and
state contamination between tests\r\nin the KB user instructions
tests.\r\n\r\n### Solution\r\n- Clear knowledge base and conversations
after tests\r\n- Remove title interceptor --> we don't need title
interception for\r\nthese tests\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [x] The PR description includes
the appropriate Release Notes section,\r\nand the correct
`release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"37d7a5efb760dc271a4fb26f1eeba0d66e037b07"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205897","number":205897,"mergeCommit":{"message":"[Obs
AI Assistant] Unskip user instructions test (#205656)
(#205897)\n\nCloses
https://github.com/elastic/kibana/issues/205656\r\n\r\n##
Summary\r\n\r\n### Problem\r\nThere seems to be a race condition and
state contamination between tests\r\nin the KB user instructions
tests.\r\n\r\n### Solution\r\n- Clear knowledge base and conversations
after tests\r\n- Remove title interceptor --> we don't need title
interception for\r\nthese tests\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [x] The PR description includes
the appropriate Release Notes section,\r\nand the correct
`release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"37d7a5efb760dc271a4fb26f1eeba0d66e037b07"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Viduni Wickramarachchi <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 10, 2025
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
…astic#205897)

Closes elastic#205656

## Summary

### Problem
There seems to be a race condition and state contamination between tests
in the KB user instructions tests.

### Solution
- Clear knowledge base and conversations after tests
- Remove title interceptor --> we don't need title interception for
these tests

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment