carlos / platform Public

ci: pin the gate to Go 1.26.10 until net/http's 1.26.11 deadlock is fixed

Both CI runners moved to Go 1.26.11 on 2026-11-11, and go.mod says only
go 1.26.0, so CI started building with 1.26.11 while releases still
build with 1.26.10. In 1.26.11, chunkWriter.writeHeader calls
bodyRemains(), which takes body.mu. body.Read holds that lock while it
blocks on the network, so under Expect: 100-continue a server that
answers while another goroutine still reads the upload stalls until
the client sends more. The edge's reverse proxy does this when an
upstream refuses early, and TestDemoAPIAliasStreaming's h2=false
"early" cases hang on it in every CI run (#897).

Every ci.d step now sources .amadan/go-toolchain.sh, which exports
GOTOOLCHAIN=go1.26.10+auto and prints go version. A toolchain line in
go.mod would not downgrade a newer local Go.

Witness: with Go 1.26.11 installed, the early subtests fail without
the pin and pass with it (count=3).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5ab06c0f36dd30a2d7b7fb65eed6728e556a1556 parent 01d6ca7
4 files changed, +25 −0
  • .amadan/ci.d/10-gate +1 −0
  • .amadan/ci.d/20-cross@5 +1 −0
  • .amadan/ci.d/30-minio-contract +1 −0
  • .amadan/go-toolchain.sh +22 −0

CI failed — run details

diff --git a/.amadan/ci.d/10-gate b/.amadan/ci.d/10-gate
index 540cf876e..19a206a80 100755
--- a/.amadan/ci.d/10-gate
+++ b/.amadan/ci.d/10-gate
@@ -45,6 +45,7 @@
# line, with the Makefile's note on why; they are still in force here,
# just not written down twice.
set -eu
+. .amadan/go-toolchain.sh
# The build runs beside the tests rather than before them: neither needs
# the other, and the gate's wall clock is whichever finishes last.
diff --git a/.amadan/ci.d/20-cross@5 b/.amadan/ci.d/20-cross@5
index ee14fe7b4..b40d06de7 100755
--- a/.amadan/ci.d/20-cross@5
+++ b/.amadan/ci.d/20-cross@5
@@ -23,6 +23,7 @@
# itself in the shard that failed, instead of being the first line of a
# combined log.
set -eu
+. .amadan/go-toolchain.sh
shard=${AMADAN_SHARD:?this step must be run by amadan CI, which sets AMADAN_SHARD}
shards=${AMADAN_SHARD_COUNT:?this step must be run by amadan CI, which sets AMADAN_SHARD_COUNT}
diff --git a/.amadan/ci.d/30-minio-contract b/.amadan/ci.d/30-minio-contract
index 741acac64..1ee952d70 100755
--- a/.amadan/ci.d/30-minio-contract
+++ b/.amadan/ci.d/30-minio-contract
@@ -32,6 +32,7 @@
# loopback only, its data directory is the job's private /tmp tmpfs, and
# it dies with the job's PID namespace. Nothing persists on the box.
set -eu
+. .amadan/go-toolchain.sh
# Fail on a missing tool by name rather than by a confusing error forty
# lines down. Both are present on the runner; this is here so that a
diff --git a/.amadan/go-toolchain.sh b/.amadan/go-toolchain.sh
new file mode 100644
index 000000000..e2f45b1aa
--- /dev/null
+++ b/.amadan/go-toolchain.sh
@@ -0,0 +1,22 @@
+# Sourced by every .amadan/ci.d step: the Go toolchain CI builds and tests
+# with, pinned to what the release builds use rather than whatever the
+# runner has installed.
+#
+# go1.26.10, because Go 1.26.11's net/http deadlocks a server that writes
+# its response while another goroutine still reads the request body under
+# Expect: 100-continue (chunkWriter.writeHeader now takes the body's lock
+# through bodyRemains(), and body.Read holds it while blocked on the
+# network). The edge's reverse proxy does exactly that when an upstream
+# refuses early, and TestDemoAPIAliasStreaming's "early" cases hang on it.
+# Both CI runners moved to 1.26.11 on 2026-11-11 (carlos/platform #897);
+# releases are built on 1.26.10.
+#
+# A `toolchain go1.26.10` line in go.mod would not do this: the go command
+# only switches to a toolchain line NEWER than the local one. GOTOOLCHAIN
+# does downgrade. "+auto" still lets a go.mod that needs a newer Go fetch it.
+#
+# Re-check when Go ships a fix for the deadlock: move this to that version
+# (it also carries GO-2026-6859), with the early subtests as the witness.
+GOTOOLCHAIN=go1.26.10+auto
+export GOTOOLCHAIN
+go version