-
Notifications
You must be signed in to change notification settings - Fork 42
Fix bokeh charts generation #755
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
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughUpdates the report template's Bokeh CDN version, adds a unit test to assert the template's Bokeh version matches pyproject.toml, and changes comparison report chart logic to skip empty DataFrames and base x/y axis calculations on the longest non-empty dataset. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-12-16T19:47:41.994ZApplied to files:
🧬 Code graph analysis (1)src/cloudai/report_generator/comparison_report.py (1)
🔇 Additional comments (2)
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.
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/report_generator/comparison_report.py(2 hunks)src/cloudai/util/nixl_report_template.jinja2(1 hunks)tests/report_generation_strategy/test_comparison_report.py(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-12-16T19:47:41.994Z
Learnt from: amaslenn
Repo: NVIDIA/cloudai PR: 754
File: src/cloudai/_core/registry.py:226-234
Timestamp: 2025-12-16T19:47:41.994Z
Learning: In this repository, prefer expressing behavioral documentation through tests rather than docstrings. Tests act as living, verified documentation. Reserve docstrings for interfaces or high-level descriptions, and avoid duplicating behavior that is already covered by tests.
Applied to files:
src/cloudai/report_generator/comparison_report.pytests/report_generation_strategy/test_comparison_report.py
🧬 Code graph analysis (1)
src/cloudai/report_generator/comparison_report.py (1)
src/cloudai/util/lazy_imports.py (1)
bokeh_models(99-106)
⏰ 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)
- GitHub Check: Run pytest (3.12)
🔇 Additional comments (2)
src/cloudai/report_generator/comparison_report.py (1)
183-185: LGTM! Good defensive check.Skipping empty DataFrames prevents rendering issues when no data is available for a particular test run.
src/cloudai/util/nixl_report_template.jinja2 (1)
7-9: LGTM! CDN version aligned with package version.The Bokeh CDN URLs have been correctly updated to version 3.8.0, which should resolve compatibility issues between the Python package and the JavaScript libraries loaded from the CDN.
Greptile OverviewGreptile SummaryUpdated Bokeh CDN version from 3.4.0 to 3.8.0 to align with Key Changes:
Issues Found:
Confidence Score: 4/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, 1 comment
Summary
Ensure package version is aligned with CDN js scripts.
Test Plan
Additional Notes
—