Skip to content

[CI] Fix SPLADE pooler test broken by #38139#38495

Merged
noooop merged 2 commits intovllm-project:mainfrom
haosdent:fix/splade-pooler-test-use-real-metadata
Mar 30, 2026
Merged

[CI] Fix SPLADE pooler test broken by #38139#38495
noooop merged 2 commits intovllm-project:mainfrom
haosdent:fix/splade-pooler-test-use-real-metadata

Conversation

@haosdent
Copy link
Copy Markdown
Contributor

Summary

Supersedes revert PR #38490.

Test plan

  • pytest tests/models/language/pooling/test_splade_sparse_pooler.py -xvs passes locally

Replace `types.SimpleNamespace` mock with real `PoolingMetadata` dataclass
in `test_splade_pooler_matches_reference_formula`. The test broke after
PR vllm-project#38139 added `get_prompt_token_ids_cpu()` to PoolingMetadata and
updated SPLADESparsePooler to call it — the SimpleNamespace mock lacked
this method.

Using the real dataclass makes the test resilient to future interface
changes and matches the pattern used in production warmup code.

Signed-off-by: vllm-contributor <contributor@vllm.ai>

Signed-off-by: haosdent <haosdent@gmail.com>
@haosdent haosdent requested a review from noooop as a code owner March 30, 2026 02:14
Copy link
Copy Markdown

@claude claude bot left a comment

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.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the SPLADE sparse pooler tests by replacing types.SimpleNamespace with the PoolingMetadata class and adding necessary imports. The feedback identifies a potential issue with object aliasing when initializing pooling_params using list multiplication and suggests using a list comprehension instead to ensure each element is a unique instance.

Comment thread tests/models/language/pooling/test_splade_sparse_pooler.py
@haosdent
Copy link
Copy Markdown
Contributor Author

@yewentao256 Can you help to take a look, many thanks!

@noooop noooop enabled auto-merge (squash) March 30, 2026 02:25
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 30, 2026
@noooop noooop merged commit a08b773 into vllm-project:main Mar 30, 2026
16 checks passed
Elm8116 pushed a commit to Elm8116/vllm that referenced this pull request Mar 30, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: Elham Harirpoush <elham.harirpoush@arm.com>
benenzhu pushed a commit to benenzhu/vllm that referenced this pull request Mar 31, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: zhutaoyu <zhutaoyu97@gmail.com>
khluu pushed a commit that referenced this pull request Mar 31, 2026
Signed-off-by: haosdent <haosdent@gmail.com>
(cherry picked from commit a08b773)
neweyes pushed a commit to neweyes/vllm that referenced this pull request Mar 31, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: neweyes <328719365@qq.com>
@noooop noooop modified the milestone: v0.19.0 cherry picks Apr 1, 2026
EricccYang pushed a commit to EricccYang/vllm that referenced this pull request Apr 1, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: EricccYang <yangyang4991@gmail.com>
bhargav-patel-29 pushed a commit to Bharatgen-Tech/vllm that referenced this pull request Apr 1, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: bhargav-patel-29 <bhargav.patel@tihiitb.org>
yzong-rh pushed a commit to yzong-rh/vllm that referenced this pull request Apr 3, 2026
liuchenbing2026 pushed a commit to liuchenbing2026/vllm that referenced this pull request Apr 4, 2026
rishitdholakia13 pushed a commit to rishitdholakia13/vllm that referenced this pull request Apr 7, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: rishitdholakia13 <rishit+github@cohere.com>
puririshi98 pushed a commit to puririshi98/vllm that referenced this pull request Apr 7, 2026
…t#38495)

Signed-off-by: haosdent <haosdent@gmail.com>
Signed-off-by: Rishi Puri <riship@nvidia.com>
big-yellow-duck pushed a commit to EmbeddedLLM/vllm that referenced this pull request Apr 8, 2026
mtparet pushed a commit to blackfuel-ai/vllm that referenced this pull request Apr 9, 2026
EricccYang pushed a commit to EricccYang/vllm that referenced this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants