Skip to content

[CI] 【Hackathon 10th Spring No.31】功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充#6200

Open
kesmeey wants to merge 8 commits intoPaddlePaddle:developfrom
kesmeey:31test
Open

[CI] 【Hackathon 10th Spring No.31】功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充#6200
kesmeey wants to merge 8 commits intoPaddlePaddle:developfrom
kesmeey:31test

Conversation

@kesmeey
Copy link
Collaborator

@kesmeey kesmeey commented Jan 24, 2026

Motivation

功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充

image

develop分支,覆盖率68 ,miss行数156(53-58, 142->146, 183, 188, 196, 203->206, 206->191, 223-224, 232-234, 245-246, 267->269, 275, 278, 288, 292->296, 311->317, 312->317, 323, 330, 360-361, 373-375, 379, 393, 409-412, 423-436, 438, 489-491, 511, 551-552, 574-606, 619-620, 637, 641, 661-670, 681-696, 698, 734-736, 760-761, 782, 878->881, 908-984, 995-996, 1004, 1013, 1017, 1021, 1029-1080, 1104-1122, 1135-1141, 1147-1148, 1176-1187, 1205-1239)

image

当前pr,覆盖率85,miss行数 62

完成单测覆盖行数156-62=94

Modifications

add unittest tests/layers/test_sampler.py

Usage or Command

No need

Accuracy Tests

No need

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Jan 24, 2026

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Jan 24, 2026
@kesmeey kesmeey changed the title [CI] 【Hackathon 10th Spring No.31】功能模块 fastdeploy/cache_manager/cache_transfer_manager.py 单测补充 [CI] 【Hackathon 10th Spring No.31】功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充 Jan 24, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@c3d6d70). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #6200   +/-   ##
==========================================
  Coverage           ?   71.21%           
==========================================
  Files              ?      394           
  Lines              ?    53951           
  Branches           ?     8466           
==========================================
  Hits               ?    38421           
  Misses             ?    12762           
  Partials           ?     2768           
Flag Coverage Δ
GPU 71.21% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants