BUILD202 (2026.11.05.3) — сначала снимать плашку и уточнить обработку голов

This commit is contained in:
2026-11-05 13:43:20 +03:00
parent 357a631207
commit 364cffabbb
31 changed files with 3828 additions and 115 deletions

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
import asyncio
from pathlib import Path
import re
from types import SimpleNamespace
from hockey_data.agent_bridge import VmixAgentHub
@@ -34,7 +35,12 @@ def test_build100_frontend_shortcut_edges_and_pending_press_are_guarded() -> Non
assert 'const pending = state.pendingShortcutSequenceRuns.has(sequence.id);' in APP_JS
assert 'if (!pending) state.pendingShortcutSequenceRuns.set(sequence.id, { ...meta, queued: true });' in APP_JS
assert 'one stale/broken title must not prevent the remaining title' in APP_JS
assert 'requestTimeoutMs = Math.min(60000' in APP_JS
assert re.search(
r"const requestTimeoutMs = Number\.isFinite\(execution\.goalHideDelaySeconds\)\s*"
r"\? 75000 \+ hockeyGoalHideDelaySeconds\(execution\.goalHideDelaySeconds\) \* 1000\s*"
r": Math\.min\(60000, Math\.max\(20000, 10000 \+ part\.length \* 5000\)\);",
APP_JS,
)
assert 'BUILD_VERSION = "2026.08.24.4"' in APP
@@ -103,6 +109,12 @@ def test_build102_interactive_shortcut_is_dispatched_without_ack_or_mapping_lock
def test_build102_backend_marks_interactive_shortcuts_no_ack() -> None:
assert 'transport = "shortcut-no-ack" if interactive_shortcut' in BRIDGE
assert 'async with self._device_vmix_shortcut_send_lock(target_device_id)' in BRIDGE
assert 'async with self._runtime_shortcut_guard(target_device_id)' in BRIDGE
assert re.search(
r"async def _runtime_shortcut_guard\(self, device_id: str\):\s*"
r"if self\._output_hide_active\(device_id\):\s*yield\s*else:\s*"
r"async with self\._device_vmix_shortcut_send_lock\(device_id\):\s*yield",
BRIDGE,
)
assert '"ack_waited": False' in BRIDGE
assert '"confirmation": "not_waited" if interactive_shortcut else "ack"' in BRIDGE