Skip to content

move some evals out of easy + delete bad eval - #828

Merged
aantn merged 1 commit into
masterfrom
easy-eval-fixes
Aug 12, 2025
Merged

aantn merged 1 commit into
masterfrom
easy-eval-fixes

Conversation

@aantn

@aantn aantn commented Aug 12, 2025 •

Copy link
Copy Markdown
Collaborator

I deleted eval 88 as its broken and I didn't see a path to fix it (it would require tainting nodes in your cluster which we don't want to do from evals)

@coderabbitai

coderabbitai Bot commented Aug 12, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Adjusted test metadata: multiple test_case.yaml files retagged from easy to medium; one test marked to skip due to missing data; one test scenario and its Kubernetes manifest removed.

Changes

Cohort / File(s) Summary
Retag easy→medium
tests/llm/fixtures/test_ask_holmes/100_historical_logs/test_case.yaml, .../52_logs_login_issues/test_case.yaml, .../73a_time_window_anomaly/test_case.yaml, .../77_liveness_probe_misconfiguration/test_case.yaml, .../90_runbook_basic_selection/test_case.yaml
Updated tags from "easy" to "medium"; no other content changes.
Skip flaky/missing-data test
tests/llm/fixtures/test_ask_holmes/29_events_from_alert_manager/test_case.yaml
Added skip: true and a skip reason; test logic and expectations unchanged.
Remove taints scenario
tests/llm/fixtures/test_ask_holmes/88_affinity_like_but_taints/manifest.yaml, .../test_case.yaml
Deleted Kubernetes manifest and corresponding test fixture for the taints/tolerations scenario.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • moshemorad
  • arikalon1
  • pavangudiwada
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch easy-eval-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@aantn
aantn enabled auto-merge (squash) August 12, 2025 11:31
@github-actions

Copy link
Copy Markdown
Contributor

Results of HolmesGPT evals

  • ask_holmes: 22/40 test cases were successful, 1 regressions, 2 skipped, 15 mock failures
Test suite Test case Status
ask 01_how_many_pods ✅
ask 02_what_is_wrong_with_pod 🔧
ask 03_what_is_the_command_to_port_forward 🔧
ask 04_related_k8s_events ↪️
ask 05_image_version 🔧
ask 09_crashpod ✅
ask 10_image_pull_backoff 🔧
ask 11_init_containers ✅
ask 14_pending_resources ✅
ask 15_failed_readiness_probe 🔧
ask 17_oom_kill ✅
ask 18_crash_looping_v2 ✅
ask 19_detect_missing_app_details 🔧
ask 20_long_log_file_search 🔧
ask 24_misconfigured_pvc 🔧
ask 28_permissions_error ✅
ask 29_events_from_alert_manager ↪️
ask 39_failed_toolset 🔧
ask 41_setup_argo ✅
ask 42_dns_issues_steps_new_tools 🔧
ask 43_current_datetime_from_prompt ✅
ask 45_fetch_deployment_logs_simple ✅
ask 51_logs_summarize_errors 🔧
ask 53_logs_find_term ✅
ask 54_not_truncated_when_getting_pods 🔧
ask 59_label_based_counting ✅
ask 60_count_less_than 🔧
ask 61_exact_match_counting ✅
ask 63_fetch_error_logs_no_errors ✅
ask 79_configmap_mount_issue 🔧
ask 83_secret_not_found 🔧
ask 86_configmap_like_but_secret 🔧
ask 89_runbook_missing_cloudwatch ❌
ask 93_calling_datadog ✅
ask 93_calling_datadog ✅
ask 93_calling_datadog ✅
ask 97_logs_clarification_needed ✅
ask 110_k8s_events_image_pull 🔧
ask 24a_misconfigured_pvc_basic 🔧
ask 13a_pending_node_selector_basic 🔧

Legend

  • ✅ the test was successful
  • ↪️ the test was skipped
  • ⚠️ the test failed but is known to be flaky or known to fail
  • 🔧 the test failed due to mock data issues (not a code regression)
  • ❌ the test failed and should be fixed before merging the PR

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🔭 Outside diff range comments (4)
tests/llm/fixtures/test_ask_holmes/73a_time_window_anomaly/test_case.yaml (1)

