Repository navigation
fix(helm): use venv python for KB index job - #604
Conversation
|
Warning Review limit reached
More reviews will be available in 52 minutes and 59 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe ChangesKB-Index CronJob Command Switch
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
coding-agent/tests/deploy/test_helm_chart.py (1)
681-681: ⚡ Quick winMake the legacy-command absence check whitespace-tolerant.
"\nkb index"only blocks one exact form. An indented bare command could slip through; a regex check is more robust.Suggested test hardening
+ import re @@ - assert "\nkb index" not in script + assert re.search(r"(^|\n)\s*kb index(\s|$)", script) is None🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@coding-agent/tests/deploy/test_helm_chart.py` at line 681, The assertion checking for absence of "kb index" in the script variable only matches the exact string pattern "\nkb index", which allows indented or differently-spaced variations to slip through. Replace this simple string containment check with a regex-based assertion that uses a pattern like `\s+kb\s+index` or similar whitespace-tolerant pattern to ensure the legacy command is caught regardless of indentation or spacing. Use a pattern that matches "kb index" with flexible whitespace before and between the words to make the check robust.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@coding-agent/tests/deploy/test_helm_chart.py`:
- Line 681: The assertion checking for absence of "kb index" in the script
variable only matches the exact string pattern "\nkb index", which allows
indented or differently-spaced variations to slip through. Replace this simple
string containment check with a regex-based assertion that uses a pattern like
`\s+kb\s+index` or similar whitespace-tolerant pattern to ensure the legacy
command is caught regardless of indentation or spacing. Use a pattern that
matches "kb index" with flexible whitespace before and between the words to make
the check robust.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 320eaef8-4b46-49c2-97fc-ff9a8c8c9012
📒 Files selected for processing (2)
coding-agent/helm/templates/cronjob-kb-index.yamlcoding-agent/tests/deploy/test_helm_chart.py
4ceee73 to
c34e87e
Compare
Summary
kb indexcommandEvidence
/app/.venv/bin, socommand -v coding-agentfailed/app/.venv/bin/python -m coding_agent kb --helpworks in the deployed imageTests
uv run pytest tests/deploy/test_helm_chart.py -k kb_index_cronjob -vuv run pytest tests/deploy/test_helm_chart.py -vSummary by CodeRabbit