Skip to content

[Fix] test: Stub is_batch_invariant_mode_enabled in the GDN chunk output dispatch test - #52843

Merged
alphabetc1 merged 1 commit into
sgl-project:mainfrom
alphabetc1:fix/gdn-chunk-output-test-namespace
Nov 24, 2026
Merged

alphabetc1 merged 1 commit into
sgl-project:mainfrom
alphabetc1:fix/gdn-chunk-output-test-namespace

Conversation

@alphabetc1

@alphabetc1 alphabetc1 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

#44194 made chunk_fwd_o call is_batch_invariant_mode_enabled(). test_gdn_chunk_output_dispatch.py executes chunk_fwd_o extracted with ast in a hand-built namespace that lacks that name, so base-a-test-cpu fails on main with:

chunk_o.py:264 in chunk_fwd_o
NameError: name 'is_batch_invariant_mode_enabled' is not defined

Modifications

Add is_batch_invariant_mode_enabled (returning False, the default mode) to the test namespace.

Accuracy Tests

Test-only change.

Checklist

  • Format your code according to the Format code with pre-commit.
  • The test passes with the change and fails on main with the NameError above.

CI States

Latest PR Test (Base): ⊘ Skipped -- a maintainer comments /tag-and-rerun-ci to run CI tests.
Latest PR Test (Extra): ⊘ Skipped -- a maintainer comments /tag-and-rerun-ci to run CI tests.
Latest PR Test (AMD ROCm 10): ⊘ Skipped -- a maintainer comments /tag-and-rerun-ci to run CI tests.

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

@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 pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@alphabetc1

Copy link
Copy Markdown
Collaborator Author

/rerun-test -c

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/kernels/test_gdn_chunk_output_dispatch.py  # base-a

@alphabetc1
alphabetc1 merged commit d34afcc into sgl-project:main Nov 24, 2026
130 of 131 checks passed
@alphabetc1
alphabetc1 deleted the fix/gdn-chunk-output-test-namespace branch November 24, 2026 12:38
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