-
Notifications
You must be signed in to change notification settings - Fork 42
Ensure reports order #754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure reports order #754
Conversation
Order should be: [per_test, ..., status, tarball]
📝 WalkthroughWalkthroughIntroduces a new public method Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ 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 |
Greptile OverviewGreptile SummaryRefactored report generation to enforce deterministic ordering: Key changes:
The implementation is clean and well-tested. The ordering logic correctly handles the 5 currently registered reports: Confidence Score: 5/5
Important Files ChangedFile Analysis
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (3)
src/cloudai/_core/registry.py(1 hunks)src/cloudai/cli/handlers.py(1 hunks)tests/test_reporter.py(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (3)
src/cloudai/_core/registry.py (1)
src/cloudai/_core/base_reporter.py (1)
Reporter(44-85)
tests/test_reporter.py (1)
src/cloudai/_core/registry.py (1)
ordered_scenario_reports(226-234)
src/cloudai/cli/handlers.py (1)
src/cloudai/_core/registry.py (1)
ordered_scenario_reports(226-234)
🔇 Additional comments (1)
src/cloudai/cli/handlers.py (1)
172-172: LGTM! Clean refactoring that centralizes ordering logic.Replacing the inline iteration with a call to
registry.ordered_scenario_reports()improves maintainability by centralizing the report ordering logic in the Registry class, eliminating the need for inline comments about ordering requirements.
Summary
Order should be:
[per_test, ..., status, tarball].Test Plan
Additional Notes
—