1-1: Fix namespace to app-73a to comply with test guidelines.

Per coding guidelines: “Each test must use a dedicated namespace app-.” This test uses namespace-73a in user_prompt and kubectl commands. Please rename to app-73a across the file to avoid conflicts and ensure consistency.

Outside the changed lines, suggested updates:

# user_prompt
user_prompt: "Were there issues with the task-scheduler pod in app-73a?"

# before_test
kubectl create namespace app-73a || true
kubectl create secret generic task-scheduler-logs-script --from-file=generate_logs.py=./generate_logs.py -n app-73a --dry-run=client -o yaml | kubectl apply -f -

# after_test
kubectl delete secret task-scheduler-logs-script -n app-73a --ignore-not-found
kubectl delete namespace app-73a --ignore-not-found

Also applies to: 11-12, 16-18

tests/llm/fixtures/test_ask_holmes/52_logs_login_issues/test_case.yaml (1)

11-12: Fix namespace to app-52 to comply with test guidelines.

Per coding guidelines: “Each test must use a dedicated namespace app-.” This test uses ask-holmes-namespace-52. Please rename to app-52 in setup/teardown commands.

Outside the changed lines, suggested updates:

# before_test
kubectl create namespace app-52 || true
kubectl create secret generic my-app-52-logs-script \
  --from-file=generate_logs.py=./generate_logs.py \
  -n app-52 --dry-run=client -o yaml | kubectl apply -f -

# after_test
kubectl delete secret my-app-52-logs-script -n app-52 --ignore-not-found
kubectl delete namespace app-52 --ignore-not-found

Also applies to: 19-20

tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml (2)

1-1: Namespace naming violates tests policy; use app- (app-77), not “namespace-77”.

Per guidelines, each test must use a dedicated namespace app-. Please update the prompt and underlying manifest to app-77. Also prefer unique, neutral pod names; suggest web-app-77 to satisfy “unique across tests.”

Apply this diff in this file:

-user_prompt: "Why does the web-app pod keep restarting in namespace-77?"
+user_prompt: "Why does the web-app-77 pod keep restarting in app-77?"

And update your manifest accordingly (outside this file), e.g.:

apiVersion: v1
kind: Namespace
metadata:
  name: app-77
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-app-77
  namespace: app-77
# ...

4-8: Validate manifest compliance: use Secrets for scripts, neutral names, minimal footprint, and uniqueness.

I verified the contents of
tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/manifest.yaml:

  • Namespace is set to namespace-77 (a neutral, test-specific name).
  • Only a Deployment is defined—no ConfigMaps or inline shell scripts.
  • All metadata.name fields are free of diagnostic hints (no “liveness”, “probe”, “misconfig”, etc.).
  • There is no resources.requests or resources.limits section under the container spec.

Please address the following before merging:

  • Add minimal resources.requests and resources.limits to each container in spec.template.spec.containers.
  • Confirm that namespace-77 and the defined resource names are unique across all test fixtures to avoid cross-test collisions.
🧹 Nitpick comments (1)
tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml (1)

4-8: Avoid fixed sleeps; prefer event/condition-based waits to reduce flakiness.

Sleeping 45s can slow CI or still be insufficient on slower clusters. Consider waiting on a concrete condition or observable (e.g., at least one restart observed, or probe failures recorded), then proceed. If the harness lacks helpers, we can add a small wait utility in the framework.

I can propose a portable “wait for restart” helper for your test harness if you share the common utilities available to tests.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8f89332 and d1fdb62.

