Conversation
Summary of ChangesHello @arekay-nv, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the stability and clarity of the benchmarking framework. It ensures that test sessions in the load generator gracefully handle exceptions and always complete their shutdown procedures, preventing orphaned processes or incorrect state. Additionally, it refines the import practices within the test suite to prevent naming conflicts, contributing to a more robust and maintainable codebase. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request primarily addresses warnings in the test suite by aliasing an imported enum and improves the robustness of the benchmark session runner. The changes in the test files are correct and effectively resolve potential pytest collection warnings. In session.py, the addition of a try...finally block is a good enhancement to ensure proper resource cleanup. I have one suggestion to improve exception handling within this new block to make debugging easier by preserving the full stack trace.
| ) | ||
| except Exception as e: | ||
| logger.error(f"Error running benchmark session: {e}") | ||
| raise e |
There was a problem hiding this comment.
Using raise e resets the stack trace to this line, which can hide the original location where the exception was raised. For better debuggability, it's preferable to use a bare raise statement inside an except block. This re-raises the caught exception while preserving its full original traceback.
| raise e | |
| raise |
|
@arekay-nv we should probably remove the branch name validator because they don't seem to matter. For the auto request review let's fix it because it will be useful in the future. For the perf tests that are failing - maybe we need a more capable runner? |
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Signed-off-by: Rashid Kaleem <230885705+arekay-nv@users.noreply.github.com>
Signed-off-by: Rashid Kaleem <230885705+arekay-nv@users.noreply.github.com>
8950969 to
3de32bb
Compare
Signed-off-by: Rashid Kaleem <230885705+arekay-nv@users.noreply.github.com>
What does this PR do?
Type of change
Related issues
Testing
Checklist