From 250f967a0a42c16ec51d9211df366b88070d52a3 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Wed, 28 Oct 2026 18:46:24 -0400 Subject: [PATCH 1/5] Force HTTP/1.1 for PubChem/Rhea requests to dodge buggy h2 client at floor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HTTP.jl before 2.12 never returns connection-level HTTP/2 receive-window credit for response bytes that arrive but are never read (abandoned bodies, resets, padding). On the downgrade lane's HTTP 2.3.1 floor, a single throttle-induced mid-body failure permanently drains the pooled connection's 64 KiB window, after which every later request stalls until the 120 s read-idle timeout fires — the deterministic `http timeout during request` error killing Core/glycolysis.jl (issue #82). Sequential REST GETs gain nothing from h2 multiplexing, so request h1 explicitly. Co-Authored-By: Chris Rackauckas Co-Authored-By: Devin Agent-Harness: Devin CLI 3000.11.228 Agent-Model: swe-2-high Agent-Session: local job 82-devin (no session URL) --- src/data.jl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/data.jl b/src/data.jl index 7f00a7e..88163ac 100644 --- a/src/data.jl +++ b/src/data.jl @@ -8,9 +8,17 @@ far shorter than PubChem's throttling window (it answers `503` while overloaded) by default a stalled connection is never timed out. Requests therefore carry connect/read-idle timeouts and are retried with a multi-second exponential backoff on any failure except a definitive (non-`408`/`429`) `4xx` response. + +`protocol = :h1` avoids HTTP.jl's HTTP/2 client, whose receive flow-control +accounting is buggy at this package's compat floor: versions before 2.12 never +return connection-level window credit for response bytes that arrive but are +never read (abandoned bodies, resets, padding), so one throttle-induced +mid-body failure permanently stalls every later request on the pooled +connection (JuliaWeb/HTTP.jl#1371). These calls are sequential REST GETs, +where HTTP/2 multiplexing gains nothing anyway. """ function pubchem_get(url; kwargs...) - get_once = () -> HTTP.get(url; connect_timeout = 30, read_idle_timeout = 120, kwargs...) + get_once = () -> HTTP.get(url; connect_timeout = 30, read_idle_timeout = 120, protocol = :h1, kwargs...) delays = ExponentialBackOff(; n = 6, first_delay = 2.0, max_delay = 60.0) return retry(get_once; delays, check = (_, e) -> is_transient_http_failure(e))() end From 7c9fd0bdc3b665ad50ccf3dfbfb46cb5824531fc Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Wed, 28 Oct 2026 19:48:35 -0400 Subject: [PATCH 2/5] Declare Runic as the .jl formatter for worker pre-push checks The worker pre-push hook requires an explicit formatter declaration when the repo does not call fredrikekre/runic-action directly (this repo uses the SciML shared runic workflow), matching sibling job checkouts. Co-Authored-By: Chris Rackauckas Co-Authored-By: Devin Agent-Harness: Devin CLI 3000.11.228 Agent-Model: swe-2-high Agent-Session: local job 82-devin (no session URL) --- .factory-pre-push.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .factory-pre-push.json diff --git a/.factory-pre-push.json b/.factory-pre-push.json new file mode 100644 index 0000000..138af2a --- /dev/null +++ b/.factory-pre-push.json @@ -0,0 +1,12 @@ +{ + "formatters": { + ".jl": [ + "julia", + "-e", + "using Runic; exit(Runic.main(ARGS))", + "--", + "--check", + "{files}" + ] + } +} From 1af62bd5fec554eb30c5b973187f99a9e3edcfae Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Thu, 29 Oct 2026 01:21:02 -0400 Subject: [PATCH 3/5] Correct the HTTP.jl version range in the h1 rationale docstring Counted review flagged that HTTP 2.11.0 already returns connection-level h2 window credit for unread body bytes. Verified at source: the refund helper is absent through 2.6.7 and present by 2.7.1; the floor version 2.3.1 is demonstrably affected. Co-Authored-By: Chris Rackauckas Co-Authored-By: Devin Agent-Harness: Devin CLI 3000.11.228 Agent-Model: swe-2-high Agent-Session: local job 82-devin (no session URL) --- src/data.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/data.jl b/src/data.jl index 88163ac..1fb7f13 100644 --- a/src/data.jl +++ b/src/data.jl @@ -10,12 +10,12 @@ connect/read-idle timeouts and are retried with a multi-second exponential backo any failure except a definitive (non-`408`/`429`) `4xx` response. `protocol = :h1` avoids HTTP.jl's HTTP/2 client, whose receive flow-control -accounting is buggy at this package's compat floor: versions before 2.12 never -return connection-level window credit for response bytes that arrive but are -never read (abandoned bodies, resets, padding), so one throttle-induced -mid-body failure permanently stalls every later request on the pooled -connection (JuliaWeb/HTTP.jl#1371). These calls are sequential REST GETs, -where HTTP/2 multiplexing gains nothing anyway. +accounting is buggy at this package's compat floor: HTTP 2.3.1 (and through +at least 2.6.7) never returns connection-level window credit for response +bytes that arrive but are never read — the refund is present by 2.7.1 — so +one throttle-induced mid-body failure permanently stalls every later request +on the pooled connection (JuliaWeb/HTTP.jl#1371). These calls are sequential +REST GETs, where HTTP/2 multiplexing gains nothing anyway. """ function pubchem_get(url; kwargs...) get_once = () -> HTTP.get(url; connect_timeout = 30, read_idle_timeout = 120, protocol = :h1, kwargs...) From f255f13a921f5c77fc9db28e8d6cdb275dbd33be Mon Sep 17 00:00:00 2001 From: Chris Rackauckas - Beep Boop Edition Date: Fri, 30 Oct 2026 04:20:37 -0400 Subject: [PATCH 4/5] chore: drop .factory-pre-push.json Co-Authored-By: Chris Rackauckas Agent-Harness: Claude Code (claude-local) Agent-Model: qwen3.8-flash-next Agent-Session: local session e67c8f95-4e9d-4581-af70-717dfb1de194 (no session URL) --- .factory-pre-push.json | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .factory-pre-push.json diff --git a/.factory-pre-push.json b/.factory-pre-push.json deleted file mode 100644 index 138af2a..0000000 --- a/.factory-pre-push.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "formatters": { - ".jl": [ - "julia", - "-e", - "using Runic; exit(Runic.main(ARGS))", - "--", - "--check", - "{files}" - ] - } -} From c8930dae2544fbd6940bb28b28e9968a6dcf67b5 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Fri, 13 Nov 2026 08:51:01 -0500 Subject: [PATCH 5/5] Retrigger CI on current registry and default branch The branch already contains upstream/master (2c9fb53); merging it is a no-op. The failing 32-bit Core lane resolved HTTP 2.13.5, which does not load on 32-bit Julia. Current resolution picks HTTP 2.15.2, which loads on 32-bit (32-bit support restored in HTTP 2.15.1). No code change. Co-Authored-By: Chris Rackauckas Co-Authored-By: Muse Agent-Harness: Muse CLI Code Agent-Model: muse-wonder-full-1.0 Agent-Session: local fixer job SciML__PubChemReactions.jl__83 (no session URL)