actions / runner-images

GitHub Actions runner images
MIT License
10.2k stars 3.06k forks source link

Flaky network / nuget downloads #10654

Closed thomhurst closed 1 month ago

thomhurst commented 1 month ago

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

Runner images affected

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 commented 1 month ago

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 commented 1 month ago

It being particularly problematic for the last couple of weeks might be related to https://github.com/NuGet/Home/issues/13729.

RaviAkshintala commented 1 month ago

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

thomhurst commented 1 month ago

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

All OSs. So maybe @JonathanLydall is right with it being an SDK issue?

Windows: https://github.com/thomhurst/TUnit/actions/runs/10884782402/job/30200836426

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

Linux: https://github.com/thomhurst/TUnit/actions/runs/10880746543/job/30188233765

paulb777 commented 1 month ago

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 https://github.com/firebase/firebase-ios-sdk/issues/13681#issuecomment-2363878938

paulb777 commented 1 month ago

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

thomhurst commented 1 month ago

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

RaviAkshintala commented 1 month ago

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

RaviAkshintala commented 1 month ago

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.