release: retry uploads past Cloudflare's 524, re-checking the server first; optional direct API URL
ci / checks (push) Successful in 58s
ci / corpus (push) Successful in 39s

0.29.0 and 0.30.0 both died in the publish step with curl: (56) ...
error: 524 - Cloudflare's origin timeout, because GITHUB_SERVER_URL is
the public host and every upload crosses the proxy. tools/
publish_release.sh now retries each upload (UPLOAD_ATTEMPTS, default 5,
backing off) and asks the server what it holds before every retry: an
asset already there at the local size is done, one at another size is a
truncated upload and is deleted before re-sending. LUCISV_API_URL, an
optional repository Actions variable passed through release.yml, names a
direct http://host:port so the API bypasses the proxy; unset, the public
URL is used as before. Mock-tested with a curl stand-in reproducing the
524-then-partial sequence. Work log in docs/features/ci-release.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-09-02 11:13:19 -07:00
1 parent 51869c8bf4
commit 58112d4d3b
3 files changed
+87 -11

No files matched your search

+23
View File
@@ -186,6 +186,29 @@ versions, written notes, and all seven packages.
is a one-line invocation of a script proven by hand on the same machine
the runner is, which is as close as this gets without cutting a release.
**2026-09-02 — lead: the publish step against Cloudflare's 100-second
origin timeout.** Releases 0.27.0–0.30.0 were pushed together after an
ssh-key outage; the runner built all four, 0.27.0 and 0.28.0 published,
and 0.29.0 and 0.30.0 both died in "Create the release and attach the
artifacts" with `curl: (56) The requested URL returned error: 524` —
Cloudflare's own page, because `$GITHUB_SERVER_URL` is the public host and
every API call goes through the proxy, which gives the origin 100 seconds
per request. 0.29.0's release object existed with zero assets, so the
very first upload had timed out on a busy server. Two changes in
`tools/publish_release.sh`, both mock-tested with a curl stand-in:
(1) uploads retry (`UPLOAD_ATTEMPTS`, default 5, backing off 10 s × n),
and before each retry the server is asked again what it holds — a 524 is
the proxy giving up on the *response*, so the origin may have finished;
an asset present at the local size is treated as attached, one at another
size is deleted and re-sent, so a truncated file can never be published;
(2) `LUCISV_API_URL`, an optional repository Actions variable passed by
`release.yml`, names a direct `http://host:port` for the API so uploads
bypass the proxy altogether; unset, nothing changes. The two stuck tags
carry the old script and are re-run from the Actions page — that script
was already idempotent (release reused, attached names skipped), so a
re-run on a quieter server completes them. `docs/features/ci-release` is
the only file set touched.
## QA log
_(no QA round — infrastructure, verified by the live v0.7.1 run; see work log)_