-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Add API test for get_alerts_dataset_info
tool
#212858
[Obs AI Assistant] Add API test for get_alerts_dataset_info
tool
#212858
Conversation
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
c2aadc3
to
8da67c6
Compare
...red/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts
Outdated
Show resolved
Hide resolved
..._agnostic/apis/observability/ai_assistant/complete/functions/get_alerts_dataset_info.spec.ts
Show resolved
Hide resolved
..._agnostic/apis/observability/ai_assistant/complete/functions/get_alerts_dataset_info.spec.ts
Show resolved
Hide resolved
..._agnostic/apis/observability/ai_assistant/complete/functions/get_alerts_dataset_info.spec.ts
Outdated
Show resolved
Hide resolved
@arturoliduena All comments addressed. I've kicked off the flaky test runner 🤞 |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7969[❌] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 25/50 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7968[✅] x-pack/test/observability_ai_assistant_functional/enterprise/config.ts: 50/50 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7970[❌] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 25/50 tests passed. |
1) Stateful Observability - Deployment-agnostic API integration tests SyntheticsAPITests getSyntheticsMonitors get many monitors without params: Error: {"statusCode":500,"error":"Internal Server Error","message":"Manifest file manifest.yml not found in paths."} + expected - actual -500 +200 at Assertion.assert (expect.js:100:11) at Assertion.eql (expect.js:244:8) at saveMonitor (get_monitor.ts:52:26) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 3) at Context.<anonymous> (get_monitor.ts:85:30) at Object.apply (wrap_function.js:74:16)
@@ -80,7 +80,7 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) { | |||
}); | |||
|
|||
describe('get many monitors', () => { | |||
it('without params', async () => { | |||
it.skip('without params', async () => { |
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.
Is this intentionally skipped?
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.
Yes, it looked flaky. But I'll revert it because it didn't seem to fix the flakiness. Will keep digging
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7972[❌] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 0/100 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7976[❌] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 0/100 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#7977[❌] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 72/100 tests passed. |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
|
Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0 |
…lastic#212858) Follow-up to: elastic#212077 This PR includes an API test that covers `get_alerts_dataset_info` and would have caught the bug fixed in elastic#212077. It also contains the following bug fixes: - Fix system message in `select_relevant_fields` - Change prompt in `select_relevant_fields` so that the LLM consistently uses the right format when responding. (cherry picked from commit 0fb83ef)
…lastic#212858) Follow-up to: elastic#212077 This PR includes an API test that covers `get_alerts_dataset_info` and would have caught the bug fixed in elastic#212077. It also contains the following bug fixes: - Fix system message in `select_relevant_fields` - Change prompt in `select_relevant_fields` so that the LLM consistently uses the right format when responding. (cherry picked from commit 0fb83ef)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…ool (#212858) (#213203) # Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)](#212858) <!--- 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":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-03-05T08:09:22Z","message":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)\n\nFollow-up to: https://github.com/elastic/kibana/pull/212077\n\nThis PR includes an API test that covers `get_alerts_dataset_info` and\nwould have caught the bug fixed in\nhttps://github.com//pull/212077.\n\nIt also contains the following bug fixes:\n\n- Fix system message in `select_relevant_fields`\n- Change prompt in `select_relevant_fields` so that the LLM consistently\nuses the right format when responding.","sha":"0fb83efd82ae3ebd8a9fe27813e436b80cd240d3","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","backport:prev-major","Team:Obs AI Assistant","ci:project-deploy-observability","v9.1.0"],"title":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool","number":212858,"url":"https://github.com/elastic/kibana/pull/212858","mergeCommit":{"message":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)\n\nFollow-up to: https://github.com/elastic/kibana/pull/212077\n\nThis PR includes an API test that covers `get_alerts_dataset_info` and\nwould have caught the bug fixed in\nhttps://github.com//pull/212077.\n\nIt also contains the following bug fixes:\n\n- Fix system message in `select_relevant_fields`\n- Change prompt in `select_relevant_fields` so that the LLM consistently\nuses the right format when responding.","sha":"0fb83efd82ae3ebd8a9fe27813e436b80cd240d3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212858","number":212858,"mergeCommit":{"message":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)\n\nFollow-up to: https://github.com/elastic/kibana/pull/212077\n\nThis PR includes an API test that covers `get_alerts_dataset_info` and\nwould have caught the bug fixed in\nhttps://github.com//pull/212077.\n\nIt also contains the following bug fixes:\n\n- Fix system message in `select_relevant_fields`\n- Change prompt in `select_relevant_fields` so that the LLM consistently\nuses the right format when responding.","sha":"0fb83efd82ae3ebd8a9fe27813e436b80cd240d3"}}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
…ool (#212858) (#213202) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)](#212858) <!--- 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":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-03-05T08:09:22Z","message":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)\n\nFollow-up to: https://github.com/elastic/kibana/pull/212077\n\nThis PR includes an API test that covers `get_alerts_dataset_info` and\nwould have caught the bug fixed in\nhttps://github.com//pull/212077.\n\nIt also contains the following bug fixes:\n\n- Fix system message in `select_relevant_fields`\n- Change prompt in `select_relevant_fields` so that the LLM consistently\nuses the right format when responding.","sha":"0fb83efd82ae3ebd8a9fe27813e436b80cd240d3","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","backport:prev-major","Team:Obs AI Assistant","ci:project-deploy-observability","v9.1.0"],"title":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool","number":212858,"url":"https://github.com/elastic/kibana/pull/212858","mergeCommit":{"message":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)\n\nFollow-up to: https://github.com/elastic/kibana/pull/212077\n\nThis PR includes an API test that covers `get_alerts_dataset_info` and\nwould have caught the bug fixed in\nhttps://github.com//pull/212077.\n\nIt also contains the following bug fixes:\n\n- Fix system message in `select_relevant_fields`\n- Change prompt in `select_relevant_fields` so that the LLM consistently\nuses the right format when responding.","sha":"0fb83efd82ae3ebd8a9fe27813e436b80cd240d3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212858","number":212858,"mergeCommit":{"message":"[Obs AI Assistant] Add API test for `get_alerts_dataset_info` tool (#212858)\n\nFollow-up to: https://github.com/elastic/kibana/pull/212077\n\nThis PR includes an API test that covers `get_alerts_dataset_info` and\nwould have caught the bug fixed in\nhttps://github.com//pull/212077.\n\nIt also contains the following bug fixes:\n\n- Fix system message in `select_relevant_fields`\n- Change prompt in `select_relevant_fields` so that the LLM consistently\nuses the right format when responding.","sha":"0fb83efd82ae3ebd8a9fe27813e436b80cd240d3"}}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Follow-up to: #212077
This PR includes an API test that covers
get_alerts_dataset_info
and would have caught the bug fixed in #212077.It also contains the following bug fixes:
select_relevant_fields
select_relevant_fields
so that the LLM consistently uses the right format when responding.