runtime icon indicating copy to clipboard operation
runtime copied to clipboard

NuGet.Configuration.NuGetConfigurationException : NuGet.Config is not valid XML

Open jkotas opened this issue 1 year ago • 1 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=554165 Build error leg or test failing: System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.AnayzerSupportsMultipleDiagnostics Pull request: https://github.com/dotnet/runtime/pull/97964

Error Message

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

{
  "ErrorMessage": "NuGet.Configuration.NuGetConfigurationException : NuGet.Config is not valid XML",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=554165 Error message validated: NuGet.Configuration.NuGetConfigurationException : NuGet.Config is not valid XML Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 2/6/2024 2:10:42 AM UTC

Report

Build Definition Test Pull Request
559736 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp
554165 dotnet/runtime System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.CodeFixerDoesNotSimplifyStyle dotnet/runtime#97964
554094 dotnet/runtime ComInterfaceGenerator.Unit.Tests.Compiles.ValidateComInterfaceSnippets dotnet/runtime#97955

Summary

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

jkotas avatar Feb 06 '24 02:02 jkotas

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=554165 Build error leg or test failing: System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.AnayzerSupportsMultipleDiagnostics Pull request: https://github.com/dotnet/runtime/pull/97964

Error Message

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

{
  "ErrorMessage": "NuGet.Configuration.NuGetConfigurationException : NuGet.Config is not valid XML",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: jkotas
Assignees: -
Labels:

area-Infrastructure-libraries, blocking-clean-ci, Known Build Error

Milestone: -

ghost avatar Feb 06 '24 02:02 ghost

Failed in: runtime-coreclr libraries-jitstress 20240215.1

Failed tests:

net9.0-windows-Release-x86-CoreCLR_checked-zapdisable-Windows.10.Amd64.Open
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementWithOrOperationCase
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsCanOnlyBeCalledWithAppropriateIsSupportedChecksSuccess
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementAroundLocalFunctionDefinition
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsWithHelperProperty
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseWithIntrinsicsHelperAttribute
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUse
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithTernaryOperator
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementAroundLambdaFunctionDefinition
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedNestedTypeUse
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementWithNestedAndBaseTypeLookupRequired
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementButWithInadequateHelperMethodAttribute
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsCanOnlyBeCalledWithAppropriateIsSupportedChecksError
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementWithOrOperationCaseWithImplicationProcessingRequired
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseInLocalFunctionWithIntrinsicsHelperAttributeNotOnLocalFunction
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUseOfIntrinsicsFromWithinOtherMethodOnIntrinsicType
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseInLambdaWithIntrinsicsHelperAttributeOnOuterFunction
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseWithIntrinsicsHelperAttributeComplex
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseInLocalFunctionWithIntrinsicsHelperAttributeOnLocalFunction
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatement
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementButWithAdequateHelperMethodAttribute
net9.0-windows-Release-x86-CoreCLR_checked-tailcallstress-Windows.10.Amd64.Open
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementWithOrOperationCase
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsCanOnlyBeCalledWithAppropriateIsSupportedChecksSuccess
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementAroundLocalFunctionDefinition
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsWithHelperProperty
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseWithIntrinsicsHelperAttribute
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUse
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithTernaryOperator
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementAroundLambdaFunctionDefinition
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedNestedTypeUse
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementWithNestedAndBaseTypeLookupRequired
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementButWithInadequateHelperMethodAttribute
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsCanOnlyBeCalledWithAppropriateIsSupportedChecksError
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementWithOrOperationCaseWithImplicationProcessingRequired
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseInLocalFunctionWithIntrinsicsHelperAttributeNotOnLocalFunction
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUseOfIntrinsicsFromWithinOtherMethodOnIntrinsicType
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseInLambdaWithIntrinsicsHelperAttributeOnOuterFunction
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseWithIntrinsicsHelperAttributeComplex
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodUnprotectedUseInLocalFunctionWithIntrinsicsHelperAttributeOnLocalFunction
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatement
    - IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatementButWithAdequateHelperMethodAttribute
net9.0-windows-Release-x86-CoreCLR_checked-jitstress2-Windows.10.Amd64.Open
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.CodeFixerDoesNotSimplifyStyle
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.InterpolatedStringLiteralSyntaxFixedWhenStringLiteralIsConstantField
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.TopLevelStatements_MultipleSourceFiles
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.RawStringLiteralSyntaxPreservedByFixer
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.CodeFixSupportsInvalidPatternFromWhichOptionsCanBeParsed
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.CodeFixerSupportsNamedParameters
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.InvalidRegexOptions_LocalConstant
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.InterpolatedStringLiteralSyntaxFixedWhenStringLiteralIsExternalConstantField
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.LeadingAndTrailingTriviaIsPreservedByFixer
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.TestAsArgument
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.CodeFixSupportsNesting
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.InvalidRegexOptions_Negative
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.CodeFixIsNotOfferedForInvalidPatternFromWhichOptionsCannotBeParsed
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.InvalidRegexOptions
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.InterpolatedStringLiteralSyntaxPreservedByFixer
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.AnayzerSupportsMultipleDiagnostics
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.NoDiagnosticsForEmpty
    - System.Text.RegularExpressions.Tests.UpgradeToGeneratedRegexAnalyzerTests.VerbatimStringLiteralSyntaxPreservedByFixer

Error message:

 NuGet.Configuration.NuGetConfigurationException : NuGet.Config is not valid XML. Path: 'C:\Users\runner\AppData\Roaming\NuGet\NuGet.Config'.
---- System.Xml.XmlException : Root element is missing.

Stack trace:

    at NuGet.Configuration.SettingsFile.<>c__DisplayClass32_0.<ExecuteSynchronized>b__0()
   at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLocked(String filePath, Action action)
   at NuGet.Configuration.SettingsFile.ExecuteSynchronized(Action ioOperation)
   at NuGet.Configuration.SettingsFile..ctor(String directoryPath, String fileName, Boolean isMachineWide, Boolean isReadOnly)
   at NuGet.Configuration.Settings.ReadSettings(String settingsRoot, String settingsPath, Boolean isMachineWideSettings, Boolean isAdditionalUserWideConfig, SettingsLoadingContext settingsLoadingContext)
   at NuGet.Configuration.Settings.LoadUserSpecificSettings(String root, String configFileName, Boolean useTestingGlobalPath, SettingsLoadingContext settingsLoadingContext)+MoveNext()
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection) in /_/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs:line 269
   at NuGet.Configuration.Settings.LoadSettingsForSpecificConfigs(String root, String configFileName, List`1 validSettingFiles, IMachineWideSettings machineWideSettings, Boolean loadUserWideSettings, Boolean useTestingGlobalPath, SettingsLoadingContext settingsLoadingContext)
   at NuGet.Configuration.Settings.LoadSettings(String root, String configFileName, IMachineWideSettings machineWideSettings, Boolean loadUserWideSettings, Boolean useTestingGlobalPath, SettingsLoadingContext settingsLoadingContext)
   at NuGet.Configuration.Settings.LoadDefaultSettings(String root)
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 210
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 197
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 174
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.CreateSolutionAsync(ProjectId projectId, EvaluatedProjectState projectState, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 1601
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.CreateProjectImplAsync(EvaluatedProjectState primaryProject, ImmutableArray`1 additionalProjects, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 1416
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.CreateProjectAsync(EvaluatedProjectState primaryProject, ImmutableArray`1 additionalProjects, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 1395
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.GetSolutionAsync(EvaluatedProjectState primaryProject, ImmutableArray`1 additionalProjects, IVerifier verifier, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 1373
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.GetSortedDiagnosticsAsync(EvaluatedProjectState primaryProject, ImmutableArray`1 additionalProjects, ImmutableArray`1 analyzers, IVerifier verifier, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs:line 1097
   at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.VerifyDiagnosticsAsync(EvaluatedProjectState primaryProject, ImmutableArray`1 additionalProjects, DiagnosticResult[] expected, IVerifier verifier, CancellationToken cancellationToken) in /_/sr

VincentBu avatar Feb 17 '24 04:02 VincentBu

Closing as this did not fail in the last run of the libraries jitstress pipeline: https://dev.azure.com/dnceng-public/public/_build/results?buildId=572369&view=ms.vss-test-web.build-test-results-tab

mikelle-rogers avatar Feb 20 '24 18:02 mikelle-rogers