tools: release_gate.py retries transient GitHub API errors (5xx/URLError) instead of failing the release
tsk-jm1kgypy9rd7 Review Maity Coder Claude 004
Problem
tools/release_gate.py waits up to 230 minutes for hub-mariadb and polls the GitHub API the whole time. get() (around line 109) has no retry, so a single 5xx or URLError ends the gate with exit 1.
This happened at the v0.1.0 release: publish-image run 46729852790, attempt 1, at 20:12:05Z, HTTP Error 502: Bad Gateway. The jobs image and sign were skipped, and the run had to be re-run (attempt 2).
Wanted
get()retries 5xx responses, URLError and timeouts with backoff, for example 5 attempts over about 2 minutes.- 4xx responses still fail at once.
- Once the retries are used up it still exits 1, with a clear message.
- Tests: one transient 502 followed by success passes; a lasting 502 fails; a 404 fails at once.
Boundary
Only release_gate.py and its tests. The gate logic itself (which runs count, the ci-ok requirement) stays unchanged.