Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky network / nuget downloads #10654

Closed
1 of 13 tasks
thomhurst opened this issue Sep 19, 2024 · 9 comments
Closed
1 of 13 tasks

Flaky network / nuget downloads #10654

thomhurst opened this issue Sep 19, 2024 · 9 comments

Comments

@thomhurst
Copy link

Description

I've seen this for a couple of months now. Fairly often NuGet will error my pipelines with failures to download a package. Happens way too frequently nowadays so I assume something is wrong somewhere?

/Users/runner/.dotnet/sdk/8.0.401/NuGet.targets(174,5): error : The feed 'nuget.org [https://api.nuget.org/v3/index.json]' lists package 'Polly.8.4.1' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. [/Users/runner/work/ModularPipelines/ModularPipelines/ModularPipelines.Analyzers.sln]

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

https://github.com/thomhurst/ModularPipelines/actions/runs/10948383717/job/30399283041

Is it regression?

Yes?

Expected behavior

Download succeeds

Actual behavior

Download fails

Repro steps

dotnet restore

@kishorekumar-anchala
Copy link
Contributor

Hi @thomhurst ,

Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

@JonathanLydall
Copy link

It being particularly problematic for the last couple of weeks might be related to NuGet/Home#13729.

@RaviAkshintala
Copy link
Contributor

RaviAkshintala commented Sep 20, 2024

@thomhurst Could you please confirm the platform on which you are facing an issue?

@thomhurst
Copy link
Author

@paulb777
Copy link

We've been seeing similar issues on macOS the last few days that Swift Package Manager tests that use binary dependencies are almost always failing with downloadError("The network connection was lost."). Examples at https://github.com/firebase/firebase-ios-sdk/actions/runs/10957246834/job/30424994614#step:5:102 and firebase/firebase-ios-sdk#13681 (comment)

@paulb777
Copy link

Using the cache action is looking like a promising resolution to the binary Swift Package Manager network failures we were seeing. firebase/data-connect-ios-sdk#16

@thomhurst
Copy link
Author

Sounds like they're workarounds that can help, but ultimately there's an issue that needs fixing

@RaviAkshintala
Copy link
Contributor

Hi @thomhurst Could you please try with the below workaround.
https://github.com/RaviAkshintala/TUnit/actions/runs/10994988176/workflow#L30

@RaviAkshintala
Copy link
Contributor

Hi @thomhurst Hope your issue resolves by using the below workaround.

      - name: Setup .NET
        uses: actions/setup-dotnet@v4
        with:
          dotnet-version: 8.0.401

Thanks, Closing this issue for now.

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

No branches or pull requests

5 participants