Skip to content

Follow-up to #8386: address review comments on TestContext.Properties flow - #8396

Merged
Amaury Levé (Evangelink) merged 9 commits into
mainfrom
dev/amauryleve/flow-testcontext-properties-review-followup
May 22, 2026
Merged

Amaury Levé (Evangelink) merged 9 commits into
mainfrom
dev/amauryleve/flow-testcontext-properties-review-followup

Address review comments on PR #8386

caed75f
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx (Build MacOS Debug) failed May 20, 2026 in 24m 35s

Build MacOS Debug failed

Annotations

Check failure on line 230 in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestContextPropertyFlowTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestContextPropertyFlowTests.cs#L230

test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TestContextPropertyFlowTests.cs(230,1): error : ForceCleanupSeesAssemblyAndClassInitProperties ("net10.0") [net11.0]
Assertion failed. Expected string to contain the specified substring.

expected substring: "FORCECLEANUP_CLASSCLEANUP_OK"
actual:             "MSTest v4.3.0-ci (UTC 5/20/2026) [osx-x64 - .NET 10.0.8]\nfailed TestA_Fails (48ms)\n  Assertion failed.\n  intentional fail to trigger graceful stop\n    at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message) in /_/src/TestFramework/TestFramework/Assertions/Assert.Fail.cs:30\n    at ForceCleanupFlowTests.TestA_Fails() in /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/J9EKT/TestContextPropertyFlowForceCleanup/UnitTest1.cs:21\n    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)\n    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)\nTest session is aborting due to reaching failures ('1') specified by the '--maximum-failed-tests' option.\nTest run summary: Failed! - /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/J9EKT/TestContextPropertyFlowForceCleanup/bin/Release/net10.0/TestContextPropertyFlowForceCleanup.dll (net10.0|x64)\n  total: 2\n  failed: 1\n  succeeded: 1\n  skipped: 0\n  duration: 1s 896ms"
comparison:         Ordinal

Assert.Contains(ClassCleanupMarker, testHostResult.StandardOutput)

Check failure on line 46 in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/CrashDumpTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/CrashDumpTests.cs#L46

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/CrashDumpTests.cs(46,1): error : CrashDump_TesthostAndChildBothCrash_CollectsAllDumps ("net10.0") [net11.0]
Assertion failed. Expected collection to contain a specific number of elements.
Expected dumps for both the testhost and the child process 'net10.0'.
Command: /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/bin/Release/net10.0/CrashDump --crashdump --results-directory /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/679961aca9434aac962a9a430b24d0f7
====================
ExitCode: 7
====================
StandardOutput:
Microsoft.Testing.Platform v2.3.0-ci (UTC 05/20/2026) [osx-x64 - net10.0]
[createdump] Gathering state for process 60899 
[createdump] Crashing thread 239ef signal 6 (0006)
[createdump] Gathering state for process 60896 
[createdump] Crashing thread 239a6 signal 6 (0006)
[createdump] Writing full dump to file /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/679961aca9434aac962a9a430b24d0f7/CrashDump_60899_crash.dmp
[createdump] Writing full dump to file /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/679961aca9434aac962a9a430b24d0f7/CrashDump_60896_crash.dmp
[createdump] Written 5648437528 bytes (1379013 pages) to core file
[createdump] Target process is alive
[createdump] Dump successfully written in 277485ms
Test host process with PID '60896' crashed, a dump file was generated
  Out of process file artifacts produced:
    - /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/679961aca9434aac962a9a430b24d0f7/CrashDump_60896_crash.dmp
Test application process didn't exit gracefully, exit code is '134'
====================
StandardError:
Process terminated.
ChildCrashDump
   at System.Environment.FailFast(System.Runtime.CompilerServices.StackCrawlMarkHandle, System.String, System.Runtime.CompilerServices.ObjectHandleOnStack, System.String)
   at System.Environment.FailFast(System.Threading.StackCrawlMark ByRef, System.String, System.Exception, System.String)
   at System.Environment.FailFast(System.String)
   at Startup+<Main>d__0.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Startup+<Main>d__0, CrashDump, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__0 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Startup+<Main>d__0, CrashDump, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__0 ByRef)
   at Startup.Main(System.String[])
   at Startup.<Main>(System.String[])
