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

Known issue: NuGet "FatalProtocolException : Unable to load the service index" #90951

Closed
3 tasks
steveharter opened this issue Aug 22, 2023 · 5 comments · Fixed by #93721
Closed
3 tasks

Known issue: NuGet "FatalProtocolException : Unable to load the service index" #90951

steveharter opened this issue Aug 22, 2023 · 5 comments · Fixed by #93721
Labels
area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@steveharter
Copy link
Member

steveharter commented Aug 22, 2023

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=382187

Appears to be a known NuGet connectivity issue; adding template to catch these:
#81586
#33294

Build leg reported

GC_API.WorkItemExecution

Pull Request

#90796

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.",
    "BuildRetry": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=382187
Error message validated: NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/22/2023 8:25:55 PM UTC

Report

Build Definition Test Pull Request
443125 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
442238 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91800
441694 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp #93182
440640 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93182
440293 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91560
438911 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
438199 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
435035 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatement
433988 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93182
432136 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
430969 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
430188 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
430053 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp #93093
429956 dotnet/runtime LibraryImportGenerator.UnitTests.Compiles.ValidateNoGeneratedOuptutForNoImport #92974
429653 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93109
429167 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
428630 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93061
427248 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92927
426337 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
425987 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
421117 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92728
424272 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
424145 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
422198 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
419010 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
418441 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
418094 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
417183 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
416738 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
415368 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92375
415028 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
414911 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
413889 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92375
412715 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 7 34
@steveharter steveharter added the Known Build Error Use this to report build issues in the .NET Helix tab label Aug 22, 2023
@riarenas
Copy link
Member

#82431 (comment) mentions the underlying test issue. As nothing in the shared infrastructure should be making requests to nuget.org, I'm moving this issue to the runtime repo where the failing test lives.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 22, 2023
@riarenas riarenas transferred this issue from dotnet/dnceng Aug 22, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 22, 2023
@ghost
Copy link

ghost commented Aug 22, 2023

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

Issue Details

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=382187

Appears to be a known NuGet connectivity issue; adding template to catch these:
#81586
#33294

Build leg reported

GC_API.WorkItemExecution

Pull Request

#90796

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.",
    "BuildRetry": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=382187
Error message validated: NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/22/2023 8:17:54 PM UTC

Report

Build Definition Test Pull Request
382187 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #90796

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 1 1
Author: steveharter
Assignees: -
Labels:

area-Infrastructure-libraries, untriaged, Known Build Error, needs-area-label

Milestone: -

@jkotas jkotas removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 22, 2023
@ghost
Copy link

ghost commented Sep 9, 2023

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

Issue Details

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=382187

Appears to be a known NuGet connectivity issue; adding template to catch these:
#81586
#33294

Build leg reported

GC_API.WorkItemExecution

Pull Request

#90796

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.",
    "BuildRetry": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=382187
Error message validated: NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/22/2023 8:25:55 PM UTC

Report

Build Definition Test Pull Request
398919 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
398113 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91659
398051 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91520
397851 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
397525 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
397329 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
396111 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
394654 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
394281 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
392906 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
392353 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
391626 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
391531 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91373
391146 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
387627 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
387040 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
385835 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
385736 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #90518
384505 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91019
382187 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #90796

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 9 20
Author: steveharter
Assignees: -
Labels:

area-Infrastructure, untriaged, Known Build Error

Milestone: -

@ericstj
Copy link
Member

ericstj commented Sep 9, 2023

            Stack Trace:
                 at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3(SourceRepository source, DateTime utcNow, ILogger log, CancellationToken token)
                 at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
                 at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__16`1[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.3.3.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                 at NuGet.Protocol.DependencyInfoResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
                 at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__16`1[[NuGet.Protocol.Core.Types.DependencyInfoResource, NuGet.Protocol, Version=6.3.3.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(561,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.GetPackageDependenciesAsync(PackageIdentity packageIdentity, NuGetFramework targetFramework, ImmutableArray`1 repositories, SourceCacheContext cacheContext, ILogger logger, Builder dependencies, CancellationToken cancellationToken)
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(227,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken)
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(197,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(174,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1601,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<CreateSolutionAsync>d__97[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1416,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<CreateProjectImplAsync>d__95[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1395,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<CreateProjectAsync>d__94[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1373,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<GetSolutionAsync>d__93[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1097,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<GetSortedDiagnosticsAsync>d__82[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(465,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<VerifyDiagnosticsAsync>d__69[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(219,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunImplAsync>d__64[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(188,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunAsync>d__63[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
              /_/src/libraries/System.Private.CoreLib/tests/IntrinsicsInSystemPrivatecoreLibAnalyzer.Tests/CSharpAnalyzerVerifier`1.cs(35,0): at IntrinsicsInSystemPrivateCoreLib.Test.CSharpAnalyzerVerifier`1.<VerifyAnalyzerAsync>d__3[[IntrinsicsInSystemPrivateCoreLib.IntrinsicsInSystemPrivateCoreLibAnalyzer, System.Private.CoreLib.Generators, Version=42.42.42.42, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
              /_/src/libraries/System.Private.CoreLib/tests/IntrinsicsInSystemPrivatecoreLibAnalyzer.Tests/IntrinsicsInSystemPrivateCoreLibUnitTests.cs(578,0): at IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp()
              --- End of stack trace from previous location ---

Yikes! Do we really want our analyzer tests accessing NuGet.org to try to fetch reference assemblies? That doesn't seem right. @sharwell do you think these tests are missing something to tell the test framework where to find reference assemblies. Those must be available as part of the helix payload...

@jkoritzinsky
Copy link
Member

We have a mechanism in this repo to use the live Reference Pack. We should use it. Alternatively, since this analyzer is just for CoreLib, we should configure the tests to only pull in CoreLib as a reference.

akoeplinger added a commit to akoeplinger/runtime that referenced this issue Oct 19, 2023
…Tests

This avoids an issue where the analyzer test tries to restore reference assemblies from nuget.org during the test.
We already have helpers in place to use the live reference pack instead.

Fixes dotnet#90951
Fixes dotnet#93103
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Oct 19, 2023
akoeplinger added a commit that referenced this issue Oct 20, 2023
…Tests (#93721)

This avoids an issue where the analyzer test tries to restore reference assemblies from nuget.org during the test. We already have helpers in place to use the live reference pack instead.

Fixes #90951
Fixes #93103
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Oct 20, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 19, 2023
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
None yet
Development

Successfully merging a pull request may close this issue.

5 participants