From 04a5133c1b09203c18cf9b2fe2dc8ff13431a2e2 Mon Sep 17 00:00:00 2001 From: atlas Date: Tue, 10 Nov 2026 01:26:25 +0100 Subject: [PATCH] full-setup vm test: match iris and spawn exactly in the agents-status check The jq filter used contains(), which matches substrings per element, so an agent named spawn-two satisfied spawn. It now counts the exact names iris and spawn among the fresh agents that need a login. --- nix/vm-tests/full-setup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/vm-tests/full-setup.nix b/nix/vm-tests/full-setup.nix index ec3a2677c..76b941a1c 100644 --- a/nix/vm-tests/full-setup.nix +++ b/nix/vm-tests/full-setup.nix @@ -408,7 +408,7 @@ pkgs.testers.runNixOSTest ( settle( f"curl --fail --silent --unix-socket {SOCKET} {API}/api/agents/status " "| jq -e '[.[] | select(.hive == \"" + HIVE + "\" and .freshness == \"fresh\" and .needs_login == true)" - " | .name] | contains([\"iris\", \"spawn\"])'", + " | .name] | map(select(. == \"iris\" or . == \"spawn\")) | unique | length == 2'", 2400, ["swarm-controller", "hive-c0re"], )