Skip to content

chore: upgrade guidellm to 0.8.1 - #6

Merged
aiwantaozi merged 1 commit into
gpustack:mainfrom
aiwantaozi:aiwantaozi/research-guidellm-upgrades-knee
Nov 23, 2026
Merged

aiwantaozi merged 1 commit into
gpustack:mainfrom
aiwantaozi:aiwantaozi/research-guidellm-upgrades-knee

Conversation

@aiwantaozi

Copy link
Copy Markdown
Collaborator

No description provided.

@gpustack-code-review

gpustack-code-review Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🔍 OpenCodeReview found 2 issue(s) in this PR.

  • ✅ Successfully posted inline: 0 comment(s)
  • 📋 Routed to summary by policy: 2 comment(s)

maintainability · low

📄 benchmark_runner/scenario_builder.py (L241-L243)

⚠️ GitHub could not post this as an inline comment: Routed to summary (severity low · category maintainability)

kwargs.pop("profile_args", None) or {} treats any falsy non-dict value (e.g. [], "", 0) as an empty object, silently skipping the isinstance check that rejects truthy non-dicts. This makes the validation contract inconsistent between truthy and falsy invalid inputs — a caller passing profile_args=[] gets their option silently ignored instead of the "must be an object" error. Prefer popping the raw value and only defaulting when it is None.

💡 Suggested Change

Before:

    profile_args = kwargs.pop("profile_args", None) or {}
    if not isinstance(profile_args, dict) or "kind" in profile_args:
        raise ValueError("profile_args must be an object without a kind field")

After:

    profile_args = kwargs.pop("profile_args", None)
    if profile_args is None:
        profile_args = {}
    if not isinstance(profile_args, dict) or "kind" in profile_args:
        raise ValueError("profile_args must be an object without a kind field")

bug · low

📄 benchmark_runner/scenario_builder.py (L338-L338)

⚠️ GitHub could not post this as an inline comment: Routed to summary (severity low · category bug)

metrics or {} treats falsy non-dict values (e.g. [], "", 0) as an empty object, so the isinstance validation above is bypassed for exactly those inputs: build_scenario_args(metrics=[]) is silently accepted while metrics=[1] raises. Use if metrics is None: metrics = {} so falsy non-dicts still hit the isinstance check, consistent with the intent of the guard.

💡 Suggested Change

Before:

    metrics = dict(metrics or {})

After:

    if metrics is None:
        metrics = {}
    if not isinstance(metrics, dict):
        raise ValueError("metrics must be a JSON object")

@aiwantaozi
aiwantaozi force-pushed the aiwantaozi/research-guidellm-upgrades-knee branch from d5ff695 to b6eca68 Compare November 12, 2026 10:46
@aiwantaozi
aiwantaozi force-pushed the aiwantaozi/research-guidellm-upgrades-knee branch from b6eca68 to c2ef9c5 Compare November 13, 2026 02:08
@aiwantaozi
aiwantaozi merged commit e0063d6 into gpustack:main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant