-
Couldn't load subscription status.
- Fork 183
ROB-2290 workload issues testing #1074
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
Open
RoiGlinik
wants to merge
24
commits into
master
Choose a base branch
from
ROB-2290-workload-issues-testing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
680905d
make dal function to support issues and config changes
RoiGlinik d24dc10
add new tool for fetching issues only
RoiGlinik 59246ad
add instructions for the new tool
RoiGlinik fb0b26b
fix typos
RoiGlinik 9d9fddb
Merge branch 'master' into ROB-2290-workload-issues-tool
RoiGlinik 39abd10
minor fixes. improve description. remove fixed external cluster
RoiGlinik dc6e904
fix copied name
RoiGlinik 9bd38b3
remove finding type ALL for now
RoiGlinik 8588c5a
remove some tools from test to avoid tools limit
RoiGlinik dd7e272
Merge branch 'master' into ROB-2290-workload-issues-tool
RoiGlinik 1ccc79e
load mock dal for tests
RoiGlinik 7bafa50
load issues json file as issues table
RoiGlinik c671cb3
mock issues function
RoiGlinik 9595736
fix naming for inheritance
RoiGlinik 5ccc0fc
create base test case for loading issues from history
RoiGlinik ace628d
Merge branch 'master' into ROB-2290-workload-issues-testing
RoiGlinik 45ff238
allow mock dal to function without db connection
RoiGlinik 322b1eb
move params to constructor to use required
RoiGlinik 7e3def3
Merge branch 'master' into ROB-2290-workload-issues-testing
RoiGlinik b7c4677
fix description
RoiGlinik d7c338c
Merge branch 'master' into ROB-2290-workload-issues-testing
RoiGlinik 59006b1
change test to easy
RoiGlinik bd18cfd
make sure values are set on failure
RoiGlinik 1e965c9
Merge branch 'master' into ROB-2290-workload-issues-testing
RoiGlinik 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
Some comments aren't visible on the classic Files Changed page.
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
97 changes: 97 additions & 0 deletions
97
tests/llm/fixtures/test_ask_holmes/18_oom_kill_from_issues_history/issues_metadata.json
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,97 @@ | ||
| [ | ||
| { | ||
| "id": "91160555-4aaf-4200-9fcf-3ffb93b93c89", | ||
| "description": "Back-off restarting failed container memory-eater in pod analytics-exporter-fast-76897854c-xxljr_default(dec2ce4b-a210-485d-8e6c-42b2ca28ecde)", | ||
| "source": "kubernetes_api_server", | ||
| "category": null, | ||
| "priority": "DEBUG", | ||
| "account_id": "16ecba1a-7993-4dd1-a98c-d201462ccba7", | ||
| "subject_type": "pod", | ||
| "subject_name": "analytics-exporter-fast-76897854c-xxljr", | ||
| "service_key": "default/Deployment/analytics-exporter-fast", | ||
| "subject_namespace": "default", | ||
| "cluster": "test", | ||
| "creation_date": "2025-10-19 10:59:27.643325", | ||
| "title": "BackOff Warning for Pod default/analytics-exporter-fast-76897854c-xxljr", | ||
| "aggregation_key": "PodLifecycleWarning", | ||
| "finding_type": "issue", | ||
| "failure": true, | ||
| "group_id": null, | ||
| "subject_node": null, | ||
| "starts_at": "2025-10-19 10:59:27.393256+00", | ||
| "ends_at": null, | ||
| "updated_at": "2025-10-19 10:59:27.577263+00", | ||
| "fingerprint": "adafae9087aaaab1db55131d4815737d4978b99956b71667dccb37bb23f8c1a9", | ||
| "video_links": [], | ||
| "service_kind": null, | ||
| "service_name": null, | ||
| "labels": {}, | ||
| "annotations": {} | ||
| }, | ||
| { | ||
| "id": "7a63a5cf-34e3-4802-a32f-c2a3de14d44a", | ||
| "description": null, | ||
| "source": "kubernetes_api_server", | ||
| "category": null, | ||
| "priority": "HIGH", | ||
| "account_id": "16ecba1a-7993-4dd1-a98c-d201462ccba7", | ||
| "subject_type": "pod", | ||
| "subject_name": "analytics-exporter-fast-76897854c-xxljr", | ||
| "service_key": "default/Deployment/analytics-exporter-fast", | ||
| "subject_namespace": "default", | ||
| "cluster": "test", | ||
| "creation_date": "2025-10-19 10:59:56.536309", | ||
| "title": "Crashing pod analytics-exporter-fast-76897854c-xxljr in namespace default", | ||
| "aggregation_key": "CrashLoopBackoff", | ||
| "finding_type": "issue", | ||
| "failure": true, | ||
| "group_id": null, | ||
| "subject_node": "aks-agentpool-35525070-vmss000001", | ||
| "starts_at": "2025-10-19 10:59:56.0862+00", | ||
| "ends_at": null, | ||
| "updated_at": "2025-10-19 10:59:56.459443+00", | ||
| "fingerprint": "71ea894a65ea183323d859d3c91951a3b0dba81a7ecda3a9cef605f23a81514c", | ||
| "video_links": [], | ||
| "service_kind": null, | ||
| "service_name": null, | ||
| "labels": { | ||
| "app": "analytics-exporter-fast", | ||
| "pod-template-hash": "76897854c" | ||
| }, | ||
| "annotations": {} | ||
| }, | ||
| { | ||
| "id": "b517520c-9fa9-491c-9754-821dc5ed1f75", | ||
| "description": null, | ||
| "source": "kubernetes_api_server", | ||
| "category": null, | ||
| "priority": "HIGH", | ||
| "account_id": "16ecba1a-7993-4dd1-a98c-d201462ccba7", | ||
| "subject_type": "pod", | ||
| "subject_name": "analytics-exporter-fast-76897854c-xxljr", | ||
| "service_key": "default/Deployment/analytics-exporter", | ||
| "subject_namespace": "default", | ||
| "cluster": "test", | ||
| "creation_date": "2025-10-19 10:59:56.536309", | ||
| "title": "Pod analytics-exporter-fast-76897854c-xxljr in namespace default OOMKilled results", | ||
| "aggregation_key": "PodOOMKilled", | ||
| "finding_type": "issue", | ||
| "failure": true, | ||
| "group_id": null, | ||
| "subject_node": "ip-10-0-237-138.us-east-2.compute.internal", | ||
| "starts_at": "2025-10-19 10:59:56.536309+00", | ||
| "ends_at": null, | ||
| "updated_at": "2025-10-19 10:59:56.536309+00", | ||
| "fingerprint": "3e03802bbc0a878f40772250cf5bb9926b504b0e9429b9ce3373922d9d067d72", | ||
| "video_links": [], | ||
| "service_kind": null, | ||
| "service_name": null, | ||
| "labels": { | ||
| "app": "analytics-exporter", | ||
| "pod-template-hash": "7fb8857595" | ||
| }, | ||
| "annotations": { | ||
| "robusta.kubernetes.io/restartedAt": "2025-10-19T10:59:56.565094+00:00" | ||
| } | ||
| } | ||
| ] |
17 changes: 17 additions & 0 deletions
17
tests/llm/fixtures/test_ask_holmes/18_oom_kill_from_issues_history/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,17 @@ | ||
| description: | | ||
| A test case that simulates an issue real customer bumped into. | ||
| When holmes was asked about a pod that died some time ago and could not find any information about it , it made up an answer about his condition. | ||
| This test checks the new fetch_resource_issue_metadata function to allow holmes to get historical issues from our timeline and find the pod kill reason in history. | ||
|
|
||
| user_prompt: "why did my pod analytics-exporter-fast-76897854c-xxljr died around 2025-10-19?" | ||
| expected_output: | ||
RoiGlinik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - The result mentions the analytics-exporter-fast pod was OOMKILLED | ||
| before_test: | ||
| after_test: | ||
|
|
||
|
|
||
| test_type: "server" | ||
|
|
||
| tags: | ||
| - easy | ||
| - kubernetes | ||
7 changes: 7 additions & 0 deletions
7
tests/llm/fixtures/test_ask_holmes/18_oom_kill_from_issues_history/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,7 @@ | ||
| toolsets: | ||
| kubernetes/core: | ||
| enabled: true | ||
| robusta: | ||
| enabled: true | ||
| kubernetes/logs: | ||
| enabled: true |
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
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.