From fae3a6af446b6808065339b6892a4a91c0791b3f Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:48:42 +0200 Subject: [PATCH] fix(vex): the startup purl backfill always logs its count Ok(0) was silent, so "ran, nothing to do" could not be told apart from "did not run" after a deploy. The count is now logged at INFO, 0 included. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p --- compliance-agent/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compliance-agent/src/main.rs b/compliance-agent/src/main.rs index 4e11390..21e766f 100644 --- a/compliance-agent/src/main.rs +++ b/compliance-agent/src/main.rs @@ -45,9 +45,9 @@ async fn main() -> Result<(), Box> { Err(e) => tracing::error!("migrating stored findings failed: {e}"), } // Open CVE alerts stored before purls were recorded (#532) get their - // component's purl, before a scan can resolve them. + // component's purl, before a scan can resolve them. Logged with 0 too, so + // "ran, nothing to do" is told apart from "did not run". match pipeline::vex_lifecycle::backfill_purls_everywhere(&agent.db_pool).await { - Ok(0) => {} Ok(alerts) => tracing::info!(alerts, "CVE alerts got their component's purl"), Err(e) => tracing::error!("backfilling CVE alert purls failed: {e}"), }