chainguard-images / images

Public Chainguard Images
https://chainguard.dev/chainguard-images
Apache License 2.0
528 stars 134 forks source link

GHCR rate limits #173

Closed imjasonh closed 1 year ago

imjasonh commented 1 year ago

Description

Release workflows fail somewhat regularly with rate-limiting errors:

Error: signing [ghcr.io/chainguard-images/git@sha256:9b4afea457fb39e297f83ec71e35f4094badbe8d49bab6ce9af5ae55734050a2
ghcr.io/chainguard-images/git@sha256:4e7eae52cad8463c7d19c40fc821a144b06472fddb431431f0da430a0d123270
ghcr.io/chainguard-images/git@sha256:8be1d6ce98579d65b04b57b749e7cef7dd261a6a51854f5d4aae2f5ce241236a]: signing digest:
POST https://ghcr.io/v2/chainguard-images/git/blobs/uploads/: TOOMANYREQUESTS: retry-after: 10.305464ms, allowed: 2000/minute

(link)

The broader workflow run that hit this is here: https://github.com/chainguard-images/images/actions/runs/3830355184 -- it's got 55 workflows running in parallel, most of which seem to complete within 5-10 minutes, when they don't hit the limit.

Notes:

Since we're now building all our images in separate parallel workflow runs, we might be able to just stagger them all by a random number of seconds up to a minute or two, just so we don't stampede in the first few minutes when the workflow is kicked off.

imjasonh commented 1 year ago

Hoping https://github.com/chainguard-images/images/pull/174 fixes this