From 9f4d916cf8f0479860d501cd51e4f9fe859b317a Mon Sep 17 00:00:00 2001 From: repo-worker-code Date: Mon, 2 Nov 2026 18:05:30 -0600 Subject: [PATCH] id(ci): retry cross-VM curl probes in playwright-e2e-test.nix wait_for_open_port runs on the server VMs; the first client curl can still hit connection-refused during virtual-network bring-up (nightly 40457980141 exit 7). Use wait_until_succeeds for the four verify probes. Refs #1374 --- pkgs/id/nix/tests/playwright-e2e-test.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/id/nix/tests/playwright-e2e-test.nix b/pkgs/id/nix/tests/playwright-e2e-test.nix index 8b77580be0..d19ebaa069 100644 --- a/pkgs/id/nix/tests/playwright-e2e-test.nix +++ b/pkgs/id/nix/tests/playwright-e2e-test.nix @@ -128,10 +128,16 @@ firefox_server.wait_for_open_port(4176) # ── Verify all servers reachable from client VMs ─────────────────────── - chromium_client.succeed("curl -sf http://chromium_server:4173/") - chromium_client.succeed("curl -sf http://chromium_server:4175/") - firefox_client.succeed("curl -sf http://firefox_server:4174/") - firefox_client.succeed("curl -sf http://firefox_server:4176/") + # wait_for_open_port above runs on the SERVER VMs (local check); the first + # probe runs on the CLIENT VM across the virtual network, so retry the + # cross-VM hop here instead of failing on the first connection-refused + # (nightly 40457980141: curl exit code 7 ~53s after VM start). + # wait_until_succeeds retries until success or its timeout, covering + # virtual-network/firewall bring-up skew. + chromium_client.wait_until_succeeds("curl -sf http://chromium_server:4173/") + chromium_client.wait_until_succeeds("curl -sf http://chromium_server:4175/") + firefox_client.wait_until_succeeds("curl -sf http://firefox_server:4174/") + firefox_client.wait_until_succeeds("curl -sf http://firefox_server:4176/") # ── Helper: copy test runner to writable dir and run Playwright ──────── # The e2eTestRunner is a read-only nix store path; Playwright needs to