From d274c68ecb158a5465dd0a2533a0e96ab1af3613 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Mon, 9 Nov 2026 12:53:02 +0000 Subject: [PATCH] test(nightly): a queued scan run is not finished yet (t84) (#945) Co-Authored-By: Claude Opus 5.5 --- compliance-agent/tests/nightly.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compliance-agent/tests/nightly.rs b/compliance-agent/tests/nightly.rs index 40fbc40..4a3cd4f 100644 --- a/compliance-agent/tests/nightly.rs +++ b/compliance-agent/tests/nightly.rs @@ -563,8 +563,8 @@ async fn collect(agent: &Agent, target_id: &str, run: &Value) -> Collected { } /// Wait until each target has a finished scan run that did not exist before -/// seeding. Returns the run per target id; targets still running at the -/// deadline are left out. +/// seeding. Returns the run per target id; targets still queued or running +/// at the deadline are left out. async fn wait_for_runs( agent: &Agent, targets: &[String], @@ -580,7 +580,8 @@ async fn wait_for_runs( if done.contains_key(&repo) || !targets.contains(&repo) || before.contains(&oid(&run)) - || text(&run, "status") == "running" + // Still waiting for a slot (t84) or scanning: not finished. + || matches!(text(&run, "status").as_str(), "queued" | "running") { continue; }