Skip to content

Retry non-200 GET requests from AdoClient, BbsClient and GithubClient#620

Merged
synthead merged 19 commits intomainfrom
add-RetryPolicy-to-GithubApi
Sep 12, 2022
Merged

Retry non-200 GET requests from AdoClient, BbsClient and GithubClient#620
synthead merged 19 commits intomainfrom
add-RetryPolicy-to-GithubApi

Conversation

@synthead
Copy link
Copy Markdown
Collaborator

@synthead synthead commented Sep 9, 2022

Closes #587! ✨

This PR ensures that all non-200 GET requests from AdoClient, BbsClient and GithubClient gets retried via RetryPolicy.HttpRetry. This will allow us to retry on transient network issues for more robust and consistent migrations.

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created) (n/a)

@synthead synthead added the enhancement New feature or request label Sep 9, 2022
@synthead synthead self-assigned this Sep 9, 2022
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 9, 2022

Integration Test Results

4 tests  ±0   4 ✔️ ±0   14m 42s ⏱️ + 1m 49s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ±0 

Results for commit 7b0d6fc. ± Comparison against base commit d26be51.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 9, 2022

Unit Test Results

530 tests   530 ✔️  1m 4s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit 7b0d6fc.

♻️ This comment has been updated with latest results.

@synthead synthead changed the title Add RetryPolicy to GitHubApi Retry non-200 GET requests from AdoClient, BbsClient and GithubClient Sep 9, 2022
@synthead synthead marked this pull request as ready for review September 9, 2022 22:25
@synthead synthead requested a review from a team September 9, 2022 22:25
Copy link
Copy Markdown
Contributor

@ArinGhazarian ArinGhazarian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very solid PR, I just added a few suggestion.

@github-actions
Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
gei 87% 86% 392
ado2gh 88% 84% 498
bbs2gh 66% 58% 204
Octoshift 91% 78% 728
Summary 87% (4947 / 5700) 79% (1090 / 1372) 1822

Copy link
Copy Markdown
Contributor

@ArinGhazarian ArinGhazarian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@synthead synthead merged commit 4815938 into main Sep 12, 2022
@synthead synthead deleted the add-RetryPolicy-to-GithubApi branch September 12, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retry logic for all GET's in GithubClient

3 participants