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

[BLOCKED] Update System.CommandLine #6236

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from

Merge branch 'NuGet:dev' into scl_prefix_update

6deaf01
Select commit
Loading
Failed to load commit list.
Draft

[BLOCKED] Update System.CommandLine #6236

Merge branch 'NuGet:dev' into scl_prefix_update
6deaf01
Select commit
Loading
Failed to load commit list.
Azure Pipelines / NuGet.Client CI failed Feb 4, 2025 in 42m 12s

Build #20250204.5 had test failures

Details

Tests

  • Failed: 956 (1.06%)
  • Passed: 88,112 (97.51%)
  • Other: 1,291 (1.43%)
  • Total: 90,359

Annotations

Check failure on line 4327 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Build log #L4327

Error: The process '/Users/runner/work/1/s/cli/dotnet' failed with exit code 1

Check failure on line 4332 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Build log #L4332

Dotnet command failed with non-zero exit code on the following projects : [ '' ]

Check failure on line 15 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Build log #L15

Cmd.exe exited with code '128'.

Check failure on line 15 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Build log #L15

Cmd.exe exited with code '128'.

Check failure on line 1 in Dotnet.Integration.Test.DotnetRestoreTests.DotnetRestore_MultiTargettingProject_WithDifferentProjectReferences_ForceDoesNotRewriteAssetsFile(targetFrameworks: "net7.0;netcoreapp3.0;net472", useStaticGraphRestore: True)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Dotnet.Integration.Test.DotnetRestoreTests.DotnetRestore_MultiTargettingProject_WithDifferentProjectReferences_ForceDoesNotRewriteAssetsFile(targetFrameworks: "net7.0;netcoreapp3.0;net472", useStaticGraphRestore: True)

System.IO.DirectoryNotFoundException : Could not find a part of the path '/Users/runner/work/1/s/.test/work/61199791/a581701b/solution/classlib/template'.
Raw output
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at Dotnet.Integration.Test.DotnetIntegrationTestFixture.CreateDotnetNewProject(String solutionRoot, String projectName, String args, ITestOutputHelper testOutputHelper) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetIntegrationTestFixture.cs:line 120
   at Dotnet.Integration.Test.DotnetRestoreTests.DotnetRestore_MultiTargettingProject_WithDifferentProjectReferences_ForceDoesNotRewriteAssetsFile(String targetFrameworks, Boolean useStaticGraphRestore) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetRestoreTests.cs:line 1465
--- End of stack trace from previous location ---

Check failure on line 1 in Dotnet.Integration.Test.DotnetTrustTests.DotnetTrust_Implicity_ListAction_EmptySettings_Succeeds

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Dotnet.Integration.Test.DotnetTrustTests.DotnetTrust_Implicity_ListAction_EmptySettings_Succeeds

Expected result.ExitCode to be 0 because /Users/runner/work/1/s/.test/work/0c908f0b/b148be67/dotnet nuget trust --configfile /Users/runner/work/1/s/.test/work/0caeff96/f4787036/NuGet.Config should have succeeded but returned exit code 1 after 0.2s with the following output:

System.TypeLoadException: Could not load type 'System.CommandLine.CliConfiguration' from assembly 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at Microsoft.DotNet.Cli.Parser..cctor()
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)
, but found 1 (difference of 1).
Raw output
   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Numeric.NumericAssertions`2.Be(T expected, String because, Object[] becauseArgs)
   at Dotnet.Integration.Test.DotnetIntegrationTestFixture.RunDotnet(String workingDirectory, String args, Boolean expectSuccess, IReadOnlyDictionary`2 environmentVariables, ITestOutputHelper testOutputHelper) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetIntegrationTestFixture.cs:line 282
   at Dotnet.Integration.Test.DotnetIntegrationTestFixture.RunDotnetExpectSuccess(String workingDirectory, String args, IReadOnlyDictionary`2 environmentVariables, ITestOutputHelper testOutputHelper) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetIntegrationTestFixture.cs:line 220
   at Dotnet.Integration.Test.DotnetTrustTests.DotnetTrust_Implicity_ListAction_EmptySettings_Succeeds() in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetTrustTests.cs:line 79
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Dotnet.Integration.Test.DotnetTrustTests.DotnetTrust_CertificateFingerPrintAction_WithExistingSigner_AppendSucceeds(allowUntrustedRoot: True)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Dotnet.Integration.Test.DotnetTrustTests.DotnetTrust_CertificateFingerPrintAction_WithExistingSigner_AppendSucceeds(allowUntrustedRoot: True)

Expected result.ExitCode to be 0 because /Users/runner/work/1/s/.test/work/0c908f0b/b148be67/dotnet nuget trust certificate MyCompanyCert 9E1C016170AA9D8192AB062E904D9BBE1CD5B6EFBE344A0829967860B87C483C --allow-untrusted-root  --algorithm SHA256 --configfile /Users/runner/work/1/s/.test/work/e3e2adf1/9104e682/NuGet.Config should have succeeded but returned exit code 1 after 0.1s with the following output:

System.TypeLoadException: Could not load type 'System.CommandLine.CliConfiguration' from assembly 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at Microsoft.DotNet.Cli.Parser..cctor()
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)
, but found 1 (difference of 1).
Raw output
   at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Numeric.NumericAssertions`2.Be(T expected, String because, Object[] becauseArgs)
   at Dotnet.Integration.Test.DotnetIntegrationTestFixture.RunDotnet(String workingDirectory, String args, Boolean expectSuccess, IReadOnlyDictionary`2 environmentVariables, ITestOutputHelper testOutputHelper) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetIntegrationTestFixture.cs:line 282
   at Dotnet.Integration.Test.DotnetIntegrationTestFixture.RunDotnetExpectSuccess(String workingDirectory, String args, IReadOnlyDictionary`2 environmentVariables, ITestOutputHelper testOutputHelper) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetIntegrationTestFixture.cs:line 220
   at Dotnet.Integration.Test.DotnetTrustTests.DotnetTrust_CertificateFingerPrintAction_WithExistingSigner_AppendSucceeds(Boolean allowUntrustedRoot) in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetTrustTests.cs:line 601
--- End of stack trace from previous location ---

Check failure on line 1 in Dotnet.Integration.Test.DotnetWhyTests.WhyCommand_EmptyPackageArgument_Fails

See this annotation in the file changed.

@azure-pipelines azure-pipelines / NuGet.Client CI

Dotnet.Integration.Test.DotnetWhyTests.WhyCommand_EmptyPackageArgument_Fails

Assert.Contains() Failure: Sub-string not found
String:    "System.TypeLoadException: Could not load "···
Not found: "Required argument missing for command: 'w"···
Raw output
   at Dotnet.Integration.Test.DotnetWhyTests.WhyCommand_EmptyPackageArgument_Fails() in /Users/runner/work/1/s/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetWhyTests.cs:line 186
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)