Repository navigation
Executor: Support numeric list arguments - #877
Draft
gusui-msft wants to merge 1 commit into
Draft
gusui-msft wants to merge 1 commit into
gusui-msft wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused implementation matches the requirements, includes regression coverage and has no identified blocking issues.
0 open findings
What changed in this PR
Fixes executor argument conversion so numeric lists can reach benchmark argument parsers without raising TypeError.
Changes:
- Converts string, integer and float list elements to argument tokens.
- Explicitly rejects unsupported list elements.
- Adds dictionary and OmegaConf round-trip tests while preserving existing argument behavior.
| File | Description |
|---|---|
| tests/executor/test_executor.py | Tests supported lists, rejected elements and existing argument behavior. |
| superbench/executor/executor.py | Validates, serializes and documents supported list elements. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #877 +/- ##
==========================================
+ Coverage 86.31% 86.32% +0.01%
==========================================
Files 107 107
Lines 8256 8258 +2
==========================================
+ Hits 7126 7129 +3
+ Misses 1130 1129 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The executor supports list-valued parameters but joins their elements as strings without conversion. Valid numeric lists such as
msg_size: [8, 16]raise TypeError before the benchmark starts.Major Revision
Minor Revision
Validation
3e8f2b5e66fb65ef08bded80e693d7537728bee4.tests/executor/test_executor.py -k get_arguments— 3 passed, covering both containers and integer/float/string/flag/empty/invalid cases.git diff --checkpassed.