test(nightly): a queued scan run is not finished yet (t84)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m41s
CI / Check (pull_request) Successful in 18m50s

Since #940 a scan waiting for one of the agent's slots is recorded as
`queued`. The nightly harness took every run that was not `running` as
finished, so targets whose scans waited behind the others were compared
while still queued: status queued, no SBOM, no CVEs. It now waits for
queued runs as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-09 13:33:03 +01:00
1 parent 29d3c91f5a
commit b628bfb4e1
1 file changed
+4 -3
+4 -3
View File
@@ -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;
}