Skip to content

Cli logging improvements - #445

Merged
aantn merged 7 commits into
masterfrom
cli-logging-improvements
May 24, 2025
Merged

aantn merged 7 commits into
masterfrom
cli-logging-improvements

Conversation

@aantn

@aantn aantn commented May 23, 2025 •

Copy link
Copy Markdown
Collaborator

This cleans up cli logs a bit. It involves some flow changes as well to toolset configuration, so it should be carefully reviewed and tested. I did a sanity check on the cli, but did not check the in-cluster server behaviour.

Summary by CodeRabbit

  • Bug Fixes
    • Improved error messages and logging for toolset prerequisite checks and initialization failures.
    • Reduced unnecessary warnings for missing configuration files by adjusting logging levels and suppressing certain warnings.
  • Refactor
    • Enhanced logging clarity for toolset status and configuration loading processes.
    • Updated internal handling of file loading to allow more flexible warning control.
  • Documentation
    • Added clarifying comments regarding private attributes in toolset classes.

@coderabbitai

coderabbitai Bot commented May 23, 2025 •

Copy link
Copy Markdown
Contributor
## Walkthrough

The changes adjust logging behaviors and error handling across several modules. Logging levels for missing files and configuration issues are reduced from warnings to debug, and certain log messages are removed or refined. The `load_yaml_file` utility now accepts a parameter to suppress warnings for missing files. Error messages in toolset prerequisite checks are made more descriptive.

## Changes

| File(s)                                                                                 | Change Summary                                                                                                              |
|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
| holmes/config.py                                                                        | Suppressed warnings for missing model files, adjusted logging to only report non-empty model lists, removed toolset status logs, and changed missing custom toolset config log level to debug. |
| holmes/core/tools.py                                                                    | Added comment about private attributes in `Toolset`, improved error messages and logging in `check_prerequisites`, refined control flow to avoid premature returns. |
| holmes/plugins/toolsets/grafana/base_grafana_toolset.py                                 | Changed log level for missing Grafana configuration from warning to debug.                                                  |
| holmes/plugins/toolsets/prometheus/prometheus.py                                        | Simplified error messages for connection failures in `_is_healthy`, removed exception details from one error log.           |
| holmes/utils/file_utils.py                                                              | Added `warn_not_found` parameter to `load_yaml_file` to control warning logs for missing files.                            |
| tests/test_holmes_sync_toolsets.py                                                      | Removed assertion checking for specific substring in error message of failed prerequisites test.                            |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant Config
    participant FileUtils
    Config->>FileUtils: load_yaml_file(path, raise_error, warn_not_found)
    alt File not found and warn_not_found=True
        FileUtils->>Config: Log warning
    else File not found and warn_not_found=False
        FileUtils->>Config: No warning
    end
    FileUtils-->>Config: Return dict or raise error
sequenceDiagram
    participant Toolset
    participant Logger
    Toolset->>Toolset: check_prerequisites()
    Toolset->>Logger: Log status ENABLED
    alt Prerequisite fails
        Toolset->>Logger: Log error with specific command/env
        Toolset->>Toolset: Set status DISABLED or FAILED
        Toolset-->>Toolset: Return status
    else All prerequisites pass
        Toolset->>Logger: Log info "Toolset enabled"
        Toolset-->>Toolset: Return status ENABLED
    end
Loading

Suggested reviewers

  • moshemorad

<!-- walkthrough_end -->

<!-- announcements_start -->