Unhandled exception. System.InvalidOperationException: Child process did not exit within the expected timeout (60s).
   at DummyTestFramework.ExecuteRequestAsync(ExecuteRequestContext context) in /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/Program.cs:line 129
   at Microsoft.Testing.Platform.Requests.TestHostTestFrameworkInvoker.ExecuteRequestAsync(ITestFramework testFramework, TestExecutionRequest request, IMessageBus messageBus, CancellationToken cancellationToken) in /_/src/Platform/Microsoft.Testing.Platform/Requests/TestHostTestFrameworkInvoker.cs:line 92
   at Microsoft.Testing.Platform.Requests.TestHostTestFrameworkInvoker.ExecuteAsync(ITestFramework testFramework, ClientInfo client, CancellationToken cancellationToken) in /_/src/Platform/Microsoft.Testing.Platform/Requests/TestHostTestFrameworkInvoker.cs:line 73
   at Microsoft.Testing.Platform.Hosts.CommonHost.ExecuteRequestAsync(ProxyOutputDevice outputDevice, ITestSessionContext testSessionInfo, ServiceProvider serviceProvider, BaseMessageBus baseMessageBus, ITestFramework testFramework, ClientInfo client) in /_/src/Platform/Microsoft.Testing.Platform/Hosts/CommonTestHost.cs:line 181
   at Microsoft.Testing.Platform.Hosts.ConsoleTestHost.InternalRunAsync(CancellationToken cancellationToken) in /_/src/Platform/Microsoft.Testing.Platform/Hosts/ConsoleTestHost.cs:line 85
   at Microsoft.Testing.Platform.Hosts.ConsoleTestHost.InternalRunAsync(CancellationToken cancellationToken) in /_/src/Platform/Microsoft.Testing.Platform/Hosts/ConsoleTestHost.cs:line 118
   at Microsoft.Testing.Platform.Hosts.CommonHost.RunTestAppAsync(IPlatformOpenTelemetryService platformOTelService, CancellationToken testApplicationCancellationToken, List`1 alreadyDisposed) in /_/src/Platform/Microsoft.Testing.Platform/Hosts/CommonTestHost.cs:line 144
   at Microsoft.Testing.Platform.Hosts.CommonHost.RunAsync() in /_/src/Platform/Microsoft.Testing.Platform/Hosts/CommonTestHost.cs:line 45
   at Microsoft.Testing.Platform.Hosts.CommonHost.RunAsync() in /_/src/Platform/Microsoft.Testing.Platform/Hosts/CommonTestHost.cs:line 100
   at Microsoft.Testing.Platform.Hosts.TestHostControlledHost.RunAsync() in /_/src/Platform/Microsoft.Testing.Platform/Hosts/TestHostControlledHost.cs:line 24
   at Microsoft.Testing.Platform.Builder.TestApplication.RunAsync() in /_/src/Platform/Microsoft.Testing.Platform/Builder/TestApplication.cs:line 225
   at Startup.Main(String[] args) in /Users/runner/work/1/s/artifacts/tmp/Debug/testsuite/kXW9B/CrashDumpFixture/Program.cs:line 38
   at Startup.<Main>(String[] args)
[createdump] Error reading memory at 0000000106c69000 size 00004000 FAILED (ipc/send) invalid destination port (10000003)
[createdump] Writing dump FAILED
[createdump] Target process terminated
[createdump] Failure took 61883ms

expected count: 2
actual count:   1

Assert.HasCount(2, dumpFiles)

Check failure on line 8218 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Debug)

Build log #L8218

Bash exited with code '2'.