Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

ci: group npm Dependabot updates (#6087)

LearningCircuitee2de9dd767a
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 35d56a4a44..716316e008 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -39,6 +39,54 @@ updates:
commit-message:
prefix: "chore"
include: "scope"
+ groups:
+ frontend-minor-and-patch:
+ applies-to: version-updates
+ patterns:
+ - "*"
+ update-types:
+ - "minor"
+ - "patch"
+ frontend-security:
+ applies-to: security-updates
+ patterns:
+ - "*"
+
+ # Test-only JavaScript dependencies are kept separate from the runtime
+ # frontend, but one configuration covers every test package. Grouping avoids
+ # opening and testing the same Puppeteer/Playwright update once per directory.
+ - package-ecosystem: "npm"
+ directories:
+ - "/tests"
+ - "/tests/accessibility_tests"
+ - "/tests/api_tests_with_login"
+ - "/tests/infrastructure_tests"
+ - "/tests/puppeteer"
+ - "/tests/ui_tests"
+ - "/tests/ui_tests/playwright"
+ schedule:
+ interval: "weekly"
+ day: "tuesday"
+ time: "04:00"
+ open-pull-requests-limit: 5
+ labels:
+ - "dependencies"
+ - "javascript"
+ commit-message:
+ prefix: "chore"
+ include: "scope"
+ groups:
+ test-minor-and-patch:
+ applies-to: version-updates
+ patterns:
+ - "*"
+ update-types:
+ - "minor"
+ - "patch"
+ test-security:
+ applies-to: security-updates
+ patterns:
+ - "*"
# GitHub Actions
- package-ecosystem: "github-actions"
@@ -81,38 +129,3 @@ updates:
directory: /
schedule:
interval: daily
-
- - package-ecosystem: npm
- directory: /tests/api_tests_with_login
- schedule:
- interval: daily
-
- - package-ecosystem: npm
- directory: /tests/infrastructure_tests
- schedule:
- interval: daily
-
- - package-ecosystem: npm
- directory: /tests
- schedule:
- interval: daily
-
- - package-ecosystem: npm
- directory: /tests/puppeteer
- schedule:
- interval: daily
-
- - package-ecosystem: npm
- directory: /tests/ui_tests
- schedule:
- interval: daily
-
- - package-ecosystem: npm
- directory: /tests/ui_tests/playwright
- schedule:
- interval: daily
-
- - package-ecosystem: npm
- directory: /tests/accessibility_tests
- schedule:
- interval: daily
diff --git a/docs/CI_CD_INFRASTRUCTURE.md b/docs/CI_CD_INFRASTRUCTURE.md
index ff0a4227f2..bb46d9bf68 100644
--- a/docs/CI_CD_INFRASTRUCTURE.md
+++ b/docs/CI_CD_INFRASTRUCTURE.md
@@ -164,7 +164,8 @@ Dependabot automatically creates PRs for dependency updates:
| Ecosystem | Directories | Schedule |
|-----------|-------------|----------|
| Python (pip) | `/` | Weekly (Monday 04:00) |
-| npm | `/`, `/tests/*` | Weekly/Daily |
+| npm | `/` | Weekly (Monday 04:00) |
+| npm (test dirs) | `/tests/*` | Weekly (Tuesday 04:00) |
| GitHub Actions | `/` | Weekly |
| Docker | `/` | Daily |
diff --git a/tests/ci/test_dependabot_config.py b/tests/ci/test_dependabot_config.py
new file mode 100644
index 0000000000..d98e2f9d2f
--- /dev/null
+++ b/tests/ci/test_dependabot_config.py
@@ -0,0 +1,93 @@
+"""Regression tests for bounded Dependabot PR generation."""
+
+from pathlib import Path
+
+import yaml
+
+
+REPO_ROOT = Path(__file__).resolve().parents[2]
+DEPENDABOT_CONFIG = REPO_ROOT / ".github" / "dependabot.yml"
+TEST_NPM_DIRECTORIES = {
+ "/tests",
+ "/tests/accessibility_tests",
+ "/tests/api_tests_with_login",
+ "/tests/infrastructure_tests",
+ "/tests/puppeteer",
+ "/tests/ui_tests",
+ "/tests/ui_tests/playwright",
+}
+
+
+def _npm_entries():
+ config = yaml.safe_load(DEPENDABOT_CONFIG.read_text(encoding="utf-8"))
+ return [
+ update
+ for update in config["updates"]
+ if update["package-ecosystem"] == "npm"
+ ]
+
+
+def _test_lock_directories():
+ directories = set()
+ for lockfile in (REPO_ROOT / "tests").glob("**/package-lock.json"):
+ relative = lockfile.relative_to(REPO_ROOT)
+ if "node_modules" in relative.parts or any(
+ part.startswith(".") for part in relative.parts
+ ):
+ continue
+ directories.add(f"/{relative.parent.as_posix()}")
+ return directories
+
+
+def _assert_group(entry, name, *, applies_to, update_types=None):
+ group = entry["groups"][name]
+ assert group["applies-to"] == applies_to
+ assert group["patterns"] == ["*"]
+ if update_types is not None:
+ assert set(group["update-types"]) == set(update_types)
+
+
+def test_npm_updates_have_separate_grouped_runtime_and_test_streams():
+ entries = _npm_entries()
+
+ assert len(entries) == 2
+ root = next(entry for entry in entries if entry.get("directory") == "/")
+ tests = next(entry for entry in entries if "directories" in entry)
+
+ assert set(tests["directories"]) == TEST_NPM_DIRECTORIES
+ assert set(tests["directories"]) == _test_lock_directories()
+ assert tests["schedule"] == {
+ "interval": "weekly",
+ "day": "tuesday",
+ "time": "04:00",
+ }
+ assert root["schedule"]["interval"] == "weekly"
+
+
+def test_npm_minor_patch_and_security_updates_are_grouped():
+ entries = _npm_entries()
+ root = next(entry for entry in entries if entry.get("directory") == "/")
+ tests = next(entry for entry in entries if "directories" in entry)
+
+ _assert_group(
+ root,
+ "frontend-minor-and-patch",
+ applies_to="version-updates",
+ update_types={"minor", "patch"},
+ )
+ _assert_group(
+ root,
+ "frontend-security",
+ applies_to="security-updates",
+ )
+ _assert_group(
+ tests,
+ "test-minor-and-patch",
+ applies_to="version-updates",
+ update_types={"minor", "patch"},
+ )
+ _assert_group(
+ tests,
+ "test-security",
+ applies_to="security-updates",
+ )