📒 Files selected for processing (8)
  • tests/llm/fixtures/test_ask_holmes/100_historical_logs/test_case.yaml (1 hunks)
  • tests/llm/fixtures/test_ask_holmes/29_events_from_alert_manager/test_case.yaml (1 hunks)
  • tests/llm/fixtures/test_ask_holmes/52_logs_login_issues/test_case.yaml (1 hunks)
  • tests/llm/fixtures/test_ask_holmes/73a_time_window_anomaly/test_case.yaml (1 hunks)
  • tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml (1 hunks)
  • tests/llm/fixtures/test_ask_holmes/88_affinity_like_but_taints/manifest.yaml (0 hunks)
  • tests/llm/fixtures/test_ask_holmes/88_affinity_like_but_taints/test_case.yaml (0 hunks)
  • tests/llm/fixtures/test_ask_holmes/90_runbook_basic_selection/test_case.yaml (1 hunks)
💤 Files with no reviewable changes (2)
  • tests/llm/fixtures/test_ask_holmes/88_affinity_like_but_taints/manifest.yaml
  • tests/llm/fixtures/test_ask_holmes/88_affinity_like_but_taints/test_case.yaml
🧰 Additional context used
📓 Path-based instructions (3)
tests/**

📄 CodeRabbit Inference Engine (CLAUDE.md)

Tests must match source structure under tests/

Files:

  • tests/llm/fixtures/test_ask_holmes/29_events_from_alert_manager/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/73a_time_window_anomaly/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/100_historical_logs/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/90_runbook_basic_selection/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/52_logs_login_issues/test_case.yaml
**/*.yaml

📄 CodeRabbit Inference Engine (CLAUDE.md)

ALWAYS use Secrets for scripts, not inline manifests or ConfigMaps (prevents code visibility with kubectl describe)

Files:

  • tests/llm/fixtures/test_ask_holmes/29_events_from_alert_manager/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/73a_time_window_anomaly/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/100_historical_logs/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/90_runbook_basic_selection/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/52_logs_login_issues/test_case.yaml
tests/**/*.yaml

📄 CodeRabbit Inference Engine (CLAUDE.md)

tests/**/*.yaml: Never use names that hint at the problem or expected behavior in resource names (e.g., avoid 'broken-pod', 'test-project-that-does-not-exist', 'crashloop-app'). Use neutral names that don't give away what the LLM should discover
Each test must use a dedicated namespace app- to prevent conflicts
All pod names must be unique across tests
Resource naming should be neutral, not hint at the problem
Use minimal resource footprints (e.g., reduce memory/CPU for Loki in tests)

Files:

  • tests/llm/fixtures/test_ask_holmes/29_events_from_alert_manager/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/73a_time_window_anomaly/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/100_historical_logs/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/90_runbook_basic_selection/test_case.yaml
  • tests/llm/fixtures/test_ask_holmes/52_logs_login_issues/test_case.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: build (3.12)
  • GitHub Check: build (3.10)
  • GitHub Check: build (3.11)
  • GitHub Check: llm_evals
  • GitHub Check: Pre-commit checks
🔇 Additional comments (6)
tests/llm/fixtures/test_ask_holmes/100_historical_logs/test_case.yaml (1)

13-13: Retag to medium is appropriate and aligned with PR objective.

Change looks good and matches the test’s complexity.

tests/llm/fixtures/test_ask_holmes/90_runbook_basic_selection/test_case.yaml (1)

5-5: Retag to medium is appropriate and aligned with PR objective.

No other changes required here.

tests/llm/fixtures/test_ask_holmes/73a_time_window_anomaly/test_case.yaml (1)

6-6: Retag to medium is appropriate and aligned with PR objective.

Change looks good.

tests/llm/fixtures/test_ask_holmes/52_logs_login_issues/test_case.yaml (1)

4-4: Retag to medium is appropriate and aligned with PR objective.

Change looks good.

tests/llm/fixtures/test_ask_holmes/29_events_from_alert_manager/test_case.yaml (1)

7-8: Skip metadata addition looks good.

Skipping due to missing mock data is reasonable; this prevents flaky or failing runs while data is unavailable.

tests/llm/fixtures/test_ask_holmes/77_liveness_probe_misconfiguration/test_case.yaml (1)

9-11: Difficulty tag reclassification to medium — LGTM

Tag change is consistent with the PR objective of moving some evals out of “easy.” No functional impact on the test harness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants