Repository navigation
fix(github): send a GET again when its connection is lost - #3608
Merged
Merged
Conversation
The change folder plans a retry of a GitHub GET whose connection is lost. A write is not sent again. The session retries the same URL, so a listing resends only its failed page.
Five tests of the GitHub session: a GET that loses its connection is sent again, a GET that loses it on every attempt raises after three sends, a write is sent once, a listing resends page 3 only, and a resend waits through the identity ledger. The write test passes on the base, since a write is never resent; it guards that rule.
A GET whose connection is lost before GitHub's answer is read is sent again, up to DEFAULT_GH_MAX_RETRIES times. Each resend paces on the identity's ledger and waits from the read floor, as a read 5xx waits. A write and a refused connect are not sent again.
The session's retry paragraph of ADR 0006 names the lost connections that a GET is sent again after, the write it never sends again, and the budget of one GET.
Rewrite the docstrings, the comment and the ADR Retries paragraph that state the resend of a GET whose connection is lost. The rule and the budget do not change.
Split the docstrings of the lost-connection tests. The assertions do not change.
Give each task group its kind. State that the resend budget applies to each gidgethub attempt. Correct the size of the change, the test count, and the overlap with the local branch of #3497.
The four changed tests fail on origin/main and pass on this branch.
The gate fails only on the known host failures of #3585.
Owner
Author
Finish notes for #3506Local checks
Fail-to-pass
Deviations
Open items
|
dan-petty
marked this pull request as ready for review
November 5, 2026 12:09
dan-petty
pushed a commit
that referenced
this pull request
Nov 5, 2026
🤖 I have created a release *beep* *boop* --- ## [0.61.0](v0.60.0...v0.61.0) (2026-11-05) ### Features * **roadmap:** check each behavior group fails on base before the change ([#3602](#3602)) ([7b8a4a1](7b8a4a1)) * **roadmap:** the inbox lists every person wait of each service repo ([#3616](#3616)) ([b81913b](b81913b)) * **telemetry:** measure how long roadmap items wait in each state ([#3601](#3601)) ([05c9ebd](05c9ebd)) ### Bug Fixes * **github:** send a GET again when its connection is lost ([#3608](#3608)) ([4528f49](4528f49)) * **roadmap:** accept a clean merge by a person on a branch ([#3603](#3603)) ([4fff490](4fff490)) * **roadmap:** the stage job waits for an open plan that creates a path ([#3613](#3613)) ([7e66373](7e66373)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A GitHub GET request fails immediately when its connection is lost. GitHub gives no answer. One lost connection can therefore fail a CI job, or a round of a Service row.
This change sends a lost GET again, up to DEFAULT_GH_MAX_RETRIES times. Each resend waits on the rate limit ledger of the identity first. A lost write is not sent again, because GitHub may already have applied it. A refused connect and a timeout are not retried.
Closes #3506
Change:
openspec/changes/archive/2026-11-05-3506-retry-get-on-lost-connection/