Skip to content

Increase PR url download retry - #311

Merged
shahmishal merged 1 commit into
swiftlang:mainfrom
bkhouri:t/main/increate_downloaddata_url
Aug 22, 2026
Merged

Increase PR url download retry#311
shahmishal merged 1 commit into
swiftlang:mainfrom
bkhouri:t/main/increate_downloaddata_url

Conversation

@bkhouri

Copy link
Copy Markdown
Collaborator

GitHub actions would sometimes fails with the following

Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 1 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 1s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 2 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 2s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 3 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 4s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 4 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 8s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 after 5 attempts: DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").

Although there was a retry mechanism, it was not sufficient in some cases. Update the retry time from [1, 2, 4, 8] seconds across the 4 retries (total ~15s). to [5, 10, 20, 40] seconds across the 4 retries (total ~75s)

@bkhouri
bkhouri requested a review from a team as a code ownerAugust 21, 2026 02:40
GitHub actions would sometimes fails with the following
```
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 1 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 1s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 2 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 2s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 3 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 4s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 (attempt 4 of 5): DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").. Retrying in 8s...
Failed to load PR info from https://api.github.com/repos/swiftlang/swift-build/pulls/1657 after 5 attempts: DecodingError.keyNotFound: Key 'base' not found in keyed decoding container. Debug description: No value associated with key CodingKeys(stringValue: "base", intValue: nil) ("base").
```
Although there was a retry mechanism, it was not sufficient in some cases.
Update the retry time from [1, 2, 4, 8] seconds across the 4 retries (total ~15s).
to [5, 10, 20, 40] seconds across the 4 retries (total ~75s)
@bkhouri
bkhouriforce-pushed the t/main/increate_downloaddata_url branch from e9ca732 to 32d62e9CompareAugust 21, 2026 03:48
@shahmishal
shahmishal merged commit 455afa1 into swiftlang:mainAug 22, 2026
199 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@bkhouri@shahmishal