From d0957949157a18c633a49c0d833922d25c35298d Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Mon, 9 Nov 2026 10:49:07 +0100 Subject: [PATCH] T-22624 [CI] Wait for a SQL API query slot instead of failing on HTTP 429 The read-back queries the team's SQL API connection as one user, and that user may run 4 logs queries at a time. Every E2E workflow of ours polls as that user, so when enough jobs read back at once the connection answers HTTP 429 and the job fails although everything was delivered. ?wait=true queues the query for up to 60 s instead. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/e2e.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a167c1b..323a9af 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -202,7 +202,8 @@ jobs: } trap summarize_failure EXIT sql() { - CODE=$(curl -sS -o response.json -w '%{http_code}' -u "$TEST_TEAM_CONNECTION_USERNAME:$TEST_TEAM_CONNECTION_PASSWORD" -H 'Content-Type: plain/text' --data-binary "$1 FORMAT JSONEachRow" "https://$CONNECT_HOST/") + # wait=true queues the query for up to 60 s while the connection user's 4 concurrent logs queries are busy, instead of HTTP 429. + CODE=$(curl -sS -o response.json -w '%{http_code}' -u "$TEST_TEAM_CONNECTION_USERNAME:$TEST_TEAM_CONNECTION_PASSWORD" -H 'Content-Type: plain/text' --data-binary "$1 FORMAT JSONEachRow" "https://$CONNECT_HOST/?wait=true") # A source's collection exists only from its first stored row on; until then the query is "no rows yet". [ "$CODE" = 500 ] && grep -q CLUSTER_DOESNT_EXIST response.json && return 0 [ "$CODE" = 200 ] || { echo "::error::SQL API on $CONNECT_HOST answered HTTP $CODE: $(head -c 300 response.json)" >&2; return 1; }