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

[release/9.0.1xx] Fix writing dotnet test results when terminal logger is off #43871

Merged
merged 3 commits into from
Oct 4, 2024

Merge branch 'release/9.0.1xx' into Fix-reading-tl

42eb4bd
Select commit
Loading
Failed to load commit list.
Merged

[release/9.0.1xx] Fix writing dotnet test results when terminal logger is off #43871

Merge branch 'release/9.0.1xx' into Fix-reading-tl
42eb4bd
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis succeeded Oct 3, 2024 in 0s

.NET Result Analysis

Details

All checks completed

[dotnet-sdk-public-ci]

[sdk-source-build]

Build Rerun

✔️ Build passed after 1 retries.

(Attempt #1) [link to build]

dotnet-sdk-public-ci / Build / TestBuild: linux (x64) / Run TestBuild Tests

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌.packages/microsoft.dotnet.helix.sdk/9.0.0-beta.24473.1/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(44,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test Microsoft.NET.Build.Containers.Tasks.IntegrationTests.CreateNewImageTests.Tasks_EndToEnd_With_EnvironmentVariable_Validation has failed. Check the Test tab or [this console log]
    ❌.packages/microsoft.dotnet.helix.sdk/9.0.0-beta.24473.1/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(44,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test Microsoft.NET.Build.Containers.Tasks.IntegrationTests.CreateNewImageTests.ParseContainerProperties_EndToEnd has failed. Check the Test tab or [this console log]
    ❌.packages/microsoft.dotnet.helix.sdk/9.0.0-beta.24473.1/tools/azure-pipelines/AzurePipelines.MultiQueue.targets(44,5): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Test Microsoft.NET.Build.Containers.Tasks.IntegrationTests.CreateNewImageTests.CreateNewImage_RootlessBaseImage has failed. Check the Test tab or [this console log]

Non-Deterministic Test Failures Detected

Microsoft.NET.Build.Containers.Tasks.IntegrationTests.CreateNewImageTests.CreateNewImage_Baseline [Console] [Details] [Artifacts] [2.55% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configurations (2)

Exception Message
System.InvalidOperationException : The registry was not loaded after 5 retries. Spawn registry attempt #1 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 60
Spawn registry attempt #2 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 60
Spawn registry attempt #3 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.Start

CallStack
   at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 109
   at Microsoft.NET.Build.Containers.IntegrationTests.DockerTestsFixture..ctor(IMessageSink messageSink) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.cs:line 15
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Microsoft.NET.Build.Containers.Tasks.IntegrationTests.CreateNewImageTests.CreateNewImage_RootlessBaseImage [Console] [Details] [Artifacts] [2.55% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configurations (2)

Exception Message
System.InvalidOperationException : The registry was not loaded after 5 retries. Spawn registry attempt #1 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 60
Spawn registry attempt #2 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 60
Spawn registry attempt #3 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.Start

CallStack
   at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 109
   at Microsoft.NET.Build.Containers.IntegrationTests.DockerTestsFixture..ctor(IMessageSink messageSink) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.cs:line 15
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Microsoft.NET.Build.Containers.Tasks.IntegrationTests.CreateNewImageTests.ParseContainerProperties_EndToEnd [Console] [Details] [Artifacts] [2.55% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configurations (2)

Exception Message
System.InvalidOperationException : The registry was not loaded after 5 retries. Spawn registry attempt #1 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 60
Spawn registry attempt #2 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 60
Spawn registry attempt #3 failed, Xunit.Sdk.XunitException: Expected command to pass but it did not.
File Name: docker
Arguments: run --rm --publish 5010:5000 --detach docker.io/library/registry:2
Exit Code: 125
StdOut:

StdErr:
Unable to find image 'registry:2' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

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)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 29
at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.Start

CallStack
   at Microsoft.NET.Build.Containers.IntegrationTests.DockerRegistryManager.StartAndPopulateDockerRegistry(ITestOutputHelper testOutput) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:line 109
   at Microsoft.NET.Build.Containers.IntegrationTests.DockerTestsFixture..ctor(IMessageSink messageSink) in /_/test/Microsoft.NET.Build.Containers.IntegrationTests/DockerTestsFixture.cs:line 15
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Was this helpful? Yes No