Files
magpie/.github
yetone b45d21d5fb release: the dispatch to magpie-releases waits out the API rate limit
trigger-release dispatched with peter-evans/repository-dispatch and
RELEASES_REPO_TOKEN, the owner's PAT. It shares the 5,000/hr core limit
with every agent session running gh as the owner, and on 11-10 the
limit ran out: v0.1.3561, 3566, 3568, 3569, 3571 and 3573 failed at
that step with "API rate limit exceeded for user ID 1206493" and have
no release in magpie-releases. They are not dispatched again: a release
published after a newer one would become Latest, and their commits are
in newer releases.

The step is now curl to POST /repos/yetone/magpie-releases/dispatches
with the same token and payload (built with jq). A 403 or 429 that is a
rate limit (retry-after, x-ratelimit-remaining 0, or "rate limit" in the
body) waits until retry-after or x-ratelimit-reset (60s when neither is
given) plus 5s and tries again, up to 65 minutes in all. Any other
non-2xx, or a curl failure, fails at once with the status and body; the
token is never printed. The job has timeout-minutes 75.

Other API calls checked: mirror-release and the notes issue use
GITHUB_TOKEN (its own per-repo limit), docker.yml uses github.token, and
no other workflow uses RELEASES_REPO_TOKEN.

Run: the step's run block, extracted from the YAML with PyYAML, against
a local Python fake server. 403 with x-ratelimit-remaining 0 and a reset
3s out, then 204: waited 8s, succeeded on try 2. 429 retry-after 2, then
403 rate limit, then 204: waited 7s and 8s, succeeded on try 3. 404 and
a 403 "Resource not accessible" (no rate-limit sign): failed at once
after one request with status and body. A reset 2h out: failed at once
as past the wait. A refused connection: failed at once with curl's exit.
The payload the server got was
{"event_type":"release","client_payload":{"ref":"v0.1.9999","version":"0.1.9999"}},
and no log held the token. bash -n ok; actionlint ok for the new step
(its only findings are two SC2086 infos in Get version, the same at the
base). Run locally: mote refused ssh at the time.

Broken by hand: with the rate-limit detection never matching, the first
403 rate limit failed at once.

Not tried: the real dispatch endpoint. It runs on the next tag.
2026-11-10 18:31:23 +08:00
..