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

Test failure: NuGet.RestoreEx.targets at "NuGet.NoAllocEnumerateExtensions.OptimisticallyNonAllocatingEnumerable" #107361

Closed
steveharter opened this issue Sep 4, 2024 · 5 comments
Labels
area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@steveharter
Copy link
Member

steveharter commented Sep 4, 2024

Build Information

Build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2529303&view=results

Build error leg or test failing: NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object. [/Users/runner/work/1/s/Build.proj]

Stack trace:

/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object. [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.NoAllocEnumerateExtensions.OptimisticallyNonAllocatingEnumerable`1.Enumerator..ctor(IEnumerable`1 source) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.PackageSpecificWarningProperties.AddRangeOfCodes(IEnumerable`1 codes, String libraryId, NuGetFramework framework) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.PackageSpecificWarningProperties.CreatePackageSpecificWarningProperties(PackageSpec packageSpec) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.RestoreCommand..ctor(RestoreRequest request) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.RestoreRunner.ExecuteAsync(RestoreSummaryRequest summaryRequest, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.RestoreRunner.ExecuteAndCommitAsync(RestoreSummaryRequest summaryRequest, IRestoreProgressReporter progressReporter, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.RestoreRunner.CompleteTaskAsync(List`1 restoreTasks) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.RestoreRunner.RunAsync(IEnumerable`1 restoreRequests, RestoreArgs restoreArgs, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Commands.RestoreRunner.RunAsync(RestoreArgs restoreContext, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Build.Tasks.BuildTasksUtility.RestoreAsync(DependencyGraphSpec dependencyGraphSpec, Boolean interactive, Boolean recursive, Boolean noCache, Boolean ignoreFailedSources, Boolean disableParallel, Boolean force, Boolean forceEvaluate, Boolean hideWarningsAndErrors, Boolean restorePC, Boolean cleanupAssetsForUnsupportedProjects, ILogger log, CancellationToken cancellationToken) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error :    at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.RestoreAsync(String entryProjectFilePath, IDictionary`2 globalProperties, IReadOnlyDictionary`2 options) [/Users/runner/work/1/s/Build.proj]

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["Object reference not set to an instance of an object.", "at NuGet.NoAllocEnumerateExtensions.OptimisticallyNonAllocatingEnumerable"],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng/internal/_build/results?buildId=2529303
Error message validated: [Object reference not set to an instance of an object. at NuGet.NoAllocEnumerateExtensions.OptimisticallyNonAllocatingEnumerable]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/5/2024 7:00:06 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@steveharter steveharter added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab labels Sep 4, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Sep 4, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@steveharter
Copy link
Member Author

@akoeplinger did you investigate a potential JIT issue around NuGet restore?

@akoeplinger
Copy link
Member

akoeplinger commented Sep 5, 2024

no my issue turned out to be a race condition: NuGet/NuGet.Client#5905

@akoeplinger akoeplinger added Known Build Error Use this to report build issues in the .NET Helix tab and removed Known Build Error Use this to report build issues in the .NET Helix tab labels Sep 5, 2024
@jeffschwMSFT jeffschwMSFT removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Oct 23, 2024
@jeffschwMSFT
Copy link
Member

removing blocking-clean-ci as it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

@akoeplinger
Copy link
Member

let's close this since it hasn't happened again, there's nothing actionable here.

@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Oct 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab
Projects
Archived in project
Development

No branches or pull requests

3 participants