-
Notifications
You must be signed in to change notification settings - Fork 42
Fix M-bridge report generation #778
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
📝 WalkthroughWalkthroughThe changes update log file naming conventions from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 SummaryFixed a critical bug where report generation was looking for the wrong log filename. The command generation strategy creates Key Changes:
Impact: Confidence Score: 5/5
Important Files Changed
|
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
🤖 Fix all issues with AI agents
In `@src/cloudai/workloads/megatron_bridge/report_generation_strategy.py`:
- Around line 31-39: The literal log filename is duplicated in get_log_file and
the results_file property; add a class-level constant (e.g., LOG_FILENAME =
"cloudai_megatron_bridge_launcher.log") to the MegatronBridge report generation
class and use that constant in get_log_file (construct log =
self.test_run.output_path / self.LOG_FILENAME) and in results_file (fallback
path using self.LOG_FILENAME) so the filename is defined in one place and can be
reused by tests.
In
`@tests/report_generation_strategy/test_megatron_bridge_report_generation_strategy.py`:
- Line 41: Replace the hard-coded filename
"cloudai_megatron_bridge_launcher.log" in the test with the strategy's filename
constant so the test follows the source of truth; import
MegatronBridgeReportGenerationStrategy (or the class that defines the filename
constant) and use its filename constant (e.g., FILENAME) when writing/reading
(refer to MegatronBridgeReportGenerationStrategy and its filename constant) to
keep the test synchronized with the implementation.
Summary
The report generation looks for the file name
megatron_bridge_launcher.loginstead of the correct file namecloudai_megatron_bridge_launcher.logas generated by the command generation strategy.Test Plan
CI/CD
Internal cluster
Additional Notes
Include any other notes or comments about the pull request here. This can include challenges faced, future considerations, or context that reviewers might find helpful.