From b6c90ca7736cae1045bf57145d75acaf4f4fb25c Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Mon, 9 Nov 2026 09:54:35 +0100 Subject: [PATCH] T-22624 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 job of this workflow, and of the other client repos' E2E workflows, polls as that user, so when enough jobs read back at once the connection answers HTTP 429 and the job fails although every line was delivered. ?wait=true queues the query for up to 60 s instead, and the curl timeout grows to 90 s to leave room for that. Co-Authored-By: Claude Fable 5.1 --- .github/actions/verify-logs/run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/verify-logs/run.sh b/.github/actions/verify-logs/run.sh index a18cfcf..15c8264 100644 --- a/.github/actions/verify-logs/run.sh +++ b/.github/actions/verify-logs/run.sh @@ -48,11 +48,12 @@ jq -e 'type == "array" and length > 0 and all(.[]; type == "object" and has("lev WANT=$(jq length "$INPUT_EXPECTED") # Writes the rows as JSONEachRow into $2, or nothing while the collection does not exist: it is created with the -# source's first stored row. +# source's first stored row. The connection user may run 4 logs queries at a time and every job of every client +# repo reads back as that user, so ?wait=true queues the query for up to 60 s instead of answering HTTP 429. sql() { local code - code=$(curl -sS -m 60 -o "$2" -w '%{http_code}' -u "$INPUT_CONNECTION_USERNAME:$INPUT_CONNECTION_PASSWORD" \ - -H 'Content-Type: plain/text' --data-binary "$1 FORMAT JSONEachRow" "https://$INPUT_CONNECT_HOST/") || code=000 + code=$(curl -sS -m 90 -o "$2" -w '%{http_code}' -u "$INPUT_CONNECTION_USERNAME:$INPUT_CONNECTION_PASSWORD" \ + -H 'Content-Type: plain/text' --data-binary "$1 FORMAT JSONEachRow" "https://$INPUT_CONNECT_HOST/?wait=true") || code=000 if [ "$code" = 500 ] && grep -qE 'CLUSTER_DOESNT_EXIST|NAMED_COLLECTION_DOESNT_EXIST|UNKNOWN_TABLE' "$2"; then : > "$2"; return; fi [ "$code" = 200 ] || fail "the SQL API on $INPUT_CONNECT_HOST answered HTTP $code: $(head -c 300 "$2" 2>/dev/null)" }