From 5993d35082799eb5e85a57a0724167043e6f237e Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:56:17 +0100 Subject: [PATCH 1/2] fix(nightly): no chat model, and GitHub Actions by major version (#573) The nightly scan regression has been red since 2026-10-21: - Since #575 (2026-10-30) the nightly agent calls the real chat model. LiteLLM saw ~600 calls averaging 11 s (p99 147 s) during the run, more than an hour of model time, on the gateway prod also uses, so every code target missed the 1500 s budget. LLM triage, code review and the control judge never gate the nightly, so the chat model is unset again; LlmClient now sends nothing without one. Embeddings stay. - GitHub Actions referenced by a moving tag (actions/deploy-pages@v5) are resolved to today's release, so every upstream patch release broke the Zephyr baselines. The snapshot keeps the major version. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/nightly.yml | 12 ++++----- compliance-agent/tests/nightly.rs | 25 ++++++++++++++++++- .../baselines/firmware-zephyr-example.json | 16 ++++++------ .../baselines/fw-zephyr-example-pinned.json | 16 ++++++------ .../mobile-public-android-nowinandroid.json | 4 +-- 5 files changed, 48 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/nightly.yml b/.gitea/workflows/nightly.yml index 7310404..e0187d8 100644 --- a/.gitea/workflows/nightly.yml +++ b/.gitea/workflows/nightly.yml @@ -63,14 +63,14 @@ jobs: MONGODB_URI: mongodb://root:example@mongo:27017/?authSource=admin MONGODB_DATABASE: nightly PW_FEATURES: source_only - # Optional. Without an LLM the control judge stamps no control refs, - # which the report lists as advisory; it never fails the run. + # No chat model: LLM triage, code review and the control judge are + # off (LlmClient sends nothing without LITELLM_MODEL, #575). Their + # output never gates the run, and with the model on, ~600 calls of + # 11 s on average (p99 147 s) on the gateway prod also uses kept + # every scan past NIGHTLY_TIMEOUT_SECS from 2026-10-30 on (#573). + # Embeddings stay on: the gateway's embedding model. LITELLM_URL: ${{ secrets.NIGHTLY_LITELLM_URL }} LITELLM_API_KEY: ${{ secrets.NIGHTLY_LITELLM_API_KEY }} - # The models stage and prod run. Without them the agent asked for - # gpt-4o / text-embedding-3-small, which the gateway refuses (425 - # failed requests a night until 2026-10-28). - LITELLM_MODEL: Qwen3.8-27B LITELLM_EMBED_MODEL: bge-multilingual-gemma2 # Optional. The CODESYS CVE match queries NVD, which rate-limits # unauthenticated clients; a key keeps those CVEs from going missing. diff --git a/compliance-agent/tests/nightly.rs b/compliance-agent/tests/nightly.rs index cc81a83..40fbc40 100644 --- a/compliance-agent/tests/nightly.rs +++ b/compliance-agent/tests/nightly.rs @@ -514,7 +514,7 @@ async fn collect(agent: &Agent, target_id: &str, run: &Value) -> Collected { "{}:{}@{}{in_image}", text(e, "package_manager"), text(e, "name"), - text(e, "version") + blessed_version(&text(e, "package_manager"), &text(e, "version")) )); for v in e["known_vulnerabilities"].as_array().into_iter().flatten() { snapshot.cves.insert(text(v, "id")); @@ -590,6 +590,20 @@ async fn wait_for_runs( done } +/// The version a snapshot keeps of a component. A GitHub Action is named by +/// a moving tag (`actions/deploy-pages@v5`), which the scan resolves to the +/// release it points to today (`v5.0.1`): the snapshot keeps the major +/// version, so an upstream patch release does not break the baseline (#573). +/// A commit SHA has no dot and stays whole. +fn blessed_version(package_manager: &str, version: &str) -> String { + if package_manager == "github" { + if let Some((major, _)) = version.split_once('.') { + return major.to_string(); + } + } + version.to_string() +} + fn baseline_path(root: &Path, key: &str) -> PathBuf { root.join("fixtures/nightly/baselines") .join(format!("{key}.json")) @@ -770,6 +784,15 @@ mod unit { items.iter().map(|s| s.to_string()).collect() } + #[test] + fn a_github_action_keeps_its_major_version_only() { + assert_eq!(blessed_version("github", "v5.0.1"), "v5"); + assert_eq!(blessed_version("github", "v1"), "v1"); + let sha = "38a6d9b276ed434454900130cacc87d058d3ac62"; + assert_eq!(blessed_version("github", sha), sha); + assert_eq!(blessed_version("cargo", "1.0.15"), "1.0.15"); + } + #[test] fn exact_sets_report_both_directions_and_at_least_sets_only_losses() { let blessed = Snapshot { diff --git a/fixtures/nightly/baselines/firmware-zephyr-example.json b/fixtures/nightly/baselines/firmware-zephyr-example.json index e7ef691..87f4a48 100644 --- a/fixtures/nightly/baselines/firmware-zephyr-example.json +++ b/fixtures/nightly/baselines/firmware-zephyr-example.json @@ -4,14 +4,14 @@ "malware" ], "sbom": [ - "github:actions/checkout@v7.0.1", - "github:actions/configure-pages@v6.0.0", - "github:actions/deploy-pages@v5.0.0", - "github:actions/setup-python@v7.0.0", - "github:actions/upload-artifact@v7.0.1", - "github:actions/upload-pages-artifact@v5.0.0", - "github:zephyrproject-rtos/action-dco@v1.0.0", - "github:zephyrproject-rtos/action-zephyr-setup@v1.0.15", + "github:actions/checkout@v7", + "github:actions/configure-pages@v6", + "github:actions/deploy-pages@v5", + "github:actions/setup-python@v7", + "github:actions/upload-artifact@v7", + "github:actions/upload-pages-artifact@v5", + "github:zephyrproject-rtos/action-dco@v1", + "github:zephyrproject-rtos/action-zephyr-setup@v1", "library:cmsis_6@", "library:hal_nordic@", "library:hal_stm32@", diff --git a/fixtures/nightly/baselines/fw-zephyr-example-pinned.json b/fixtures/nightly/baselines/fw-zephyr-example-pinned.json index e7ef691..87f4a48 100644 --- a/fixtures/nightly/baselines/fw-zephyr-example-pinned.json +++ b/fixtures/nightly/baselines/fw-zephyr-example-pinned.json @@ -4,14 +4,14 @@ "malware" ], "sbom": [ - "github:actions/checkout@v7.0.1", - "github:actions/configure-pages@v6.0.0", - "github:actions/deploy-pages@v5.0.0", - "github:actions/setup-python@v7.0.0", - "github:actions/upload-artifact@v7.0.1", - "github:actions/upload-pages-artifact@v5.0.0", - "github:zephyrproject-rtos/action-dco@v1.0.0", - "github:zephyrproject-rtos/action-zephyr-setup@v1.0.15", + "github:actions/checkout@v7", + "github:actions/configure-pages@v6", + "github:actions/deploy-pages@v5", + "github:actions/setup-python@v7", + "github:actions/upload-artifact@v7", + "github:actions/upload-pages-artifact@v5", + "github:zephyrproject-rtos/action-dco@v1", + "github:zephyrproject-rtos/action-zephyr-setup@v1", "library:cmsis_6@", "library:hal_nordic@", "library:hal_stm32@", diff --git a/fixtures/nightly/baselines/mobile-public-android-nowinandroid.json b/fixtures/nightly/baselines/mobile-public-android-nowinandroid.json index b29c42b..f66b449 100644 --- a/fixtures/nightly/baselines/mobile-public-android-nowinandroid.json +++ b/fixtures/nightly/baselines/mobile-public-android-nowinandroid.json @@ -13,8 +13,8 @@ "github:android-actions/setup-android@v3", "github:github/codeql-action/upload-sarif@v3", "github:gradle/actions/setup-gradle@v4", - "github:jlumbroso/free-disk-space@v1.3.1", - "github:madrapps/jacoco-report@v1.7.1", + "github:jlumbroso/free-disk-space@v1", + "github:madrapps/jacoco-report@v1", "github:reactivecircus/android-emulator-runner@v2", "github:stefanzweifel/git-auto-commit-action@v5", "maven:accompanist-permissions@0.37.0", -- 2.54.1 From 7b4c6ce08563d06d888f36bfdaaececb01101c60 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:08:25 +0100 Subject: [PATCH 2/2] fix(nightly): GHSA-f23m-r3pf-42rh no longer affects the fixtures' lodash OSV narrowed the advisory on 2026-11-03 to lodash 4.17.23 up to 4.18.1; the fixtures pin 4.17.15 and 4.17.20, so the scan rightly stops reporting it. Co-Authored-By: Claude Opus 5.5 --- fixtures/nightly/baselines/archive-order-intake-tgz.json | 1 - fixtures/nightly/baselines/archive-order-intake.json | 1 - fixtures/nightly/baselines/js-bun.json | 1 - fixtures/nightly/baselines/js-npm-lock-v3.json | 1 - fixtures/nightly/baselines/js-pnpm.json | 1 - fixtures/nightly/baselines/js-yarn-berry.json | 1 - fixtures/nightly/baselines/js-yarn-classic.json | 1 - fixtures/nightly/baselines/mobile-react-native.json | 1 - 8 files changed, 8 deletions(-) diff --git a/fixtures/nightly/baselines/archive-order-intake-tgz.json b/fixtures/nightly/baselines/archive-order-intake-tgz.json index 717cc6a..96e5791 100644 --- a/fixtures/nightly/baselines/archive-order-intake-tgz.json +++ b/fixtures/nightly/baselines/archive-order-intake-tgz.json @@ -20,7 +20,6 @@ "cves": [ "GHSA-29mw-wpgm-hmr9", "GHSA-35jh-r3h4-6jhm", - "GHSA-f23m-r3pf-42rh", "GHSA-p6mc-m468-83gw", "GHSA-r5fr-rjxr-66jc", "GHSA-vh95-rmgr-6w4m", diff --git a/fixtures/nightly/baselines/archive-order-intake.json b/fixtures/nightly/baselines/archive-order-intake.json index 717cc6a..96e5791 100644 --- a/fixtures/nightly/baselines/archive-order-intake.json +++ b/fixtures/nightly/baselines/archive-order-intake.json @@ -20,7 +20,6 @@ "cves": [ "GHSA-29mw-wpgm-hmr9", "GHSA-35jh-r3h4-6jhm", - "GHSA-f23m-r3pf-42rh", "GHSA-p6mc-m468-83gw", "GHSA-r5fr-rjxr-66jc", "GHSA-vh95-rmgr-6w4m", diff --git a/fixtures/nightly/baselines/js-bun.json b/fixtures/nightly/baselines/js-bun.json index efa140d..fc610bc 100644 --- a/fixtures/nightly/baselines/js-bun.json +++ b/fixtures/nightly/baselines/js-bun.json @@ -26,7 +26,6 @@ "GHSA-7q8q-rj6j-mhjq", "GHSA-898c-q2cr-xwhg", "GHSA-cph5-m8f7-6c5x", - "GHSA-f23m-r3pf-42rh", "GHSA-fvcv-3m26-pcqx", "GHSA-hfxv-24rg-xrqf", "GHSA-j5f8-grm9-p9fc", diff --git a/fixtures/nightly/baselines/js-npm-lock-v3.json b/fixtures/nightly/baselines/js-npm-lock-v3.json index 2496242..0f5d98a 100644 --- a/fixtures/nightly/baselines/js-npm-lock-v3.json +++ b/fixtures/nightly/baselines/js-npm-lock-v3.json @@ -27,7 +27,6 @@ "GHSA-7q8q-rj6j-mhjq", "GHSA-898c-q2cr-xwhg", "GHSA-cph5-m8f7-6c5x", - "GHSA-f23m-r3pf-42rh", "GHSA-fvcv-3m26-pcqx", "GHSA-hfxv-24rg-xrqf", "GHSA-j5f8-grm9-p9fc", diff --git a/fixtures/nightly/baselines/js-pnpm.json b/fixtures/nightly/baselines/js-pnpm.json index efa140d..fc610bc 100644 --- a/fixtures/nightly/baselines/js-pnpm.json +++ b/fixtures/nightly/baselines/js-pnpm.json @@ -26,7 +26,6 @@ "GHSA-7q8q-rj6j-mhjq", "GHSA-898c-q2cr-xwhg", "GHSA-cph5-m8f7-6c5x", - "GHSA-f23m-r3pf-42rh", "GHSA-fvcv-3m26-pcqx", "GHSA-hfxv-24rg-xrqf", "GHSA-j5f8-grm9-p9fc", diff --git a/fixtures/nightly/baselines/js-yarn-berry.json b/fixtures/nightly/baselines/js-yarn-berry.json index efa140d..fc610bc 100644 --- a/fixtures/nightly/baselines/js-yarn-berry.json +++ b/fixtures/nightly/baselines/js-yarn-berry.json @@ -26,7 +26,6 @@ "GHSA-7q8q-rj6j-mhjq", "GHSA-898c-q2cr-xwhg", "GHSA-cph5-m8f7-6c5x", - "GHSA-f23m-r3pf-42rh", "GHSA-fvcv-3m26-pcqx", "GHSA-hfxv-24rg-xrqf", "GHSA-j5f8-grm9-p9fc", diff --git a/fixtures/nightly/baselines/js-yarn-classic.json b/fixtures/nightly/baselines/js-yarn-classic.json index efa140d..fc610bc 100644 --- a/fixtures/nightly/baselines/js-yarn-classic.json +++ b/fixtures/nightly/baselines/js-yarn-classic.json @@ -26,7 +26,6 @@ "GHSA-7q8q-rj6j-mhjq", "GHSA-898c-q2cr-xwhg", "GHSA-cph5-m8f7-6c5x", - "GHSA-f23m-r3pf-42rh", "GHSA-fvcv-3m26-pcqx", "GHSA-hfxv-24rg-xrqf", "GHSA-j5f8-grm9-p9fc", diff --git a/fixtures/nightly/baselines/mobile-react-native.json b/fixtures/nightly/baselines/mobile-react-native.json index 1d867ae..82dd719 100644 --- a/fixtures/nightly/baselines/mobile-react-native.json +++ b/fixtures/nightly/baselines/mobile-react-native.json @@ -26,7 +26,6 @@ "GHSA-7q8q-rj6j-mhjq", "GHSA-898c-q2cr-xwhg", "GHSA-cph5-m8f7-6c5x", - "GHSA-f23m-r3pf-42rh", "GHSA-fvcv-3m26-pcqx", "GHSA-hfxv-24rg-xrqf", "GHSA-j5f8-grm9-p9fc", -- 2.54.1