feat: 审计 python sdk 版本升级 --story=136347644 - #41
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #41 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 21
Lines ? 566
Branches ? 0
========================================
Hits ? 566
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
HermitWJ
force-pushed
the
feat/py314-otel143-compat
branch
from
August 10, 2026 06:39
a36e6ec to
83036bb
Compare
0RAJA
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
升级审计 Python SDK 以兼容 Python 3.12~3.14 及 OpenTelemetry 1.43,同步优化 CI 流程与测试覆盖。
变更内容
11 files, +318/-96
requirements.txt/requirements_dev.txt/setup.py>=1.43.0,<1.44.0,python_requires>=3.10,unittest-xml-reporting>=3.2替换xmlrunner==1.7.7processor.py/setup.pyLazyBatchLogProcessor退化空壳(OTel>=1.34 已内建 fork 安全);open()显式encoding="utf-8"兼容 Windows GBKsetup.py.github/workflows/unittest_py3.ymltest_ot.py/test_django.pyrelease.md/docs/usage.md/VERSION关键兼容性说明
pipes模块移除,bk_resource<=0.4.14需pipes-compatshimxmlrunner==1.7.7引用已删除的unittest._TextTestResult→ 换unittest-xml-reportingJaegerExporter,BatchSpanProcessor私有成员重构,SDK 层无需感知blueapps4.x 全系列顶层import JaegerExporter,建议 backend 摘除instrument_app自装配涉及仓库
bk-audit-python-sdkfeat/py314-otel143-compata36e6ec