Skip to content

[CI] Add five unittest#4958

Merged
YuanRisheng merged 2 commits intoPaddlePaddle:developfrom
Echo-Nie:test_11
Nov 12, 2025
Merged

[CI] Add five unittest#4958
YuanRisheng merged 2 commits intoPaddlePaddle:developfrom
Echo-Nie:test_11

Conversation

@Echo-Nie
Copy link
Contributor

Motivation

Enhance code reliability by adding unit tests for critical modules, ensuring consistent behavior and catching regressions early.

Modifications

Added unit tests for:

  • fastdeploy/distributed/custom_all_reduce/cuda_wrapper.py
  • fastdeploy/distributed/communication.py
  • fastdeploy/logger/setup_logging.py
  • fastdeploy/logger/logger.py
  • fastdeploy/logger/handlers.py

Usage or Command

python tests/logger/setup_logging.py
...

Accuracy Tests

Name Stmts Miss Cover
cuda_wrapper.py 88 1 99%
communication.py 45 6 87%
setup_logging.py 31 0 100%
logger.py 74 3 96%
handlers.py 196 26 87%

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[CI]]
  • 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.

@YuanRisheng

@paddle-bot
Copy link

paddle-bot bot commented Nov 11, 2025

Thanks for your contribution!

@YuanRisheng YuanRisheng merged commit 2aabaec into PaddlePaddle:develop Nov 12, 2025
30 of 33 checks passed
@Echo-Nie Echo-Nie deleted the test_11 branch November 13, 2025 06:25
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