Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Installer differential: ignore winget spinner frames in the transcript (#12965)
Daniel Han0e8fc1ab9f2d
diff --git a/.github/scripts/compare_installer_evidence.py b/.github/scripts/compare_installer_evidence.pyindex 0a608ce71ae..72ccef5604d 100644--- a/.github/scripts/compare_installer_evidence.py+++ b/.github/scripts/compare_installer_evidence.py@@ -205,11 +205,18 @@ def _apply_value_normalisers(line: str) -> str:return out+# winget's busy spinner. While it queries a source it draws one of these on a line of its own, and how+# many frames reach the log depends only on how long the query took: two runs of the same install.ps1+# differed by a single " -" around `winget install astral-sh.uv`. A frame carries nothing a user+# reads, and a line with any other text on it (" - Packages") still compares.+_SPINNER_FRAMES = frozenset("-\\|/")++def normalise_transcript(text: str) -> list[str]:lines = []for raw in text.splitlines():line = normalise_line(raw)- if not line.strip():+ if not line.strip() or line.strip() in _SPINNER_FRAMES:continue# Runner-injected noise, and ONLY what the runner injects. These carry the workflow's own# group names and the side's SHA, so they differ between sides for nothing to do with thediff --git a/tests/python/test_installer_differential_comparer.py b/tests/python/test_installer_differential_comparer.pyindex 08c892163e7..86bd47a0c0f 100644--- a/tests/python/test_installer_differential_comparer.py+++ b/tests/python/test_installer_differential_comparer.py@@ -207,6 +207,26 @@ def test_known_noise_does_not_fail(tmp_path: Path) -> None:assert result.returncode == 0, f"noise failed the lane: {result.stdout}"+def test_winget_spinner_frames_do_not_fail(tmp_path: Path) -> None:+ """How many spinner frames winget leaves in the log depends on how long its source query took."""+ lines = BASELINE.split("\n")+ base = _write(+ tmp_path / "base", transcript = "\n".join(lines[:1] + [" - ", " \\ "] + lines[1:])+ )+ head = _write(+ tmp_path / "head", transcript = "\n".join(lines[:1] + [" - ", " | ", " - "] + lines[1:])+ )+ result = _run(base, head)+ assert result.returncode == 0, f"spinner frames failed the lane: {result.stdout}"+++def test_a_dash_line_with_text_still_compares(tmp_path: Path) -> None:+ """Only a bare frame is dropped: winget's own " - Packages" list is output the user reads."""+ base = _write(tmp_path / "base", transcript = BASELINE + "\n - Packages")+ head = _write(tmp_path / "head", transcript = BASELINE + "\n - Package")+ assert _run(base, head).returncode == 2++def test_version_drift_is_normalised_but_still_printed(tmp_path: Path) -> None:"""Normalising something away without saying so is how a lane stops telling you anything."""base = _write(tmp_path / "base")