Skip to content

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.

Keep the JS-bundle scan check size-agnostic so the baseline does not drift (#6770)

Daniel Han71207827ca05
diff --git a/scripts/scan_packages.py b/scripts/scan_packages.py
index 4be9fc5efbe..ce9763e2350 100644
--- a/scripts/scan_packages.py
+++ b/scripts/scan_packages.py
@@ -1208,9 +1208,10 @@ def check_js_file(content: str, filename: str, package: str) -> list[Finding]:
HIGH,
package,
filename,
- f"Python wheel ships large ({len(content) // 1024} KB) JS bundle "
- "(uncommon; manually review)",
- "",
+ # Size stays in evidence, not the check label, so the baseline key
+ # does not drift when a wheel's bundle grows by a few KB.
+ "Python wheel ships large JS bundle (uncommon; manually review)",
+ f"{len(content) // 1024} KB JS bundle",
)
)
return findings
diff --git a/scripts/scan_packages_baseline.json b/scripts/scan_packages_baseline.json
index f953f4d2068..0c10ae3222f 100644
--- a/scripts/scan_packages_baseline.json
+++ b/scripts/scan_packages_baseline.json
@@ -1181,7 +1181,7 @@
{
"package": "tensorboard",
"file": "tensorboard/plugins/projector/tf_projector_plugin/projector_binary.js",
- "check": "Python wheel ships large (1918 KB) JS bundle (uncommon; manually review)",
+ "check": "Python wheel ships large JS bundle (uncommon; manually review)",
"severity": "HIGH",
"evidence": ""
},