Pass through all parameters in holmes_chat action to Holmes server#1987
Pass through all parameters in holmes_chat action to Holmes server#1987
Conversation
Instead of explicitly mapping each parameter, this change allows all parameters to be forwarded to Holmes, excluding only fields used locally (holmes_url, render_graph_images). This enables Holmes clients and servers to add new parameters without requiring updates to this middleware repository. Changes: - HolmesChatParams: Added Config.extra = "allow" to accept extra fields - HolmesChatRequest: Added Config.extra = "allow" to forward extra fields - holmes_chat action: Use params.dict() with exclude to pass through all params
WalkthroughThis PR implements forward-compatibility for Holmes parameters by enabling the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (3)src/robusta/core/model/base_params.py (2)
src/robusta/core/playbooks/internal/ai_integration.py (1)
src/robusta/core/reporting/holmes.py (1)
⏰ 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). (1)
🔇 Additional comments (3)
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. Comment |
|
✅ Docker image ready for
Use this tag to pull the image for testing. 📋 Copy commandsgcloud auth configure-docker us-central1-docker.pkg.dev
docker pull us-central1-docker.pkg.dev/robusta-development/temporary-builds/robusta-runner:e1fcf01
docker tag us-central1-docker.pkg.dev/robusta-development/temporary-builds/robusta-runner:e1fcf01 me-west1-docker.pkg.dev/robusta-development/development/robusta-runner-dev:e1fcf01
docker push me-west1-docker.pkg.dev/robusta-development/development/robusta-runner-dev:e1fcf01Patch Helm values in one line: helm upgrade --install robusta robusta/robusta \
--reuse-values \
--set runner.image=me-west1-docker.pkg.dev/robusta-development/development/robusta-runner-dev:e1fcf01 |
Instead of explicitly mapping each parameter, this change allows all parameters to be forwarded to Holmes, excluding only fields used locally (holmes_url, render_graph_images).
This enables Holmes clients and servers to add new parameters without requiring updates to Robusta
Changes: