-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CT-352] catch and retry malformed json (#4982)
* catch None and malformed json reponses * add json.dumps for format * format * Cache registry request results. Avoid one request per version * updated to be direct in type checking * add changelog entry * add back logic for none check * PR feedback: memoize > global * add checks for expected types and keys * consolidated cache and retry logic * minor cleanup for clarity/consistency * add pr review suggestions * update unit test Co-authored-by: Jeremy Cohen <[email protected]>
- Loading branch information
Showing
5 changed files
with
190 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Fixes | ||
body: Catch more cases to retry package retrieval for deps pointing to the hub. Also start to cache the package requests. | ||
time: 2022-03-31T14:39:23.952705-05:00 | ||
custom: | ||
Author: emmyoop | ||
Issue: "4849" | ||
PR: "4982" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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