feat: 新增 Python 3.14t 自由线程镜像 (#6434)

* fix(resource): select free-threaded extension ABI

* chore(deps): require moviepilot-rust 0.2.9

* perf: add free-threaded runtime comparison

* feat: add free-threaded runtime profile

* chore(deps): require moviepilot-rust 0.3.0

* test: isolate system endpoint import graph

* fix(docker): preserve runtime profile during recovery

* feat(runtime): expose active GIL state

* feat(plugin): log GIL fallback attribution

* test: refresh runtime observability dependency baseline

* fix(plugin): validate the active uv runtime profile

* test(runtime): expand free-threaded benchmark evidence

* docs(runtime): define v3t governance gates

* test(runtime): separate rust benchmark modes

* docs: sync free-threaded architecture baseline

* perf: add PostgreSQL driver comparison

* docs(runtime): record final free-threaded evidence

* fix(runtime): converge dual-profile dependency verification

* fix(runtime): scope Python 3.14 warning filter

* fix(runtime): match actual oss2 syntax warning

* docs(runtime): refresh free-threaded benchmark evidence

* test(architecture): refresh runtime dependency baseline

* ci: skip unused Trivy Java database

* build: exclude local verification artifacts

* docs(runtime): refresh PostgreSQL driver benchmarks

* docs(runtime): record plugin restore acceptance

* docs(runtime): record amd64 candidate acceptance

* ci: pin beta image publisher action

* test(architecture): merge runtime dependency baseline

* feat(runtime): expose Python GIL status

* docs(runtime): document Python runtime status fields
This commit is contained in:
InfinityPacer
2026-08-24 17:48:14 +08:00
committed by GitHub
parent 88dce4ca8e
commit 326b5cf3ad
63 changed files with 5294 additions and 253 deletions
+38 -17
View File
@@ -7,26 +7,47 @@ def test_app_installs_known_oss2_invalid_escape_warning_filter():
"""
app 初始化过滤器应覆盖 oss2 的无效转义警告。
"""
app._filter_third_party_startup_warnings()
action, message, category, module, lineno = warnings.filters[0]
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
app._filter_third_party_startup_warnings()
warnings.warn_explicit(
f'"{chr(92)}&" is an invalid escape sequence.',
SyntaxWarning,
filename="oss2/api.py",
lineno=703,
module="oss2.api",
)
assert action == "ignore"
assert message.match("invalid escape sequence '\\&'")
assert category is SyntaxWarning
assert module is None
assert lineno == 0
assert caught == []
def test_app_does_not_hide_other_invalid_escape_warnings():
"""其他无效转义仍应暴露,避免过滤器遮蔽新问题。"""
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
app._filter_third_party_startup_warnings()
warnings.warn_explicit(
f'"{chr(92)}q" is an invalid escape sequence.',
SyntaxWarning,
filename="app/example.py",
lineno=1,
module="app.example",
)
assert len(caught) == 1
def test_app_installs_google_genai_python314_warning_filter():
"""app 初始化过滤器应覆盖 Google GenAI SDK 的 Python 3.14 弃用警告。"""
app._filter_third_party_startup_warnings()
with warnings.catch_warnings(record=True) as caught:
warnings.simplefilter("always")
app._filter_third_party_startup_warnings()
warnings.warn_explicit(
"'_UnionGenericAlias' is deprecated and slated for removal in Python 3.17",
DeprecationWarning,
filename="google/genai/types.py",
lineno=1,
module="google.genai.types",
)
assert any(
action == "ignore"
and message.match("'_UnionGenericAlias' is deprecated and slated for removal in Python 3.17")
and category is DeprecationWarning
and module is not None
and module.match("google.genai.types")
and lineno == 0
for action, message, category, module, lineno in warnings.filters
)
assert caught == []