Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

repoupdater: Add retry policy to repositoryservice#62778

Merged
eseliger merged 1 commit into
mainfrom
es/05-18-repoupdateraddretrypolicytorepositoryservice
May 21, 2024
Merged

repoupdater: Add retry policy to repositoryservice#62778
eseliger merged 1 commit into
mainfrom
es/05-18-repoupdateraddretrypolicytorepositoryservice

Conversation

@eseliger

Copy link
Copy Markdown
Member

This new client didn't have any retries set, so we would always fast-fail when gitserver is unavailable. That makes the operation more noisy than it has to be, and potentially all repos back in the fetch queue, because it thinks the fetch itself failed.
All these methods are safe to be called a second time, so we can safely do that.

This is an easy fix to ensure repo updater waits a bit for gitserver to be back online.

Test plan:

Verified locally that fetches don't immediately fail when gitserver is down.

This new client didn't have any retries set, so we would always fast-fail when gitserver is unavailable. That makes the operation more noisy than it has to be, and potentially all repos back in the fetch queue, because it thinks the fetch itself failed.
All these methods are safe to be called a second time, so we can safely do that.

This is an easy fix to ensure repo updater waits a bit for gitserver to be back online.

Test plan:

Verified locally that fetches don't immediately fail when gitserver is down.
@cla-bot cla-bot Bot added the cla-signed label May 18, 2024
@eseliger eseliger marked this pull request as ready for review May 18, 2024 00:17
@eseliger eseliger requested a review from a team May 18, 2024 00:17

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels May 18, 2024

@ggilmore ggilmore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ggilmore approved this PR from Slack with Graphite

@eseliger eseliger merged commit 693750b into main May 21, 2024
@eseliger eseliger deleted the es/05-18-repoupdateraddretrypolicytorepositoryservice branch May 21, 2024 13:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants