Repository navigation
Conversation
resolveRefSHA collapsed every error from the commit lookup into "ref not found", so a transient GitHub API failure surfaced as a bad pin and failed local CRE startup. Retry 5xx, 429, secondary rate limits and transport errors, and return the underlying error when it is not a 404.
📊 API Diff Results
|
This branch has not been deployed
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.
What
resolveRefSHA()now retries transient failures from the commit lookup and no longer reports them as a missing ref:ref "..." not found; anything else is returned wrapped, so callers see the real statusWhy
local_crefailed to start the Chip Ingress stack on a transient GitHub API failure:The same short SHA had been resolved successfully five minutes earlier in the same job, so the ref was valid.
resolveRefSHAdiscarded every error fromRepositories.GetCommitand returnedref not found, which made a transient 5xx/403/timeout indistinguishable from a bad pin. It also made no retries.Tests
New
protos_test.go(same package,httptest+go-githubclient):ref not foundnot foundgo test ./chip_ingress_set/ -run TestResolveRef -vpasses.Note: the
chip_ingress_setpackage does not build on currentmainwith the module'scontainerd/containerd/v2 => v2.1.5replace —buildkit v0.29.0needs the newerremotessymbols. To run the tests I pointed that replace at v2.2.2 locally and did not commit it; the package still needs that dependency fix separately.