The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(ci): run desktop regressions when the shipped update page changes
Axl Ibiza, MBAa6a19fbe6950
diff --git a/scripts/ci/classify_changes.py b/scripts/ci/classify_changes.pyindex 71afcda6867..aee7d724a66 100644--- a/scripts/ci/classify_changes.py+++ b/scripts/ci/classify_changes.py@@ -67,6 +67,8 @@ import subprocessimport sys_FRONTEND = ("ui-tui/", "web/", "apps/") # TS typecheck-matrix packages+# Shipped page outside those packages, exercised by the desktop Electron suite.+_FRONTEND_FILES = {"scripts/desktop-update/ui.html"}_ROOT_NPM = {"package.json", "package-lock.json"} # shifts every package's tree_DOCKER_META = ("docker/", ".hadolint.yml", "Dockerfile") # docker setup_NIX_PATHS = ("nix/",) # nix files@@ -214,7 +216,10 @@ def classify(files: list[str]) -> dict[str, bool]:files = [f.strip() for f in files if f.strip()]python = any(not _py_irrelevant(f) for f in files)python_prod = any(not _py_irrelevant(f) and not _py_test_only(f) for f in files)- frontend = any(f.startswith(_FRONTEND) or f in _ROOT_NPM for f in files)+ frontend = any(+ f.startswith(_FRONTEND) or f in _ROOT_NPM or f in _FRONTEND_FILES+ for f in files+ )deps = any(f == "pyproject.toml" for f in files)npm_lock = any(f.split("/")[-1] == "package-lock.json" for f in files)docker_meta = any(f.startswith(_DOCKER_META) for f in files)diff --git a/tests/ci/test_classify_changes.py b/tests/ci/test_classify_changes.pyindex 43e33dd620b..a04a4dc4afe 100644--- a/tests/ci/test_classify_changes.py+++ b/tests/ci/test_classify_changes.py@@ -153,6 +153,12 @@ CASES = {["scripts/desktop-update/windows.ps1"],_lanes(python=True, desktop_updater=True),),+ # The shipped updater page is exercised by the desktop Electron suite;+ # a page-only change must run that suite as well as the server tests.+ "updater ui.html → frontend + desktop_updater": (+ ["scripts/desktop-update/ui.html"],+ _lanes(python=True, frontend=True, desktop_updater=True),+ ),"desktop-update test → desktop_updater": (["tests/test_desktop_update_windows_progress.py"],_lanes(python=True, python_prod=False, scan=True, desktop_updater=True),