mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The wait for fork CI images never found the privileged workflow run it watches. It selected a run only when the run's pull_requests array held the PR number, and for a run whose head repository is a fork the API returns that array empty. The job only runs for fork PRs, so the lookup matched in no case it exists for. The early exit for a failed privileged run was therefore unreachable. When that run failed, the job kept polling until its timeout of 1980 attempts and held a runner for about five and a half hours. The lookup now asks the API for the runs of the PR head commit and selects by head_sha. That also replaces a paginated listing of every run of the workflow with one small request per attempt. Without a known head commit the match by PR number stays. Refs #784 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>