Repository navigation
Improve evals #709
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
Improve evals #709
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0750cbe
Update constants.py
aantn 025d1d7
Merge branch 'master' of https://github.com/robusta-dev/holmesgpt
aantn cdd82f4
update tags
aantn 7628585
improve k8s scheduling scenarios
aantn 588ee7e
add replicas mismatch runbook
aantn 3c16cde
Update pod_scheduling_failures_instructions.md
aantn 2963d86
merge
aantn f8066a7
update evals 51, 53, and 61
aantn 29192ec
more eval fixes
aantn a515d3e
Merge branch 'master' into improve-kubernetes-scheduling-scenarios
aantn cb383c3
fix
aantn b80ac12
eval improvements
aantn e7e41c5
tweaks
aantn dce0c53
more evals and fixes
aantn 462669a
merge
aantn 0010374
more eval improvements
aantn 320126f
merge
aantn c221c53
remove reproducible tag
aantn 879a110
add eval notes
aantn d4ac03a
update evals
aantn 1d690d0
Update pyproject.toml
aantn 2b6752b
fixes
aantn 22d11d4
remove runbooks (to be moved to separate PR)
aantn 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
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
86 changes: 0 additions & 86 deletions
86
tests/llm/fixtures/test_ask_holmes/02_what_is_wrong_with_pod/kubectl_describe.txt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/llm/fixtures/test_ask_holmes/02_what_is_wrong_with_pod/kubectl_find_resource.txt
This file was deleted.
Oops, something went wrong.
93 changes: 0 additions & 93 deletions
93
tests/llm/fixtures/test_ask_holmes/02_what_is_wrong_with_pod/kubectl_logs.txt
This file was deleted.
Oops, something went wrong.
37 changes: 36 additions & 1 deletion
37
tests/llm/fixtures/test_ask_holmes/02_what_is_wrong_with_pod/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,5 +1,40 @@ | ||
| user_prompt: 'What is wrong with << { "type": "pod", "name": "robusta-runner-6958c5bdd8-69gtn" } >> ?' | ||
| user_prompt: 'What is wrong with << { "type": "pod", "name": "giant-narwhal-6958c5bdd8-69gtn" } >> ?' | ||
| expected_output: | ||
| - The pod was killed due to it being out of memory | ||
| evaluation: | ||
| correctness: 1 | ||
| tags: | ||
| - kubernetes | ||
| # need to check, but according to coderabbit this wont work | ||
| # CodeRabbit: BusyBox shell can’t handle array syntax – pod will CrashLoop, not OOMKill | ||
| # busybox’s /bin/sh (ash) does not support Bash-style arrays (arr=(); arr+=($i)), so | ||
| # the container exits immediately with a syntax error instead of allocating memory. | ||
| # Consequently the pod goes into CrashLoopBackOff, never hitting the memory limit, | ||
| # and the test’s correctness assertion (“OOMKilled”) will fail. | ||
| # Alternative: switch to stress/stress-ng for a cleaner, deterministic OOM trigger. | ||
| before_test: | | ||
| kubectl create namespace app-02 | ||
| cat <<EOF | kubectl apply -f - | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: giant-narwhal-6958c5bdd8-69gtn | ||
| namespace: app-02 | ||
| labels: | ||
| app: ocean-explorer | ||
| spec: | ||
| containers: | ||
| - name: main | ||
| image: busybox:1.35 | ||
| command: ["sh", "-c", "while true; do echo 'Processing data...'; arr=(); for i in $(seq 1 100000000); do arr+=($i); done; done"] | ||
| resources: | ||
| limits: | ||
| memory: "50Mi" | ||
| requests: | ||
| memory: "50Mi" | ||
|
aantn marked this conversation as resolved.
|
||
| EOF | ||
| # Wait for pod to be OOMKilled | ||
| sleep 30 | ||
|
|
||
| after_test: | | ||
| kubectl delete namespace app-02 --force --grace-period=0 | ||
37 changes: 31 additions & 6 deletions
37
tests/llm/fixtures/test_ask_holmes/03_what_is_the_command_to_port_forward/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,7 +1,32 @@ | ||
| user_prompt: 'what is the command to port-forward to << { "type": "pod", "name": "my_grafana_4j981" } >>' | ||
| #user_prompt: "what is the command to port-forward to my grafana service?" | ||
| user_prompt: 'port forward to grafana pod in app-03' | ||
| expected_output: | ||
| - A kubectl port-forward command | ||
| - The pod name in the port forward command must be my_grafana_4j981 | ||
| evaluation: | ||
| correctness: 1 | ||
| - Must find the actual grafana pod name (grafana-7f8b9c6d5-x2m4n) | ||
| - Must include the correct port (3000) | ||
| - "Full kubectl port-forward command like: kubectl port-forward -n app-03 grafana-7f8b9c6d5-x2m4n 3000:3000" | ||
| - Should NOT just say "find grafana in your cluster" or give generic instructions | ||
| tags: | ||
| - kubernetes | ||
| - easy | ||
| before_test: | | ||
| kubectl create namespace app-03 | ||
| cat <<EOF | kubectl apply -f - | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| metadata: | ||
| name: grafana-7f8b9c6d5-x2m4n | ||
| namespace: app-03 | ||
| labels: | ||
| app: grafana | ||
| spec: | ||
| containers: | ||
| - name: grafana | ||
| image: busybox:1.35 | ||
| command: ['sh', '-c', 'while true; do nc -l -p 3000; done'] | ||
| ports: | ||
| - containerPort: 3000 | ||
| name: http | ||
| EOF | ||
| kubectl wait --for=condition=Ready pod/grafana-7f8b9c6d5-x2m4n -n app-03 --timeout=60s | ||
|
|
||
| after_test: | | ||
| kubectl delete namespace app-03 --force --grace-period=0 |
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.