Skip to content

test(dsv4): accept ValueError from reasoning-effort validation - #2779

Merged
Zhichenzzz merged 1 commit into
mainfrom
zhichen/fix-dsv4-reasoning-effort-test
Aug 27, 2026
Merged

Zhichenzzz merged 1 commit into
mainfrom
zhichen/fix-dsv4-reasoning-effort-test

Conversation

@Zhichenzzz

Copy link
Copy Markdown
Collaborator

Every PR's stage-a-cpu run currently fails on test_reasoning_effort_invalid_value_raises: sglang changed its reasoning-effort validation from an assert to raising ValueError ('Invalid reasoning effort ... expected one of [high, max]'), and the test pins pytest.raises(AssertionError). Accept both exception types so the test tracks the delegated validation regardless of sglang version. Seen on #2777's run 33045107325; unrelated to that PR's diff.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@Zhichenzzz
Zhichenzzz force-pushed the zhichen/fix-dsv4-reasoning-effort-test branch from 0edb70c to 15d684c Compare August 27, 2026 06:32
@Zhichenzzz Zhichenzzz changed the title test(dsv4): accept ValueError from sglang reasoning-effort validation test(dsv4): accept ValueError from reasoning-effort validation Aug 27, 2026
CI runners carry different sglang versions: older ones assert the allowed
set (AssertionError: Invalid reasoning effort: ultra), newer ones raise
ValueError with the same message. Pin the message, not the exception type.
@Zhichenzzz
Zhichenzzz force-pushed the zhichen/fix-dsv4-reasoning-effort-test branch from 15d684c to 20802c7 Compare August 27, 2026 06:36
@Zhichenzzz
Zhichenzzz merged commit 6e982cf into main Aug 27, 2026
24 checks passed
@Zhichenzzz
Zhichenzzz deleted the zhichen/fix-dsv4-reasoning-effort-test branch August 27, 2026 06:53
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.

2 participants