-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Workflow fails to download dependencies from NuGet.org #3038
Comments
Hello @AaronVanGeffen , do you have |
Hello @maxim-lobanov, thank you for the suggestion. Indeed, there was no |
Cool, glad to hear that it helped. Looks like sometimes dotnet doesn't resolve packages from remote when doesn't find packages in local cache. The root cause is still unclear but using |
Thank you for the explanation. Just to confirm, CI has been working reliably tonight with the |
@AaronVanGeffen thanks for the confirmation! |
I bumped into same issue. While workaround does work i noticed that PATH printed by |
@rokups it takes 3-4 days to propagate the new image (with Java in the hostedtoolcache directory) to all the environments. We're going to finish the deployment on Monday |
Hello, I believe this issue should be better investigated and (hopefully) solved without the need of wrapping our own nuget.config file. The NuGet config should be the same across different instances of Windows runners and I would also expect them to match Mac and Linux (which does not suffer from this problem) runners; It sounds reasonable to have nuget.org source enabled by default if any packages are not found in local cache (which makes sense for the runtime environments not to keep downloading packages form NuGet.org every run). Note: I have two different runs in the same 20210330.2 environment version, one failing and another succeeding. It really looks like runners are not being properly cleaned up after a previous run. |
@fabriciomurta no, it's not possible — every run is performed on a clean agent |
@miketimofeev @maxim-lobanov Can you please reactivate this issue and help us get to a resolution? The core NuGet issue NuGet/Home#10586 was closed without a resolution other than "clean the nuget cache" or "have a nuget.config" which don't seem productive, since restoring projects used to work fine before the last AzDO pipelines/GHA updates. Both this and the NuGet issue are closed and we need someone to step up in either of the teams and provide a solution. We have multiple repos - both internal and external - that got broken since the latest update. |
@asklar reopened. Could you please share some repo where the issue persists? We've tried to reproduce last time without any luck |
You may use https://github.com/rokups/rbfx if it is not too fat. Delete |
@miketimofeev thanks. We're hitting this in https://github.com/microsoft/react-native-windows/ among others |
…6.9.* (#55) * fix(deps): update Microsoft.NET.Test.Sdk requirement Updates the requirements on [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) to permit the latest version. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](microsoft/vstest@v16.8.0...v16.9.1) Signed-off-by: dependabot[bot] <support@github.com> * build: update lock file * ci: remove workaround for actions/runner-images#3038 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nogic <24802730+nogic1008@users.noreply.github.com>
Hello, everyone! |
We've found the root cause of the empty config file and it's related to the chocolatey chocolatey/choco#2233 |
@miketimefeev, what image version was this fixed on? I just tried on '20210411.1' and I still see the problem. |
@miketimofeev thanks a lot for drilling down and finding the issue, much appreciated! This would also explain why some of our customers who use our dependencies script (which uses choco) are hitting this too! |
I just updated my test PR that was doing My setup is .net sdk 5.0.202, no |
I removed a build step which executed the following on 2 of my repos:
And the builds run fine now! Thanks! Additional details:
|
@miketimofeev when/where will this be fixed? This started to be a problem for us on 29th April (4am, UK time) and is still failing today on the due to the (Note: this content is slightly different to the one shown in chocolatey/nuget-chocolatey#23) This is affecting all our Cake-based actions, only one of which is explicitly using Chocolatey (all are using Adding our internal company NuGet server as a source using a |
I've dug into this a bit more, and in (at least one of) the actions that don't use Chocolatey, the bad
The last one ( |
@robgilliam chocolatey already fixed the issue on their side, but we have to wait for a new release. Speaking about Powershell module installation — it's a new case we've never seen before. Does any module installation cause the issue or it's AzureAD specific? |
@miketimofeev I don't know - all of my "not using Chocolatey" actions that are affected are just using PowerShellGet to install the AzureAD module. Having identified the extent of the impact on our projects and the easiest work-around (add a |
@robburger thanks! I can confirm — the issue is reproducible with any PowerShell module. We will engage the Dotnet team. |
We've added NuGet.config with nuget.org source in the user's home directory so that neither choco nor PowerShell won't create it using their embedded nuget. |
You saved my life !!! I enounter the same issue after installing Visual Studio 2022 for the first time. I think i should get some details about nuget. Thanks a lot. |
Description
For the OpenLoco project, we gratefully make use of GitHub Actions for our CI. To this end, we set up a workflow for our Windows CI:
https://github.com/OpenLoco/OpenLoco/blob/master/.github/workflows/ci.yml#L18-L59
The Visual Studio project this workflow builds has been set up to depend on a package from NuGet.org:
https://github.com/OpenLoco/OpenLoco/blob/master/src/OpenLoco/openloco.vcxproj#L352-L354
https://www.nuget.org/packages/openloco.dependencies
This workflow worked fine until two days ago. However, we have noticed the package no longer gets retrieved properly, causing most (but not all) runs to fail.
Area for Triage:
C/C++
Question, Bug, or Feature?:
Bug
Virtual environments affected
Image version
20210321.1 (broken)
20210316.1 (fine)
Expected behavior
Successful run on image version 20210316.1, 3 days ago
https://github.com/OpenLoco/OpenLoco/runs/2181845951
Actual behavior
Failed run on 20210321.1 today:
https://github.com/OpenLoco/OpenLoco/runs/2204773635
Repro steps
Please look at https://github.com/OpenLoco/OpenLoco/actions
The text was updated successfully, but these errors were encountered: