Skip to content

perf: single-pass PropertyBag walk in JUnitReport TestResultCapture

a416d8a
Select commit
Loading
Failed to load commit list.
Merged

[efficiency-improver] perf: single-pass PropertyBag walk in JUnitReport TestResultCapture #9018

perf: single-pass PropertyBag walk in JUnitReport TestResultCapture
a416d8a
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx (Build Windows Debug) failed Jun 11, 2026 in 39m 33s

Build Windows Debug failed

Annotations

Check failure on line 87 in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs

See this annotation in the file changed.

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

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs#L87

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs(87,1): error : Telemetry_WhenEnableTelemetryIsFalse_WithTestApplicationOptions_TelemetryIsDisabled ("net10.0") [net11.0]
Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'AssertDiagnosticReportAsync' at line 42 of file '/_/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/TelemetryDisabledTests.cs'. Output of the test host is:
Command: D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\7ltgL\WithoutTelemetry\bin\Release\net10.0\TelemetryTest.exe --diagnostic
====================
ExitCode: 8
====================
StandardOutput:
Microsoft.Testing.Platform v2.3.0-ci (UTC 06/10/2026) [win-x64 - net10.0]
Diagnostic file (level 'Trace' with async flush): D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\7ltgL\WithoutTelemetry\bin\Release\net10.0\TestResults\TelemetryTest_net10.0_x64_260610235541887.diag
Test run summary: Zero tests ran - D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\7ltgL\WithoutTelemetry\bin\Release\net10.0\TelemetryTest.dll (net10.0|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 109ms
====================
StandardError:


actual: false

Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))

Check failure on line 87 in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs

See this annotation in the file changed.

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

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs#L87

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs(87,1): error : Telemetry_WhenEnableTelemetryIsFalse_WithTestApplicationOptions_TelemetryIsDisabled ("net462") [net11.0]
Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'AssertDiagnosticReportAsync' at line 42 of file '/_/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/TelemetryDisabledTests.cs'. Output of the test host is:
Command: D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\7ltgL\WithoutTelemetry\bin\Release\net462\TelemetryTest.exe --diagnostic
====================
ExitCode: 8
====================
StandardOutput:
Microsoft.Testing.Platform v2.3.0-ci (UTC 6/10/2026) [x64 - net48]
Diagnostic file (level 'Trace' with async flush): D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\7ltgL\WithoutTelemetry\bin\Release\net462\TestResults\TelemetryTest_net462_x64_260610235542716.diag
Test run summary: Zero tests ran - D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\7ltgL\WithoutTelemetry\bin\Release\net462\TelemetryTest.exe (net462|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 87ms
====================
StandardError:


actual: false

Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))

Check failure on line 87 in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs

See this annotation in the file changed.

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

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs#L87

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs(87,1): error : Telemetry_WhenOptingOutTelemetry_WithEnvironmentVariable_TelemetryIsDisabled ("net462") [net11.0]
Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'AssertDiagnosticReportAsync' at line 100 of file '/_/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/TelemetryTests.cs'. Output of the test host is:
Command: D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net462\TelemetryTest.exe --diagnostic
====================
ExitCode: 8
====================
StandardOutput:
Microsoft.Testing.Platform v2.3.0-ci (UTC 6/10/2026) [x64 - net48]
Diagnostic file (level 'Trace' with async flush): D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net462\TestResults\TelemetryTest_net462_x64_260610235548780.diag
Test run summary: Zero tests ran - D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net462\TelemetryTest.exe (net462|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 96ms
====================
StandardError:


actual: false

Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))

Check failure on line 87 in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs

See this annotation in the file changed.

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

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs#L87

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs(87,1): error : Telemetry_ByDefault_TelemetryIsEnabled ("net462") [net11.0]
Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'AssertDiagnosticReportAsync' at line 100 of file '/_/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/TelemetryTests.cs'. Output of the test host is:
Command: D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net462\TelemetryTest.exe --diagnostic
====================
ExitCode: 8
====================
StandardOutput:
Microsoft.Testing.Platform v2.3.0-ci (UTC 6/10/2026) [x64 - net48]
Diagnostic file (level 'Trace' with async flush): D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net462\TestResults\TelemetryTest_net462_x64_260610235548830.diag
Test run summary: Zero tests ran - D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net462\TelemetryTest.exe (net462|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 78ms
====================
StandardError:


actual: false

Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))

Check failure on line 87 in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs

See this annotation in the file changed.

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

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs#L87

test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs(87,1): error : Telemetry_WhenOptingOutTelemetry_WithEnvironmentVariable_TelemetryIsDisabled ("net10.0") [net11.0]
Assertion failed. Expected condition to be true.
Expression 'AssertOutputMatchesRegex' failed for member 'AssertDiagnosticReportAsync' at line 100 of file '/_/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/TelemetryTests.cs'. Output of the test host is:
Command: D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net10.0\TelemetryTest.exe --diagnostic
====================
ExitCode: 8
====================
StandardOutput:
Microsoft.Testing.Platform v2.3.0-ci (UTC 06/10/2026) [win-x64 - net10.0]
Diagnostic file (level 'Trace' with async flush): D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net10.0\TestResults\TelemetryTest_net10.0_x64_260610235548904.diag
Test run summary: Zero tests ran - D:\a\_work\1\s\artifacts\tmp\Debug\testsuite\jIs5D\WithTelemetry\bin\Release\net10.0\TelemetryTest.dll (net10.0|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 163ms
====================
StandardError:


actual: false

Assert.IsTrue(Regex.IsMatch(testHostResult.StandardOutput, pattern))