feat: Add network field to LlamaStackDistribution#2647
feat: Add network field to LlamaStackDistribution#2647jgarciao wants to merge 3 commits intoRedHatQE:mainfrom
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdded an optional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 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 |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Cherry-pick Operations
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@ocp_resources/llama_stack_distribution.py`:
- Around line 3-7: There are duplicate imports of MissingRequiredArgumentError
and NamespacedResource: remove the stale line that imports both from
ocp_resources.resource (the first import) so only the correct imports remain
(NamespacedResource from ocp_resources.resource and MissingRequiredArgumentError
from ocp_resources.exceptions); if this duplication stems from the generator,
fix the generator template that emits the import block so it doesn't produce a
leftover import for MissingRequiredArgumentError.
rnetser
left a comment
There was a problem hiding this comment.
my pr was merged; please re-generate the resouce
302eeec to
e55f444
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
ocp_resources/llama_stack_distribution.py (1)
4-6: Fix the generator to importMissingRequiredArgumentErrorfromocp_resources.resource.This generated output drifted from the repository convention: resource classes import
MissingRequiredArgumentErrorviaocp_resources.resource, notocp_resources.exceptions. Since this file is inside the generated block, please update the class-generator template/import mapping and regenerate instead of patching this file directly.Based on learnings,
MissingRequiredArgumentErrorshould be imported fromocp_resources.resource, and generated code should be fixed in the class-generator rather than edited manually.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@ocp_resources/llama_stack_distribution.py` around lines 4 - 6, The generated file imports MissingRequiredArgumentError from ocp_resources.exceptions; update the class-generator template so that generated resources import MissingRequiredArgumentError from ocp_resources.resource instead (alongside NamespacedResource), then regenerate the file rather than manually editing llama_stack_distribution.py; ensure the template's import mapping and any generator code that emits "MissingRequiredArgumentError" references ocp_resources.resource so future generated classes (e.g., the NamespacedResource-derived classes) use the correct import.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@ocp_resources/llama_stack_distribution.py`:
- Around line 4-6: The generated file imports MissingRequiredArgumentError from
ocp_resources.exceptions; update the class-generator template so that generated
resources import MissingRequiredArgumentError from ocp_resources.resource
instead (alongside NamespacedResource), then regenerate the file rather than
manually editing llama_stack_distribution.py; ensure the template's import
mapping and any generator code that emits "MissingRequiredArgumentError"
references ocp_resources.resource so future generated classes (e.g., the
NamespacedResource-derived classes) use the correct import.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9490b3fe-efa6-4f6b-ba78-812cd12b4c76
⛔ Files ignored due to path filters (1)
class_generator/schema/__resources-mappings.json.gzis excluded by!**/*.gz,!class_generator/schema/**
📒 Files selected for processing (1)
ocp_resources/llama_stack_distribution.py
|
New attempt after installing prek and rebasing to 11.0.120. I had to manually run prek in order to fix the linter errors |
6a393c5 to
b9de204
Compare
Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
b9de204 to
0d663ce
Compare
This PR is a follow-up of #2637, updating the LlamaStackDistribution resource and schema following the steps at class_generator/README.md
Summary by CodeRabbit
New Features
Documentation