Skip to content

CSHARP-6026: Implement retries for pushing and polling packages#1982

Open
sanych-sun wants to merge 10 commits intomongodb:mainfrom
sanych-sun:CSHARP-6026
Open

CSHARP-6026: Implement retries for pushing and polling packages#1982
sanych-sun wants to merge 10 commits intomongodb:mainfrom
sanych-sun:CSHARP-6026

Conversation

@sanych-sun
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 2, 2026 00:21
@sanych-sun sanych-sun requested a review from a team as a code owner May 2, 2026 00:21
@sanych-sun sanych-sun requested a review from adelinowona May 2, 2026 00:21
@sanych-sun sanych-sun added the chore Non–user-facing code changes (tests, build scripts, etc.). label May 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements retry logic in the Evergreen packaging pipeline to make NuGet package pushes and subsequent availability polling more resilient to transient failures.

Changes:

  • Added a generic execute_with_retry helper with backoff.
  • Reworked package availability polling to retry based on query results rather than fixed sleep loops.
  • Wrapped dotnet nuget push in retry logic and added logging around push attempts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread evergreen/push-packages.sh Outdated
Comment thread evergreen/push-packages.sh Outdated
Copy link
Copy Markdown
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

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

Minor suggestions

Comment thread evergreen/push-packages.sh Outdated
until "$@"; do
attempt=$((attempt + 1))

if [ $attempt -gt $max_attempts ]; then
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.

minor (Claude): looks like there are max_attempts + 1 attempts. Should this be -ge ?

Comment thread evergreen/push-packages.sh Outdated
echo "sleeping for 15 seconds..."
sleep 15
execute_with_retry() {
max_attempts=$1
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.

nit: Claude suggests local variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non–user-facing code changes (tests, build scripts, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants