Skip to content

[CI] Ignore new custom ops stub file in coveragerc#5177

Merged
EmmonsCurse merged 1 commit intoPaddlePaddle:developfrom
cattidea:cov/ignore-new-custom-ops-stub-file-in-codecov
Nov 23, 2025
Merged

[CI] Ignore new custom ops stub file in coveragerc#5177
EmmonsCurse merged 1 commit intoPaddlePaddle:developfrom
cattidea:cov/ignore-new-custom-ops-stub-file-in-codecov

Conversation

@SigureMo
Copy link
Member

@SigureMo SigureMo commented Nov 23, 2025

Motivation

#5156 (comment)

新的自定义算子 layout 生成的 stub 文件为 fastdeploy/model_executor/ops/gpu/fastdeploy_ops/__init__.py 而不是之前的 fastdeploy/model_executor/ops/gpu/fastdeploy_ops.py,因此需要在 coveragerc 里 ignore 掉,避免覆盖率降低

Modifications

scripts/.coveragerc 添加 fastdeploy/model_executor/ops/gpu/fastdeploy_ops/__init__.py

Usage or Command

no

Accuracy Tests

no

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.

Copilot AI review requested due to automatic review settings November 23, 2025 13:22
@paddle-bot
Copy link

paddle-bot bot commented Nov 23, 2025

Thanks for your contribution!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new exclusion pattern to the code coverage configuration to ignore the __init__.py stub file created in the fastdeploy_ops subdirectory for GPU custom operations.

  • Adds coverage exclusion for the __init__.py file in the fastdeploy_ops package directory under GPU ops
  • This aligns with the modern PEP 517/518 installation method where custom ops are packaged in a subdirectory with their own __init__.py file

@SigureMo SigureMo changed the title [Coverage] Ignore new custom ops stub file in codecov [Coverage] Ignore new custom ops stub file in coveragerc Nov 23, 2025
@SigureMo SigureMo changed the title [Coverage] Ignore new custom ops stub file in coveragerc [CI] Ignore new custom ops stub file in coveragerc Nov 23, 2025
@codecov-commenter
Copy link

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5177   +/-   ##
==========================================
  Coverage           ?   57.68%           
==========================================
  Files              ?      317           
  Lines              ?    38445           
  Branches           ?     5762           
==========================================
  Hits               ?    22176           
  Misses             ?    14490           
  Partials           ?     1779           
Flag Coverage Δ
diff 57.68% <ø> (?)

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.

@EmmonsCurse EmmonsCurse merged commit b9e76f1 into PaddlePaddle:develop Nov 23, 2025
19 of 23 checks passed
@SigureMo SigureMo deleted the cov/ignore-new-custom-ops-stub-file-in-codecov branch November 23, 2025 14:33
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.

3 participants