> [!NOTE]
> <details>
> <summary>⚡️ AI Code Reviews for VS Code, Cursor, Windsurf</summary>
> 
> CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
> Learn more [here](http://coderabbit.ai/ide).
> 
> </details>

<!-- announcements_end -->

---

<details>
<summary>📜 Recent review details</summary>

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


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 3a9f904129ef820dada61d13a781dd78f66a840b and b222f11ac36ee4fe9e4d026a4e2a08cf7d6f3eb8.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `tests/test_holmes_sync_toolsets.py` (0 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (1)</summary>

* tests/test_holmes_sync_toolsets.py

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (9)</summary>

* GitHub Check: build (3.12)
* GitHub Check: build (3.11)
* GitHub Check: build (3.12)
* GitHub Check: build (3.10)
* GitHub Check: build (3.11)
* GitHub Check: build (3.9)
* GitHub Check: build (3.10)
* GitHub Check: build (3.9)
* GitHub Check: build (3.12)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAYS8dL3wiIngMIhRmXnwpNgxcRGjIAHc0ZAcBZnUaejkw2A9sREp0TFwsMus7DEcBFoAWfoBWFCxcBr8SbnxEdXwXDRgJhlhMUmQAM3wGJv4sBkjMNIzsbnqPWIAZAElIJKJkAkzsqXP4PgPndXlMeiC0BK4WSLdyQU60ageAGIfCjA7YJTlFgeZiKeAbeAMajwfAYR6w8YeDZJYqTLyQ+hPAj4LzNUJMDAYojYKjiXEgiZoPCweboWgSJDSRjOEgbbyTAUkUm/MIhY78DbnZqMVbpIW0YJhAkTYn4aW0IRNXB5AqLACCkAEZUx9iOQJVogA1iVOtxKFsKGx6LjzpArrcxRgxDiMADvgAaS14X1pMDwxA0PjNChSPh9VYC3mlZAYfChGgJqKu5yhfCK8aocGQjkeWzCrB9SCS4pF0KwXC4biIDgAeh7qXG2AEGiYzB7FEERrQYCUEh7PK8bEQRG4uB73G8Xh7gyGGiM+mM4CgZG9iq5BGIZGUNQUrHYXF4/GEonEUhk8iYSioqnUWh0B5MKA4FQVBMBwC9SHIVkolHE0uCoUkHCcFxLQ/RRlB/TRtF0MBDEPUwDAXJcewZJkNG4WQOAMaIaIMCxIDNa5Lygil7EcZhnHkMsVTWaQ3AmAADbhnGaAB9VElFpUSMUiATIEDYMfWzSAJPReAoieLEfEgASkjQWhRNkNBmC8aT4Fkkp1FgdAOloWh1BDAF0AoZkTR00oKAwUTc1waT8GwDBaAAXgAMWhEgBMjBxuF4aRZnSF1POOZBigaMYdXMjxUB8+T/MCxZrnSjwBNiXEmTkz5EEQAByZABIkkhTOmBNRLSdQ5LYcZFE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nXHhIBCXGgueIQPxqxIvPkPBGgIhPmihHUJ+BhGoFhP+LhAYLGbBOoK1LQPzHvupC2AZOwqEAeEWUeJAAAJwABMAAHO2QAOz9CdlNkACM/QLZDAtAQwAgTZtA/QTZAAbH2QAMwMCzltkCDDkdkbAkBtn9BjlNkAAMbZOEhgsZs5aATZGwO5/QfZLZTZooHZ25EIEIM5tAc5aAnZbZfZdkL5GwU5U5aAG525Ag+5DZEAloLZIFGwfZfZ0Ms5U5o6/Qa5V5/QtA25LZ35/QJALZaAu5DAGwnZtAU5Gws5JAAge59ZxZFKpZA6FZUsVZdACRz8+gQAA=== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=robusta-dev/holmesgpt&utm_content=445):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `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. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- 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 src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### 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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@aantn
aantn marked this pull request as ready for review May 23, 2025 22:17

@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

🧹 Nitpick comments (2)
holmes/core/tools.py (2)

423-427: Improved error messages with specific command details.

The error messages now include the actual command that failed, making debugging much easier. However, consider also including the stderr output from failed commands for even better diagnostics.

Consider enhancing the error message further by including stderr:

 except subprocess.CalledProcessError as e:
     self._status = ToolsetStatusEnum.FAILED
-    self._error = f"`{prereq.command}` returned {e.returncode}"
+    self._error = f"`{prereq.command}` returned {e.returncode}. Error: {e.stderr.strip() if e.stderr else 'No error output'}"

441-444: Clarify the CallablePrerequisite error handling logic.

The current logic allows setting an error message even when the prerequisite doesn't fail (enabled=True but error_message is provided). This could be confusing - is this intended for warnings, or should the prerequisite fail if there's an error message?

Consider making the intent clearer:

 elif isinstance(prereq, CallablePrerequisite):
     (enabled, error_message) = prereq.callable(self.config)
     if not enabled:
         self._status = ToolsetStatusEnum.FAILED
-    if error_message:
-        self._error = f"{error_message}"
+        self._error = f"{error_message}" if error_message else "Callable prerequisite check failed"
+    elif error_message:
+        # Log warning but don't fail the prerequisite
+        logging.warning(f"Toolset {self.name} prerequisite warning: {error_message}")
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4de5642 and 9282874.

📒 Files selected for processing (5)
  • holmes/config.py (3 hunks)
  • holmes/core/tools.py (3 hunks)
  • holmes/plugins/toolsets/grafana/base_grafana_toolset.py (1 hunks)
  • holmes/plugins/toolsets/prometheus/prometheus.py (1 hunks)
  • holmes/utils/file_utils.py (2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
holmes/config.py (1)
holmes/utils/file_utils.py (1)
  • load_yaml_file (19-56)
⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: build (3.12)
  • GitHub Check: build (3.11)
  • GitHub Check: build (3.10)
  • GitHub Check: build (3.9)
  • GitHub Check: build (3.12)
  • GitHub Check: build (3.11)
  • GitHub Check: build (3.10)
  • GitHub Check: build (3.9)
  • GitHub Check: build (3.12)
🔇 Additional comments (12)
holmes/plugins/toolsets/grafana/base_grafana_toolset.py (1)

40-40: LGTM! Appropriate log level adjustment.

Changing from warning to debug level for missing configuration is appropriate since this is expected behavior when the Grafana toolset is not configured, rather than an error condition.

holmes/config.py (3)

155-155: LGTM! Appropriate warning suppression.

Adding warn_not_found=False aligns with the new load_yaml_file parameter to suppress warnings for missing model files, which is expected behavior when the models file doesn't exist.


226-227: LGTM! Conditional logging improvement.

Only logging loaded models when self._model_list is not empty prevents unnecessary log noise when no models are configured.


582-584: LGTM! Consistent log level adjustment.

Changing from warning to debug level for missing custom toolset files is consistent with similar changes across the codebase and appropriate since this is expected behavior when custom toolsets are not configured.

holmes/utils/file_utils.py (2)

19-21: LGTM! Well-designed parameter addition.

Adding the warn_not_found parameter with a default value of True maintains backward compatibility while allowing callers to suppress warnings when missing files are expected behavior.


31-32: LGTM! Proper conditional warning implementation.

The conditional warning based on the warn_not_found flag is correctly implemented and supports the logging improvements throughout the codebase.

holmes/plugins/toolsets/prometheus/prometheus.py (2)

797-801: LGTM! Simplified error handling and messaging.

Removing the unused exception parameter and simplifying the error message improves readability and consistency. The essential information (failed initialization with URL) is preserved while reducing verbosity.


805-805: LGTM! Consistent error message format.

Removing the "Toolset" prefix makes the error message format consistent with the RequestException handling above and improves clarity.

holmes/core/tools.py (4)

345-346: Excellent documentation improvement.

This warning comment is very helpful as it alerts developers to a subtle but important behavior of Pydantic's PrivateAttr fields. This can prevent hard-to-debug issues when toolsets are extended or copied.


404-404: Good practice to explicitly set initial status.

Setting the status to ENABLED at the start makes the method's behavior more predictable and self-contained, rather than relying on the default private attribute value.


432-432: Improved error message specificity.

Including the specific environment variable name in the error message is a great improvement for debugging configuration issues.


446-454: Improved control flow and logging.

The new logging approach provides clear feedback about toolset status, and the early return prevents unnecessary prerequisite checking once one fails. This aligns well with the PR's goal of improving CLI logging clarity.

The emoji-based success/failure indicators (✅/❌) make the output more user-friendly and easier to scan.

Comment thread holmes/core/tools.py
arikalon1
arikalon1 previously approved these changes May 24, 2025

@arikalon1 arikalon1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

great improvement, thank you

arikalon1
arikalon1 previously approved these changes May 24, 2025
@aantn
aantn enabled auto-merge (squash) May 24, 2025 18:45
@aantn
aantn merged commit 6e32e11 into master May 24, 2025
@aantn
aantn deleted the cli-logging-improvements branch May 24, 2025 18:46
@github-actions

Copy link
Copy Markdown
Contributor

Results of HolmesGPT evals

Test suite Test case Status
ask_holmes 01_how_many_pods ⚠️
ask_holmes 02_what_is_wrong_with_pod ✅
ask_holmes 02_what_is_wrong_with_pod_LOKI ✅
ask_holmes 03_what_is_the_command_to_port_forward ✅
ask_holmes 04_related_k8s_events ✅
ask_holmes 05_image_version ✅
ask_holmes 06_explain_issue ✅
ask_holmes 07_high_latency ✅
ask_holmes 07_high_latency_LOKI ✅
ask_holmes 08_sock_shop_frontend ✅
ask_holmes 09_crashpod ✅
ask_holmes 10_image_pull_backoff ✅
ask_holmes 11_init_containers ✅
ask_holmes 12_job_crashing ✅
ask_holmes 12_job_crashing_CORALOGIX ✅
ask_holmes 12_job_crashing_LOKI ✅
ask_holmes 13_pending_node_selector ✅
ask_holmes 14_pending_resources ✅
ask_holmes 15_failed_readiness_probe ✅
ask_holmes 16_failed_no_toolset_found ✅
ask_holmes 17_oom_kill ✅
ask_holmes 18_crash_looping_v2 ✅
ask_holmes 19_detect_missing_app_details ✅
ask_holmes 20_long_log_file_search ✅
ask_holmes 20_long_log_file_search_LOKI ✅
ask_holmes 21_job_fail_curl_no_svc_account ⚠️
ask_holmes 22_high_latency_dbi_down ⚠️
ask_holmes 23_app_error_in_current_logs ✅
ask_holmes 23_app_error_in_current_logs_LOKI ✅
ask_holmes 24_misconfigured_pvc ✅
ask_holmes 25_misconfigured_ingress_class ⚠️
ask_holmes 26_multi_container_logs ⚠️
ask_holmes 27_permissions_error_no_helm_tools ✅
ask_holmes 28_permissions_error_helm_tools_enabled ✅
ask_holmes 29_events_from_alert_manager ✅
ask_holmes 30_basic_promql_graph_cluster_memory ✅
ask_holmes 31_basic_promql_graph_pod_memory ✅
ask_holmes 32_basic_promql_graph_pod_cpu ✅
ask_holmes 33_http_latency_graph ⚠️
ask_holmes 34_memory_graph ✅
ask_holmes 35_tempo ✅
ask_holmes 36_argocd_find_resource ✅
ask_holmes 37_argocd_wrong_namespace ⚠️
ask_holmes 38_rabbitmq_split_head ✅
ask_holmes 39_failed_toolset ✅
ask_holmes 40_disabled_toolset ✅
ask_holmes 41_setup_argo ✅
investigate 01_oom_kill ✅
investigate 02_crashloop_backoff ✅
investigate 03_cpu_throttling ✅
investigate 04_image_pull_backoff ✅
investigate 05_crashpod ✅
investigate 05_crashpod_LOKI ✅
investigate 06_job_failure ✅
investigate 07_job_syntax_error ✅
investigate 08_memory_pressure ✅
investigate 09_high_latency ✅
investigate 10_kube_controller_manager_down ⚠️
investigate 11_KubeDeploymentReplicasMismatch ✅
investigate 12_KubePodCrashLooping ✅
investigate 13_KubePodNotReady ✅
investigate 14_Watchdog ✅
investigate 15_tempo ✅

Legend

  • ✅ the test was successful
  • ⚠️ the test failed but is known to be flakky or known to fail
  • ❌ the test failed and should be fixed before merging the PR

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