-
Notifications
You must be signed in to change notification settings - Fork 513
ROB-1873-validate-datadog-logs-query-working-as-expected #780
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
abc75a7
Add test
moshemorad b77599d
Add ask 91 eval
moshemorad 5196a37
Fix tool mock generation
moshemorad fc2f316
Fix lock file
moshemorad dea9011
Fix tests
moshemorad c1edd62
Fix test type
moshemorad eafc142
Fix test type
moshemorad e7d2d96
Merge branch 'master' into add_test
moshemorad c74a414
Fix test type
moshemorad 2c35c02
Merge branch 'master' into add_test
moshemorad 9857607
Fix test type
moshemorad 73747e9
Merge branch 'master' into add_test
moshemorad fb3cae5
Fix test type
moshemorad 32eb810
Fix tests and warnings
moshemorad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
257 changes: 257 additions & 0 deletions
257
tests/llm/fixtures/test_ask_holmes/93_calling_datadog/conversation_history.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
..._holmes/93_calling_datadog/fetch_pod_logssock-shop_catalogue-db-c948fd796-w4vzl_-3600.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| {"toolset_name":"datadog/logs","tool_name":"fetch_pod_logs","match_params":{"pod_name":"catalogue-db-c948fd796-w4vzl","namespace":"sock-shop","start_time":"-3600"}} | ||
| {"schema_version": "robusta:v1.0.0", "status": "no_data", "error": null, "return_code": null, "url": null, "invocation": null, "params": {"namespace": "sock-shop", "pod_name": "catalogue-db-c948fd796-w4vzl", "start_time": "-3600", "end_time": null, "filter": null, "limit": null}} |
1,002 changes: 1,002 additions & 0 deletions
1,002
..._ask_holmes/93_calling_datadog/fetch_pod_logssock-shop_catalogue-f7687cb4-zsngc_-3600.txt
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
tests/llm/fixtures/test_ask_holmes/93_calling_datadog/test_case.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| description: | | ||
| A test case that simulates an issue real customer bumped into. | ||
| When holmes were asked to fetch logs, they were not able to do so. | ||
| The main reason behind this are due to the conversation history and the lack of explicity saying that we enabled datadog logs toolset as part of the system prompt logging section. | ||
|
|
||
| user_prompt: | ||
| - "Can you retrieve the datadog logs for this?" | ||
| - "Please show me the logs for this pod" | ||
| - "Show me logs" | ||
|
|
||
|
|
||
| expected_output: | | ||
| Logs for catalogue-f7687cb4-zsngc pod show consistent health checks with no errors. | ||
|
|
||
| evaluation: | ||
| correctness: 1 | ||
|
|
||
| test_type: "server" | ||
|
|
||
| # setup & teardown | ||
|
|
||
| tags: | ||
| - easy |
15 changes: 15 additions & 0 deletions
15
tests/llm/fixtures/test_ask_holmes/93_calling_datadog/toolsets.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| toolsets: | ||
| prometheus/metrics: | ||
| enabled: False | ||
| kubernetes/kube-lineage-extras: | ||
| enabled: true | ||
| kubernetes/logs: | ||
| enabled: False | ||
| kubernetes/core: | ||
| enabled: true | ||
| datadog/logs: | ||
| enabled: True | ||
| datadog/metrics: | ||
| enabled: True | ||
| datadog/traces: | ||
| enabled: True |
4 changes: 2 additions & 2 deletions
4
tests/llm/fixtures/test_investigate/03_cpu_throttling/test_case.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| expected_output: | ||
| - The frontend-service pod in the default namespace is experiencing 100% CPU throttling for the stress container | ||
| - Suggest increasing the CPU limit | ||
| before-test: | | ||
| before_test: | | ||
| kubectl apply -f manifest.yaml | ||
| sleep 60 | ||
| after-test: kubectl delete -f manifest.yaml | ||
| after_test: kubectl delete -f manifest.yaml | ||
| evaluation: | ||
| correctness: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.