Repository navigation
fix(ci): retry artifact listing pages GitHub fails transiently - #4812
Merged
Merged
Conversation
GitHub intermittently answers the repository artifacts listing with an empty HTTP 500. Glob discovery reads about 110 pages of it per lookup, so one such answer failed every alpha apt publication since #4795 with 'unexpected end of JSON input'. Each page now retries up to five times with a growing delay before discovery fails. Helix-Harness: claude-code Helix-Model: claude-opus-5-5
helix-white
approved these changes
Nov 19, 2026
helix-white
left a comment
Member
There was a problem hiding this comment.
Reviewed fa0cb12. No blocking findings. The retry remains scoped to each listing page, stops after five attempts with bounded backoff, and preserves failure propagation for both the alpha collector and image-run lookup. The regression coverage exercises transient recovery and retry exhaustion. The branch merges cleanly with current master.
Existing script/workflow and formatting CI passed; other CI jobs remain pending. No builds or tests run during review.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every alpha apt publication since #4795 has failed: runs 44603974654, 44608010099 and 44616076376 each stop with
unexpected end of JSON input. Until this merges, no product's alpha apt package updates.Cause: GitHub intermittently answers the repository artifacts listing (
GET /repos/…/actions/artifacts) with an HTTP 500 and an empty body. I reproduced it against the live API: identical requests flip between 500 and 200, at any page size. It is not a page-size or pagination limit. #4795 replaced the exact-name artifact filter with glob discovery.gha-artifact-run-ids.shnow reads about 110 pages of the listing per lookup, and any one of them failing kills the whole lookup.Fix: each listing page retries up to five times, waiting 5, 10, 15 and 20 seconds between attempts, before discovery fails.
gha-image-run.sh(make start-os-update-from-gha) uses the same discovery, so it gets the retry too.gha-artifact-download.shmake a few requests per run, not about 110, so they are left unchanged.Implementation diff: +12 / −3 lines in 1 file (excludes lockfiles, tests, docs, release notes, and changelog).
Testing:
apt-publish-alpharun happens on the first master build after this merges.Helix-Harness: claude-code
Helix-Model: claude-opus-5-5