Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Summary of ChangesHello, 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 introduces a significant enhancement to the system's configuration by allowing an unlimited maximum test duration. By enabling Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a "no limit" option for max_duration_ms by allowing it to be set to -1. This special value is then converted to None in RuntimeSettings and is excluded from the min_duration_ms validation. New tests have been added to cover this behavior. The review comments suggest replacing the magic number -1 with a named constant for improved readability and maintainability.
There was a problem hiding this comment.
Pull request overview
Adds support for treating max_duration_ms = -1 as “no wall-clock limit” so benchmark runs can continue until samples are exhausted instead of stopping at a fixed timeout.
Changes:
- Allow
max_duration_msto be-1in the config schema and relax duration validation accordingly. - Convert
max_duration_ms = -1from config intoRuntimeSettings.max_duration_ms = None(no timeout). - Add unit tests covering rejection of values
< -1and-1conversion behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
tests/unit/config/test_schema.py |
Adds unit tests for max_duration_ms < -1 validation and -1 -> None runtime conversion. |
src/inference_endpoint/config/schema.py |
Updates RuntimeConfig.max_duration_ms to allow -1 and adjusts duration validation logic. |
src/inference_endpoint/config/runtime_settings.py |
Maps max_duration_ms == -1 to None in derived RuntimeSettings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Review Council — Multi-AI Code ReviewReviewed by: Codex + Claude | Depth: quick No new critical/high issues found.
The existing 5 comments cover the key concerns for this change. 🤖 Generated with Claude Code |
Addresses PR feedback: 0 is a more natural sentinel for "no limit" since -1 could cause issues with duration conversions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
What does this PR do?
Close #197
Type of change
Related issues
Testing
Checklist