tests: the pinned DFlash2 drafter address is allowed in strata_control (only strata drafting fetch reaches it, behind acquisition.require)

This commit is contained in:
Niko1221 committed 2026-10-22 21:19:41 +02:00
1 parent 164dd3bbef
commit a14e85d8e6
1 file changed
+6 -3
+6 -3
View File
@@ -237,9 +237,12 @@ class InstalledModelsNeedNoNetwork(unittest.TestCase):
"""strata launch, serve, the monitor and the API reach no model host: the names are in setup.py and the install
tools only (and strata_control.acquisition refuses a download under STRATA_NO_ACQUIRE=1)."""
hosts = re.compile(r"huggingface\.co|hf-mirror|HF_ENDPOINT|modelscope|hf_hub_download", re.I)
# The one harmless mention: the model-card link a benchmark result file names. Nothing opens it. Dropping just
# that line from the scan keeps the rule exact for everything else.
harmless = ('MODEL_CARD_URL = "https://huggingface.co/Qwen/Qwen3.8-Flash-Next"',)
# The harmless mentions: the model-card link a benchmark result file names (nothing opens it), and the pinned
# DFlash2 drafter address, which only `strata drafting fetch` downloads from, behind acquisition.require (refused
# under STRATA_NO_ACQUIRE, so a start or a server never reaches it). Dropping just those lines from the scan keeps
# the rule exact for everything else.
harmless = ('MODEL_CARD_URL = "https://huggingface.co/Qwen/Qwen3.8-Flash-Next"',
'BASE_URL = f"https://huggingface.co/{REPO}/resolve/{REVISION}/"')
found = []
for folder in ("strata_cli", "serve", "strata_control"):
for p in (ROOT / folder).rglob("*.py"):