Repository navigation
fix(github): bound the GitHub session read at 60 seconds - #4636
Conversation
The GitHub session read with the entry point's read timeout of 3,600 s. That is as long as the calls around a GitHub read, such as the watch of the checks of the implement job, so their own deadline stopped them before the read failed. GitHub ends a REST request after 10 s. The session's client now reads within DEFAULT_GH_SESSION_READ_TIMEOUT_SECONDS (60 s). Downloads keep DEFAULT_HTTP_TIMEOUT_SECONDS. A test holds the chain of bounds around a GitHub read.
EvidenceFail-to-pass ( Mutation check of the chain test. With Silent host. The test binds a loopback listener that accepts no connection. httpx2's own Local runs.
Premise. GitHub, "Troubleshooting the REST API" (API version 2026-03-10), read on 2026-11-11: "If GitHub takes more than 10 seconds to process an API request, GitHub will terminate the request". HTTPX "Timeouts": the read timeout is the longest wait "for a chunk of data to be received", so a slow large answer is not cut while it arrives. Notes
|
🤖 I have created a release *beep* *boop* --- ## [0.112.2](v0.112.1...v0.112.2) (2026-11-11) ### Bug Fixes * **github:** bound the GitHub session read at 60 seconds ([#4636](#4636)) ([a87442a](a87442a)) * **roadmap:** bound the shadow mark probability to 0 to 1 ([#4655](#4655)) ([abf1166](abf1166)) * **roadmap:** halt implement step on consecutive refusals ([#4659](#4659)) ([9bcf0f5](9bcf0f5)) * **security:** file an issue for each Trivy-config alert group ([#4640](#4640)) ([a7668fe](a7668fe)) * **service:** route issues webhooks past scoped intake ([#4631](#4631)) ([caf4c7e](caf4c7e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The GitHub session read with the read timeout of the HTTP entry point, 3,600 s. That is as long as the calls around a GitHub read, such as the watch of the checks of the implement job, so their own deadline stopped them before the read failed. GitHub ends a REST request after 10 s, so a read that waits longer gets no answer.
The session's client now waits at most
DEFAULT_GH_SESSION_READ_TIMEOUT_SECONDS(60 s) for each read. A read with no answer fails withGitHubUnreadErrornamingReadTimeoutand is not sent again. The other clients of the entry point, the release downloads ofdevops install-toolsincluded, keepDEFAULT_HTTP_TIMEOUT_SECONDS. A test holds the chain of bounds around a GitHub read: Valkey command 2 s < session read 60 s < watch of the checks 3,600 s. ADR 0006 states the new bound.Closes #4626
Change:
openspec/changes/archive/2026-11-11-4626-bound-the-github-session-read-at/