mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The job that waits for the CI images of a fork PR ended on the first failed GitHub API call. The lookup of the privileged workflow run is assigned with run_json="$(find_matching_run)" under set -e, so a failing gh ended the script, although the loop is built for 1980 attempts. PR #782 went red that way: GitHub answered one request with HTTP 504 in attempt 31, while the privileged run was still queued. A failed lookup now counts as "no information in this attempt" and the loop goes on waiting for the images, which are its success criterion. Thirty failed lookups in a row end the job with a message that names the cause, so a broken token does not hold a runner until the timeout. The test runs the script against a gh that fails every lookup. The previous script fails both cases at the first lookup. Closes #784 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>