test(cosyvoice): raise the advisory floors to GitHub's fixes
The floors came from OSV alone, which did not list the protobuf and transformers advisories GitHub flagged once the manifest reached main (Dependabot #2030, #2031). Raise them to the first fixed releases so a later downgrade fails the test. Note that transformers 5 was checked against CosyVoice's tokenizer and cached decoding.
This commit is contained in:
@@ -18,6 +18,7 @@ the frozen-backend fallback mirror it for their toolchains.
|
||||
### Changed
|
||||
|
||||
- Model Catalogue is one page: a setup summary (speech, transcription, dictation, language model) on top, one TTS / ASR / LLM switch, and each family's downloadable weights listed under its engines; the separate Models pane and the Settings → Voice → Engines / Models signposts are gone, the models directory and voice previews moved to Settings → Storage and the HF mirror to Network (#2013)
|
||||
- CosyVoice 3 installs patched protobuf and transformers releases, clearing five security advisories (#2030, #2031)
|
||||
|
||||
### CI
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
# affected release: diffusers, hydra-core, lightning, modelscope, onnx,
|
||||
# protobuf and transformers. This exact set was installed on Windows and
|
||||
# passes the installer's import probe (tests pin the advisory floors).
|
||||
# transformers 5 was also checked against CosyVoice's own tokenizer (token
|
||||
# ids identical to 4.57.6) and its cached step-by-step decoding.
|
||||
# - Dropped: deepspeed and tensorrt-cu12* (Linux-only acceleration);
|
||||
# onnxruntime-gpu (the onnxruntime below serves every host); pyworld and
|
||||
# pyarrow (not needed to import or run CosyVoice; pyworld has no Python 3.10
|
||||
|
||||
@@ -233,16 +233,17 @@ def test_a_missing_model_override_is_an_error_not_a_silent_swap(monkeypatch, tmp
|
||||
|
||||
|
||||
# The first release of each package that fixes the advisories upstream's pins
|
||||
# fall under (OSV, checked 2026-09-10). Raising a pin is fine; going below
|
||||
# one of these reintroduces a known vulnerability.
|
||||
# fall under, per OSV and GitHub's advisory database (checked 2026-09-10;
|
||||
# only GitHub listed the protobuf and transformers ones). Raising a pin is
|
||||
# fine; going below one of these reintroduces a known vulnerability.
|
||||
_ADVISORY_FLOORS = {
|
||||
"diffusers": "0.38.0",
|
||||
"hydra-core": "1.3.4",
|
||||
"lightning": "2.6.6",
|
||||
"modelscope": "1.27.0",
|
||||
"onnx": "1.21.0",
|
||||
"protobuf": "4.25.8",
|
||||
"transformers": "4.53.0",
|
||||
"protobuf": "5.29.6",
|
||||
"transformers": "5.10.0",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user