Skip to content

Preserve Azure DevOps names for data-driven test results - #12150

Merged
Amaury Levé (Evangelink) merged 7 commits into
mainfrom
dev/amauryleve/azure-devops-datarow-names
Oct 31, 2026
Merged

Amaury Levé (Evangelink) merged 7 commits into
mainfrom
dev/amauryleve/azure-devops-datarow-names

Conversation

@Evangelink

@Evangelink Amaury Levé (Evangelink) commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Pull request

Summary

Azure DevOps live publishing gives different data rows the same method-only automated test name, causing the Tests tab to reuse the last row's display name. Publish a qualified row identity while preserving each row's original title and duration, ordinary test identities, and method-level history lookups.

Fixes #12143

Design and decision record

This bug fix follows the reproduction in #12143; a separate feature design document is not needed.

  • Resolve the canonical method name with TestNodeIdentity.GetTestName and preserve native ordinary defaults using TestMethodIdentifierProperty.MethodName. Row automated names retain the complete original title without presentation normalization. Returning to opaque UIDs would regress --publish-azdo-test-results publishes automatedTestName as the TestNode UID instead of the fully-qualified test name, orphaning Azure DevOps test history #10557 and would not distinguish folded rows that share a UID.
  • Keep history consumers keyed by the method FQN without inferring ownership from display names. The publisher records MTP.CanonicalTestName/1:<UTF-16 prefix length> in the existing result comment, using the existing post-create PATCH phase because the real service drops comments on creation. Ordinary default names remain untagged; old/untagged results retain exact-name matching.
  • Aggregate owned row/legacy samples in history traversal order before the 1,000-sample cap, then publish materialized dictionaries for constant-time lookups. This fixes overlapping legal F# names, whole-row sample starvation, and repeated full-map scans without changing method-level history UX.
  • Metadata-only PATCH does not manufacture rerun attempts or republish accepted POSTs. Preserve existing retry, attachment, cancellation, run-finalization, and CLI contracts; warn explicitly if canonical metadata cannot be saved.

The earlier title/caller reconstruction was superseded after the two-method F# counterexample. String/GUID automatedTestId experiments did not round-trip usable ownership through the history endpoint; arbitrary custom fields are unsupported. Existing comments plus PATCH provide explicit ownership without a new identity subsystem.

Servicing note: this PR targets main and validates MSTest 4.6.0-dev / MTP 2.6.0-dev. A contextual rel/4.5 backport and release-branch validation are still needed for the 4.5.3/2.5.3 milestone; this is not shipped-servicing proof.

Demonstration

A real packed MSTest consumer runs two unfolded rows, two folded rows, and one ordinary test against a loopback HTTP endpoint. The captured automatedTestName values for the unfolded rows change as follows; the individual testCaseTitle values remain correct in both states:

Before:
AzureDevOpsDataRows.AuthenticationTests.Unfolded
AzureDevOpsDataRows.AuthenticationTests.Unfolded

After:
AzureDevOpsDataRows.AuthenticationTests.Unfolded ("administrator","wrongPassword")
AzureDevOpsDataRows.AuthenticationTests.Unfolded ("nonExistentUser","password")

Both reflection and source-generated metadata execute the same assertions.

The initial packed hosts also ran against real Azure DevOps Services: temporary runs 46149488 (reflection) and 46149504 (source generation), associated with build 1656493. Each child exited 0 with five passing tests; complete API readbacks verified these exact testCase.name/testCaseTitle values and outcomes:

Unfolded ("nonExistentUser","password")
Unfolded ("administrator","wrongPassword")
Folded ("nonExistentUser","password")
Folded ("administrator","wrongPassword")
Ordinary

The actual Tests-tab text snapshot also showed the five correct names. Unfolded/folded comments persisted as MTP.CanonicalTestName/1:48 / MTP.CanonicalTestName/1:46; the ordinary comment was absent. Sharing a testCaseReferenceId is not itself a naming failure. The temporary runs were deleted after exact ownership verification and not-found readback. A readable transcript is retained instead of claiming a screenshot/media upload; these local runs are not CI execution of the new source.

Validation and regression proof

Initial tested source: base a0fcc2da5d7911dae128795184f99165f3332cae plus commit e0fb492ddfd981a97d65ceb6118eb12d505ae241 (patch SHA-256 D1FF89D17DDC118657187358AE39084413C883187019F110328AC9C0CBAFEF9D). Review corrections are now committed as 2d61de97ca8dadcbfe11ec0b8da695c89bef40e6 (delta SHA-256 236B0D95B4B25275F0A5CDFB6009EFDAC33E5010AEBCB7FD6E644A995F918D6E); their executed results are recorded below.

Toolchain: repository-pinned SDK 12.0.100-alpha.1.26509.101, Windows x64, Debug product packages/unit tests, net12.0 outer acceptance host, and Release net10.0/net11.0 generated consumers. Package versions are MSTest 4.6.0-dev, Microsoft.Testing.Platform/AzureDevOpsReport 2.6.0-dev, and MSTest.SourceGeneration 4.6.0-dev.

The following commands record the initial e0fb492ddfd981a97d65ceb6118eb12d505ae241 validation. They use $evidence for the local results/binlog directory; only the machine-specific directory prefix is abbreviated.

.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f net10.0 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\green-unit-build.binlog"
# Exit 0; no warnings or errors.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~AzureDevOps' --report-trx --results-directory "$evidence\green-unit" --no-ansi --progress off
# Exit 0; 463 executed/passed, 0 failed/skipped.

.\.dotnet\dotnet.exe pack src\Platform\Microsoft.Testing.Extensions.AzureDevOpsReport\Microsoft.Testing.Extensions.AzureDevOpsReport.csproj -c Debug -v:quiet "-bl:$evidence\green-pack.binlog"
# Exit 0; repacked all five supported reporter TFMs.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests.CreateTestCaseResult|FullyQualifiedName~AzureDevOpsHistoryClientTests.GetResultsAsync_PreservesMethodHistoryForPublishedDisplayLabels' --report-trx --results-directory "$evidence\green-final-unit" --no-ansi --progress off
# Exit 0; the exact paired selection executes/passes all 14 cases.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests.DataDrivenRows_PublishDistinctAutomatedTestNames' --report-trx --results-directory "$evidence\green-acceptance" --no-ansi --progress off
# Exit 0; both metadata modes execute/pass. Each child exits 0 with 5 passing results.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --list-tests --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests' --no-ansi --progress off
# Exit 0; independently discovers 7 cases.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests' --report-trx --results-directory "$evidence\green-acceptance-all" --no-ansi --progress off
# Exit 0; 7 executed/passed, 0 failed/skipped.

The full acceptance selection includes the existing native-SDK parallel-module success/failure cases, late successors, no/legacy/current protocol paths, and oversized-attachment diagnostics. The repository execution verifier reconciled the planned identities and counts for the 14-case unit pair, 2-case consumer pair, and 7-case acceptance selection; no cases were skipped.

For the counterfactual, the final unit-test output was copied to an isolated directory and only the reporter DLL was replaced with the original package's net10.0 DLL. The test DLL, assertions, inputs, and method-level scheduling were identical. The same 14-case filter exited 2 with 8 intended assertion failures and 6 compatibility passes; the fixed output exited 0 with 14 passes.

The consumer comparison repacked each variant and restored into separate random package caches. Both original-package consumer cases exited 2 at the outer published-identity assertion, while their children each exited 0 with 5 passing tests. Both fixed-package cases passed. Actual reflection/source-generated net10.0 DLLs and the full-suite net11.0 DLL were byte-checked against the appropriate package payload.

Reporter package SHA-256:

  • Original: FC99E2CA2334D0EFA61AE3B840C765BFF6F565DEB4DCF5A19856F6C3EC0C9234.
  • Fixed: A3DC1488C781832B141CE0F4493A29FC3BB5267E3055604A666AD8DEEBA079E0.

TRX, binlogs, resolved assets, package archives, and before/after payload captures are retained in the session evidence; they have not been uploaded as public artifacts. These initial reports do not prove later revisions' CI or release-branch execution. Final real-service validation is recorded below.

Review corrections at 2d61de9

Two additional client cases reproduced the F# regression before correction: Verify (empty) and its data-driven variant were both truncated to Verify (10 executed, 8 passed, 2 intended assertion failures; exit 2). The reader now preserves raw identity/title, with canonical aggregation covered by HistoryService_AggregatesRowsUsingKnownCanonicalIdentity, HistoryService_DoesNotAliasRowsWithoutMatchingTitles, and HistoryService_CapsCombinedRowDurationSamples.

The source-generation opt-out also reproduced a failure: the old unconditional row still attempted an intentionally unbuilt SourceGeneration layout. Case selection now uses the existing opt-out-aware metadata matrix, filtered to reflection and the source-generation layout this fixture builds. Default discovery/execution still covers both modes; setting the supported flag to 1 or true selects and passes reflection only.

Earlier review-correction commands/results:

.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f net10.0 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\review-final-unit-build.binlog"
# Exit 0; no warnings or errors.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~AzureDevOps' --report-trx --results-directory "$evidence\review-final-unit" --no-ansi --progress off
# Exit 0; 470 executed/passed, 0 failed/skipped.
.\.dotnet\dotnet.exe pack src\Platform\Microsoft.Testing.Extensions.AzureDevOpsReport\Microsoft.Testing.Extensions.AzureDevOpsReport.csproj -c Debug -v:quiet "-bl:$evidence\review-final-pack.binlog"
# Exit 0; all supported reporter TFMs repacked.
.\.dotnet\dotnet.exe build test\IntegrationTests\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Microsoft.Testing.Platform.Acceptance.IntegrationTests.csproj -c Debug -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\review-acceptance-build.binlog"
# Exit 0; no warnings or errors.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests' --report-trx --results-directory "$evidence\review-acceptance-normal" --no-ansi --progress off
# Exit 0; 7 independently discovered/executed/passed, 0 failed/skipped.
foreach ($disabled in @('1', 'true')) {
    $env:MSTEST_ACCEPTANCE_SKIP_SOURCEGEN = $disabled
    .\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --list-tests --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests.DataDrivenRows_PublishDistinctAutomatedTestNames' --no-ansi --progress off
    .\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests.DataDrivenRows_PublishDistinctAutomatedTestNames' --report-trx --results-directory "$evidence\review-acceptance-optout-$disabled" --no-ansi --progress off
}
# Each value: discovery/runner exit 0; exactly 1 reflection case executed/passed, 0 skipped.

The execution verifier reconciled the exact 7/1/1 expected case sets. A fresh retained consumer verified both net10.0 metadata-mode binaries against the corrected package payload; package SHA-256 09D921F7D982738E06CCCCDA818BDFA66B64FD8D87812191578924E6D462B83F.

Canonical-metadata/history corrections at 8cb7fa2

Tested/published head: 8cb7fa24be3697e6e681cc4888cb673a3e3beba3, parent 81a212954dc6a3863afcd1948d8fe459a30f9205, PR merge base a0fcc2da5d7911dae128795184f99165f3332cae. The committed delta equals the validated metadata-final.patch, SHA-256 861593E5223FF0965A871196FBF1239ED751BAF761FC7E1643C3497287BC6528; the destination remote ref and live open PR head were independently verified.

The buildable unit-only counterfactual retained the same three unit-test source patches and API/support shapes, restoring the defective behavior in five production files. Patch SHA-256 F506E5A0F70F1CBE1827EEDCE6699CB41F401755E5F40B98572448C1DFBC8890: 26 selected/executed, 26 intended assertion failures, 0 skips, runner exit 2. It is a targeted behavior-restoration comparison, not a pristine baseline. Nested global-config discovery warnings did not prevent compilation/execution.

The identical 26 cases pass on final Debug/net10.0 and Debug/net462, exit 0, no skips. All 480 Azure DevOps unit cases pass, full Debug solution pack succeeds, Release/net472 compiles without warnings/errors, and all seven final packed-consumer acceptance cases pass with no skips. The acceptance fake's null-or-absent subResults check is not part of the unit-only counterfactual.

Exact recorded commands use the pinned toolchain and the same process-local PATH workaround, with $evidence abbreviating only the machine-specific session artifact directory:

$root = (Get-Location).Path
$env:DOTNET_ROOT = Join-Path $root '.dotnet'
$env:DOTNET_INSTALL_DIR = $env:DOTNET_ROOT
$env:Path = $env:DOTNET_ROOT + ';C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32;C:\Windows;C:\Program Files\Git\cmd'
$env:MSBUILDDISABLENODEREUSE = '1'
$filter = 'FullyQualifiedName~CreateTestCaseResult_DataDrivenRowsHaveDistinctAutomatedTestNames|FullyQualifiedName~DataRows_PatchCanonicalMetadataWithoutCreatingRerunAttempts|FullyQualifiedName~GetResultsAsync_PreservesPublishedIdentityAndTitle|FullyQualifiedName~HistoryService_AggregatesRowsUsingKnownCanonicalIdentity|FullyQualifiedName~HistoryService_UsesAuthoritativeOwnershipWhenMethodNamesOverlap|FullyQualifiedName~HistoryService_CapsSamplesInCrossRowSourceOrder|FullyQualifiedName~HistoryService_CapsMixedLegacyAndRowSamplesInSourceOrder|FullyQualifiedName~HistoryService_ReportsInvalidOwnershipMetadata'

# Comparison cwd: the owned artifacts\azdo-metadata-counterfactual worktree.
& "$env:DOTNET_ROOT\dotnet.exe" build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f net10.0 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\metadata-counterfactual-build.binlog"
& "$env:DOTNET_ROOT\dotnet.exe" artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter $filter --report-trx --results-directory "$evidence\metadata-counterfactual-tests" --no-ansi --progress off
# Build succeeds; runner exit 2, 26 intended assertion failures, 0 skips.

foreach ($framework in @('net10.0','net462')) {
    & .\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f $framework -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\metadata-final-$framework.binlog"
    if ($framework -eq 'net462') {
        & artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net462\Microsoft.Testing.Extensions.UnitTests.exe --filter $filter --report-trx --results-directory "$evidence\metadata-final-net462" --no-ansi --progress off
    } else {
        & .\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter $filter --report-trx --results-directory "$evidence\metadata-final-net10.0" --no-ansi --progress off
    }
}
# Both builds/runners exit 0; 26 executed/passed per framework, 0 skips.

& .\build.cmd -pack -c Debug -verbosity quiet -binaryLog
# Exit 0; full solution pack, zero warnings/errors.

& .\.dotnet\dotnet.exe build test\IntegrationTests\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Microsoft.Testing.Platform.Acceptance.IntegrationTests.csproj -c Debug -v:quiet "-bl:$evidence\metadata-acceptance-build-green.binlog"
& .\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests' --report-trx --results-directory "$evidence\metadata-acceptance-green" --no-ansi --progress off
# Build/runner exit 0; 7 executed/passed, 0 skips.

& .\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~AzureDevOps' --report-trx --results-directory "$evidence\metadata-all-azdo" --no-ansi --progress off
& .\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Release -f net472 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\metadata-release-net472.binlog"
# Runner exit 0, 480 executed/passed; build exit 0, zero warnings/errors.

Final reporter package SHA-256: E6E3A7E32C4EEF360D8B85A0592BCDA24DCBEC3E78051B3EC807980EDF684F28. Both executed Release/net10.0 consumer reporter DLLs equal the packed net10.0 payload, SHA-256 ED08714503157AE4F996837731DFBF95604F2AEDCA333B4BDF6F547BBA15785D. Normal and SourceGen resolved assets confirm MSTest adapter/framework/source generation 4.6.0-dev and MTP/reporter 2.6.0-dev, using an isolated fixture cache.

The real packaged commands were:

& "$evidence\run-live-packaged.ps1" -ConsumerDirectory "$root\artifacts\tmp\Debug\testsuite\p9YFl\AzureDevOpsLivePublishing\bin\Release\net10.0" -Mode reflection
& "$evidence\run-live-packaged.ps1" -ConsumerDirectory "$root\artifacts\tmp\Debug\testsuite\p9YFl\AzureDevOpsLivePublishing\bin\SourceGen\Release\net10.0" -Mode sourcegen

Each packaged child exited 0 with five passes. The original local wrappers exited 1 after execution because their readback URL used incorrect PowerShell interpolation; independent exact-URI run/results GETs then exited 0 and asserted all five exact identities/outcomes and four canonical comments. The helper was corrected without rerunning the product to hide that failure. Raw original commands/exits, readbacks, reports and provenance are retained in session artifacts, not publicly uploaded.

The new warning RESX/XLF and internal API entries are included. Existing MethodLevel/CPU-count unit scheduling (32 observed workers), per-test directories/mocks, ephemeral acceptance listener, awaited disposal, and the shared-asset class's existing [DoNotParallelize] are preserved. All ten changed C# files have their UTF-8 BOMs; the prepublication patch matches the tested hash.

Real-cloud history percentile execution and rel/4.5 servicing remain unverified; paired units establish ownership/sampling. Earlier required CI passed on 81a212954dc6a3863afcd1948d8fe459a30f9205, not automatically on the new revision. No merge or auto-merge was requested/performed.

Final revision after main merge and shutdown correction

Current tested/published head: ab26a3da748e937d7312c860233ba2671d35ece4. Its parent is 7a978364a602f49da904cf1a22a0697261b7db67, the non-rewriting merge of 8cb7fa24be3697e6e681cc4888cb673a3e3beba3 and main f8f2bfd77819bb789d4736ce7db4a567a37fcf7e. The API-baseline conflict was resolved by retaining both sides' declarations. No existing commits were amended or force-pushed.

The merge imported Arcade/dependency updates, so the product was repacked and revalidated instead of inheriting old-head proof. The SDK remains 12.0.100-alpha.1.26509.101; Arcade is 12.0.0-beta.26530.2, and CodeCoverage/AffectedTests are 18.13.0-preview.26530.1. Main-merge validation passed 492 Azure unit cases, the identical 26-case red/green comparison, seven acceptance cases, legacy builds, and two real five-test packaged runs.

A later review reproduced loss of canonical comments when normal shutdown canceled the background flush after POST acceptance but before metadata PATCH acceptance. The fix retains result IDs/comments under the existing flush semaphore and sends only id/comment on replay. It cannot overwrite outcomes, diagnostics, or retry sub-results; failed metadata saves warn without blocking remaining result delivery. No POST or artificial attempt is replayed.

Shutdown delta SHA-256: 59B098CDD2BD8B74CB1D9F22A6A6F859FF232ECA8902CBB90D8824C36270C99A. API-preserving counterfactual SHA-256: D33241B4A0E9E92865C632ACCE211D2D806F1193285501E7C19E69ADA490EB76. The same final tests/API shapes run against pre-fix publisher behavior: five execute, four owner/inherited shutdown cases fail on missing ID-based metadata updates, and the wire-shape preservation case passes; exit 2, zero skips. With the fix all five pass on net10.0 and net462; all 497 Azure unit cases and all seven acceptance cases pass. Final full Debug pack and Release/net472 compilation have zero warnings/errors.

Exact final commands, with the same process-local toolchain setup above:

$shutdownFilter = 'FullyQualifiedName~DataRows_ShutdownDuringMetadataPatch_RetriesOnlyCanonicalMetadata|FullyQualifiedName~AzureDevOpsTestResultsClient_MetadataUpdate_PreservesAllOtherResultFields'
.\build.cmd -pack -c Debug -verbosity quiet -binaryLog
# Exit 0; final full shipping pack, zero warnings/errors.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~AzureDevOps' --report-trx --results-directory "$evidence\shutdown-verified-all" --no-ansi --progress off
# Exit 0; 497 executed/passed, zero failed/skipped.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter $shutdownFilter --report-trx --results-directory "$evidence\shutdown-final-green" --no-ansi --progress off
# Exit 0; all five exact shutdown/wire cases executed/passed.
.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f net462 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\shutdown-verified-net462.binlog"
& artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net462\Microsoft.Testing.Extensions.UnitTests.exe --filter $shutdownFilter --report-trx --results-directory "$evidence\shutdown-verified-net462" --no-ansi --progress off
# Both exit 0; five executed/passed, zero skips.

# Comparison cwd: owned artifacts\azdo-shutdown-counterfactual; API/test shapes retained.
& "$env:DOTNET_ROOT\dotnet.exe" build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f net10.0 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\shutdown-counterfactual-build.binlog"
& "$env:DOTNET_ROOT\dotnet.exe" artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter $shutdownFilter --report-trx --results-directory "$evidence\shutdown-counterfactual" --no-ansi --progress off
# Build succeeds; runner exit 2, four intended assertion failures plus one preservation pass.

# Back in the PR worktree.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests' --report-trx --results-directory "$evidence\shutdown-acceptance" --no-ansi --progress off
# Exit 0; seven executed/passed, zero skips.
.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Release -f net472 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\shutdown-final-net472.binlog"
# Exit 0; zero warnings/errors.
& "$evidence\run-live-packaged.ps1" -ConsumerDirectory "$root\artifacts\tmp\Debug\testsuite\YYksi\AzureDevOpsLivePublishing\bin\Release\net10.0" -Mode shutdown-reflection
& "$evidence\run-live-packaged.ps1" -ConsumerDirectory "$root\artifacts\tmp\Debug\testsuite\YYksi\AzureDevOpsLivePublishing\bin\SourceGen\Release\net10.0" -Mode shutdown-sourcegen
# Each wrapper/child exits 0; five executed/published/passed per real run.

Final package SHA-256: 9922A1F0B144F3A6B10F7F26873B8F67314AE98249AE1C08FB2778B9AFCA9755. Both final consumer reporter DLLs equal the packed net10.0 payload, SHA-256 9FBB4C2E5FDA58DBF4BA456F62093B9F14355907C286A45415B55C7E7E3192D9. Reflection run 46153666 and source-generation run 46153680 each completed with all five exact names/titles/outcomes and four canonical comments read back. All temporary real-service runs were removed with exact-ID ownership and not-found checks. These local runs remain distinct from current-head CI; rel/4.5 servicing is still unvalidated.

Final title-identity correction

Final tested/published head: 5047b01b8c0c803f223a6eb7b9f261af390ba056, parent ab26a3da748e937d7312c860233ba2671d35ece4. Two additional concrete review cases showed why a display formatter is not an identity encoder: it changed an ordinary dotted F# method's name, and mapped default Collision (1) and custom 1 titles onto one automated name. The publisher now uses native MethodName for ordinary default detection and preserves each complete original row title. Other presentation consumers and canonical history keys are unchanged.

Identity delta SHA-256: 4524611D00A047EF9358389132B8EC49246B0F0EC51F03A0FBAF6D21A9ED1AFE; retained-test counterfactual SHA-256: 408A5E57EA55077E09290E9CFBBDB0443A0908C481A6020495E0334689153DC0. All three exact naming cases execute/fail on the prior publisher and pass with the correction, including net462. All 500 Azure unit cases pass; final full Debug pack and all seven outer acceptance cases pass without warnings/errors or skips.

The packed DataRow consumer now executes seven tests in each metadata mode: two folded rows, two unfolded rows, two real custom/default collision rows, and an ordinary method. Six canonical comments are asserted. Real runs 46154604 (reflection) and 46154608 (source generation) each executed/published/passed seven, with all exact names/titles/outcomes/comments read back. Both runs were deleted after ownership verification and exact-ID not-found checks.

Final reporter package SHA-256: CCD811E718A3BCB73544AB4DBA12480999E5248637CD2D416E3A3063B9D03D1E. Both final net10.0 consumer DLLs equal the packed payload, SHA-256 979BBE6B4B58257E76160B1BFD4588FC390F06270EB84E85923A1E2560691D9D. The current collision pair is:

automatedTestName: AzureDevOpsDataRows.AuthenticationTests.Collision (Collision (1))
testCase.name:     Collision (1)

automatedTestName: AzureDevOpsDataRows.AuthenticationTests.Collision (1)
testCase.name:     1

Final exact commands/results (same pinned toolchain/environment):

.\build.cmd -pack -c Debug -verbosity quiet -binaryLog
# Exit 0; final full shipping pack, zero warnings/errors.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~AzureDevOps' --report-trx --results-directory "$evidence\identity-final-all" --no-ansi --progress off
# Exit 0; 500 executed/passed, zero failed/skipped.
$identityFilter = 'FullyQualifiedName~CreateTestCaseResult_OrdinaryDottedMethod_PreservesIdentity|FullyQualifiedName~CreateTestCaseResult_CustomRowNamesDoNotCollapse'
# Same final test source in the owned prior-publisher comparison.
& "$env:DOTNET_ROOT\dotnet.exe" artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net10.0\Microsoft.Testing.Extensions.UnitTests.dll --filter $identityFilter --report-trx --results-directory "$evidence\identity-counterfactual" --no-ansi --progress off
# Exit 2; three executed intended identity assertion failures, zero skips.
# Back in the final PR worktree:
.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Extensions.UnitTests\Microsoft.Testing.Extensions.UnitTests.csproj -c Debug -f net462 -p:SkipUapTargetFramework=true -v:quiet "-bl:$evidence\identity-final-net462.binlog"
& artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net462\Microsoft.Testing.Extensions.UnitTests.exe --filter $identityFilter --report-trx --results-directory "$evidence\identity-final-net462" --no-ansi --progress off
# Build/runner exit 0; three cases pass, zero skips.
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.Acceptance.IntegrationTests\Debug\net12.0\Microsoft.Testing.Platform.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~AzureDevOpsLivePublishingTests' --report-trx --results-directory "$evidence\identity-final-acceptance" --no-ansi --progress off
# Exit 0; seven outer cases pass, including seven child results in each DataRow mode.
& "$evidence\run-live-packaged.ps1" -ConsumerDirectory "$root\artifacts\tmp\Debug\testsuite\bBgtX\AzureDevOpsLivePublishing\bin\Release\net10.0" -Mode exacttitle-reflection
& "$evidence\run-live-packaged.ps1" -ConsumerDirectory "$root\artifacts\tmp\Debug\testsuite\bBgtX\AzureDevOpsLivePublishing\bin\SourceGen\Release\net10.0" -Mode exacttitle-sourcegen
# Each wrapper/child exit 0; seven exact real-service results and six comments verified.

The earlier five-test consumer records above are historical evidence, not the current result shape. No media upload or current-head CI success is inferred from the local records. Shipping/rel/4.5 servicing remains unvalidated.

Test-value evidence

Current evidence is bound to 5047b01b8c0c803f223a6eb7b9f261af390ba056, with its exact shutdown delta/counterfactual hashes above. Initial row-name proof is separately bound to e0fb492ddfd981a97d65ceb6118eb12d505ae241; metadata ownership/sampling proof was repeated after the main merge. Do not treat those historical source states as CI evidence for the final head.

Contract / test group Targeted counterfactual Correct implementation Evidence / gap
Factory ownership metadata (4 native/bridge folded/unfolded cases) Executed: detected; expected comment, actual null Executed: all 4 pass, preserving names/titles/durations Same unit-test sources and selection
Client name/title/comment transport (10 JSON cases) Executed: detected; expected comment, actual null Executed: all 10 pass Actual response deserialization
Metadata-only PATCH, including failure (2 cases) Executed: detected; required metadata update missing Executed: both pass Exact new IDs, no manufactured attempts or accepted-POST duplication
Canonical aggregation and overlapping ordinary F# methods (4 cases) Executed: detected; ordinary fail count expected 0, actual 1; incorrect row alias Executed: all 4 pass Explicit ownership, exact independent counts/durations
Cross-row and mixed legacy/row cap (2 cases) Executed: detected; p95 expected 10,000 ms, actual 100 ms Executed: both pass, bounded 1,000 samples Same traversal inputs; p95/p99 assertions
Invalid/unsupported metadata (4 cases) Executed: detected; window expected 0, actual 14 Executed: all 4 warn/reset as intended No silent ownership guesses
Packed publishing and real service names/comments Earlier naming counterfactual detected wrong identities; no new cloud counterfactual claimed Executed: 7 acceptance passes and two real five-test packaged runs Package/DLL equality and complete service readbacks
Lookup cost Static: prior code scans all historical names per lookup Static: direct dictionary lookups No measured performance timing claimed
Shutdown after POST acceptance: DataRows_ShutdownDuringMetadataPatch_RetriesOnlyCanonicalMetadata (four owner/inherited success/failure cases) Executed: detected; all four lack the required metadata replay Executed: all four pass Exact accepted IDs/comments, no duplicate POST, warning on failure, remaining results preserved
Safe deferred payload: AzureDevOpsTestResultsClient_MetadataUpdate_PreservesAllOtherResultFields Executed: preservation pass with API shape retained Executed: passes Complete equality of the ID/comment-only JSON; no outcome/diagnostic/sub-result fields
Ordinary dotted identity: CreateTestCaseResult_OrdinaryDottedMethod_PreservesIdentity Executed: detected; unwanted duplicate method title Executed: passes on net10/net462 Exact unchanged FQN and null metadata comment
Distinct original row titles: CreateTestCaseResult_CustomRowNamesDoNotCollapse (native/bridge) Executed: detected; equal automated names for distinct titles Executed: both pass Exact unnormalized title identities; packed real custom/default rows in both modes

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:16
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Oct 30, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12150

Compared merge base a0fcc2da5d7911dae128795184f99165f3332cae with head e0fb492ddfd981a97d65ceb6118eb12d505ae241. Evidence applies to this head, not every intermediate commit.

Test-value evidence

All items below are static predictions. This workflow ran no code. The PR description reports executed original-vs-fixed runs, but I could not verify those records.

Contract Test / decisive assertion Counterfactual (static) Fixed
Data rows get distinct automated names, with title and duration preserved CreateTestCaseResult_DataDrivenRowsHaveDistinctAutomatedTestNames (4 cases): AutomatedTestName equals the FQN plus the row suffix Reverting to GetTestName gives a method-only name, so the AreEqual fails (predicted) Passes (predicted)
History strips the row suffix only when the title reproduces the published label GetResultsAsync_PreservesMethodHistoryForPublishedDisplayLabels (8 cases): AutomatedTestName equals the expected identity Without GetHistoryTestName, the 4 normalization cases keep the suffix and fail; the 4 fallback cases pass (predicted) Passes (predicted)
End-to-end published identity, reflection and source-generation DataDrivenRows_PublishDistinctAutomatedTestNames: sequence of (name, title) pairs Method-only names fail the sequence assertion (predicted) Passes (predicted)
Retry path uses the display label Updated expectation in the shared-uid test: SharedUid (Duplicate title) The old name SharedUid fails the updated expectation (predicted) Passes (predicted)

Executed red/green proof: not independently verifiable here. PR-body claims and CI status are not treated as paired execution records.

🧵 Parallel safety

STATUS: CLEAN, static read-only review. No findings.

Test assembly Scope Workers
Microsoft.Testing.Extensions.UnitTests MethodLevel 0 (all cores)
Microsoft.Testing.Platform.Acceptance.IntegrationTests MethodLevel 0 (all cores)

The new unit tests are pure and in-memory. The acceptance test uses its own TempDirectory, its own service instance and per-host environment, and only reads the shared asset.

Per-test assessment

Pseudo-mutation evidence below consists of static predictions, not executed mutation results.

ResultQualityTestNotesHow to improve
Pass A (90–100) new AzureDevOpsLivePublishingTests.
CreateTestCaseResult_
DataDrivenRowsHaveDistinctAutomatedTestNames
Covers native/bridge and folded/unfolded rows with exact names, titles and durations. None
Pass A (90–100) new AzureDevOpsHistoryClientTests.
GetResultsAsync_
PreservesMethodHistoryForPublishedDisplayLabels
Data rows cover normalization and each fallback branch with exact expected names. None
Pass A (90–100) new AzureDevOpsLivePublishingTests.
DataDrivenRows_
PublishDistinctAutomatedTestNames
End-to-end exact sequence of names and titles, in both metadata modes. None
Pass B (80–89) mod AzureDevOpsLivePublishingTests.
(shared-uid retry test)
Expectation updated to the new display-label identity; the rest of the test is unchanged. None

No inline findings. Existing-thread lookup: the PR had no prior reviews.

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 55.4 AIC · ⌖ 0.829 AIC · ⊞ 8K · ◷

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Parenthesized F# method names lose their history lookup identity, and an unconditional source-generation test row breaks acceptance runs using the supported opt-out.

2 open issues
What changed in this PR

This PR addresses #12143 by giving Azure DevOps live-published data rows distinct qualified names, while preserving row titles and durations and maintaining method-level history lookups.

Changes:

  • Publish qualified names with distinguishing display-name suffixes.
  • Normalize published labels when reading method history.
  • Add unit and packed-consumer coverage for folded/unfolded rows and reflection/source-generated metadata.

Test-value evidence: The PR reports paired regression results for revision e0fb492ddfd981a97d65ceb6118eb12d505ae241. Assertions were inspected statically; execution artifacts were unavailable and tests were not run during this review.

File Description
test/​UnitTests/​Microsoft.Testing.Extensions.UnitTests/​AzureDevOpsLivePublishingTests.cs Checks distinct row identities and preserved titles and durations.
test/​UnitTests/​Microsoft.Testing.Extensions.UnitTests/​AzureDevOpsHistoryClientTests.cs Covers history normalization and fallback identities.
test/​IntegrationTests/​Microsoft.Testing.Platform.Acceptance.IntegrationTests/​AzureDevOpsLivePublishingTests.cs Tests published payloads from real MSTest data rows in both metadata modes.
src/​Platform/​Microsoft.Testing.Extensions.AzureDevOpsReport/​PACKAGE.md Documents row identities and method-level history behavior.
src/​Platform/​Microsoft.Testing.Extensions.AzureDevOpsReport/​InternalAPI/​InternalAPI.Unshipped.txt Tracks the response title property.
src/​Platform/​Microsoft.Testing.Extensions.AzureDevOpsReport/​AzureDevOpsTestResultsPublisher.ResultFactory.cs Uses display labels for automated test names.
src/​Platform/​Microsoft.Testing.Extensions.AzureDevOpsReport/​AzureDevOpsHistoryClient.cs Reads result titles and normalizes history keys.

Review effort: Balanced

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. state/approved Proposal approved; ready for implementation. labels Oct 30, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the state/approved Proposal approved; ready for implementation. label Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

A maintainer must decide between authoritative canonical-method metadata and exact per-row history before compatibility behavior and the aggregation and lookup design can be finalized.

3 open issues

Review effort: Balanced

@github-actions

This comment has been minimized.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 31, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. state/approved Proposal approved; ready for implementation. labels Oct 31, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 31, 2026 16:24
@github-actions github-actions Bot added needs/merge-conflict-resolution PR has merge conflicts that must be resolved. and removed state/approved Proposal approved; ready for implementation. labels Oct 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Session finalization can cancel the metadata PATCH after a successful POST, permanently losing method-history metadata without a warning or a recoverable update for the final flush.

1 open issue
3 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12150

Compared merge base f8f2bfd77819bb789d4736ce7db4a567a37fcf7e with head 7a978364a602f49da904cf1a22a0697261b7db67. Evidence applies to this head, not every intermediate commit.

Test-value evidence

All items are static predictions. This workflow ran no code and found no accessible paired execution records.

  • History client parses testCaseTitle and comment. GetResultsAsync_PreservesPublishedIdentityAndTitle (10 data rows) asserts the title, the comment and the unchanged identity. Without the Select initializer both properties stay null, so the title and comment assertions would fail. Likely killed (inferred).
  • History service aggregates rows under the canonical name.
    • HistoryService_AggregatesRowsUsingKnownCanonicalIdentity and HistoryService_UsesAuthoritativeOwnershipWhenMethodNamesOverlap assert exact pass/fail counts and P95/P99 durations. They would fail if rows were not mapped to the canonical name.
    • HistoryService_CapsMixedLegacyAndRowSamplesInSourceOrder and HistoryService_CapsSamplesInCrossRowSourceOrder pin the sample cap to source order. Likely killed (inferred).
  • Invalid canonical-name metadata is reported. HistoryService_ReportsInvalidOwnershipMetadata covers 0, out-of-range, a non-suffix boundary and an unsupported version. It asserts the warning and that no stats were published.
  • Publisher writes canonical-name metadata and PATCHes it without a fake attempt. The changed acceptance and unit tests in AzureDevOpsLivePublishingTests are expected to fail if the comment were dropped or a single execution became a rerun. Static prediction; I did not trace every case.
  • PACKAGE.md, the resx/xlf files and InternalAPI.Unshipped.txt: not applicable (non-executable).
  • Gaps: the PR description's reported original-versus-fixed runs could not be verified from here. Nothing was executed.

🧵 Parallel safety

PARALLEL-SAFETY RESULT
STATUS: PARTIAL
NOTES: The parallel-safety specialist was not run. Coverage was not completed. This is not a clean result.
END PARALLEL-SAFETY RESULT

My own read of the changed unit tests found per-test Mock and TextLogger instances and no shared static state. I did not review the acceptance test assets.

Per-test assessment

Pseudo-mutation evidence is static prediction, not executed results. I did not grade each changed test method individually.

ResultQualityTestNotesHow to improve
Uncertain—new AzureDevOpsHistoryServiceTests.
HistoryService_*
(7 tests)
Exact count and duration assertions protect the claimed contracts. No per-test grade was produced.Run the per-test rubric to obtain a grade.
Uncertain—mod AzureDevOpsHistoryClientTests.
GetResultsAsync_
PreservesPublishedIdentityAndTitle
It asserts identity, title, comment, outcome and duration across 10 rows. No per-test grade was produced.Run the per-test rubric to obtain a grade.
Uncertain—mod AzureDevOpsLivePublishingTests (unit and acceptance)Changed methods were not individually resolved or graded.Run the per-test rubric over the changed ranges.

No inline comments: no verified actionable defect was found in the changed tests. Existing review threads were not reconciled for deduplication.

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 38.7 AIC · ⌖ 0.827 AIC · ⊞ 7.7K · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The result-name formatter still collapses distinct data-row titles and changes default identities for dotted F# methods, leaving title reuse unresolved and disrupting Azure DevOps history.

3 open issues

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12150

Compared merge base f8f2bfd77819bb789d4736ce7db4a567a37fcf7e with head ab26a3da748e937d7312c860233ba2671d35ece4. Evidence applies to this head, not every intermediate commit.

Test-value evidence

All items are static predictions. This workflow ran no code and found no accessible paired execution records. PR-body claims and CI status are not treated as executed proof.

  • History client keeps testCaseTitle, comment, and the published identity. GetResultsAsync_PreservesPublishedIdentityAndTitle (10 data rows) asserts AutomatedTestName, TestCaseTitle, Comment, Outcome and duration. Without the mapping, the title and comment assertions fail. Likely killed (inferred).
  • History service aggregates rows under the canonical method name. HistoryService_AggregatesRowsUsingKnownCanonicalIdentity, HistoryService_UsesAuthoritativeOwnershipWhenMethodNamesOverlap and HistoryService_DoesNotAliasRowsWithoutMatchingTitles assert exact counts, flakiness and P95/P99 for both the positive and negative cases. Likely killed (inferred).
  • 1000-sample duration cap in source order. HistoryService_CapsCombinedRowDurationSamples, HistoryService_CapsSamplesInCrossRowSourceOrder and HistoryService_CapsMixedLegacyAndRowSamplesInSourceOrder assert the sample count and the percentiles. A different cap or ordering gives different percentiles. Likely killed (inferred).
  • Invalid ownership metadata is reported. HistoryService_ReportsInvalidOwnershipMetadata (4 cases) asserts the warning, that no stats are published, and HistoryWindowInDays == 0.
  • Publisher end-to-end identity. The acceptance test DataDrivenRows_PublishDistinctAutomatedTestNames (reflection and source generation) asserts the exact sequence of (name, title) pairs, one run created and completed, and the canonical metadata comment lengths. The fake server also asserts that the PATCH carries the same name and no manufactured subResults. Method-only names or a missing comment would fail it. Likely killed (inferred).
  • Publisher unit tests (AzureDevOpsLivePublishingTests, changed ranges 379-567 and others): the changed methods were not individually traced. They are covered under the evidence gap below.
  • Not applicable: PACKAGE.md, resx/xlf, InternalAPI.Unshipped.txt.
  • Gap: the unit-test publisher changes (about 250 lines) were assessed at class level only.

🧵 Parallel safety

STATUS: CLEAN. Static read-only review, no findings.

Test assembly Scope Workers
Microsoft.Testing.Extensions.UnitTests MethodLevel 0 (all cores)
Microsoft.Testing.Platform.Acceptance.IntegrationTests MethodLevel 0 (all cores)

The acceptance class is [DoNotParallelize], and it restores TestHost.MaxOutstandingExecutions in a finally. The new unit tests use per-test mocks and loggers, GUID-named paths, and loopback port 0.

Per-test assessment

Pseudo-mutation evidence below consists of static predictions, not executed mutation results.

ResultQualityTestNotesHow to improve
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
AggregatesRowsUsingKnownCanonicalIdentity
Exact counts and percentiles protect canonical aliasing.None
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
UsesAuthoritativeOwnershipWhenMethodNamesOverlap
Both overlap cases assert exact counts and durations.None
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
DoesNotAliasRowsWithoutMatchingTitles
The negative case checks both stats APIs and the row's own identity.None
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
CapsCombinedRowDurationSamples
Asserts the 1000-sample cap and the resulting percentiles.None
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
CapsSamplesInCrossRowSourceOrder
The slow-versus-fast order pins the sample-cap order.None
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
CapsMixedLegacyAndRowSamplesInSourceOrder
Mixed legacy and row sources are pinned to their order.None
PassA (90–100)new AzureDevOpsHistoryServiceTests.
HistoryService_
ReportsInvalidOwnershipMetadata
Four invalid-metadata shapes each assert the warning and no stats.None
PassA (90–100)new AzureDevOpsHistoryClientTests.
GetResultsAsync_
PreservesPublishedIdentityAndTitle
Ten data rows assert identity, title, comment, outcome and duration.None
PassA (90–100)new AzureDevOpsLivePublishingTests.
DataDrivenRows_
PublishDistinctAutomatedTestNames
(acceptance)
An exact sequence of names and titles plus the run counts and metadata, in both modes.None
Uncertain—mod AzureDevOpsLivePublishingTests (unit, changed ranges 379-567, 739-760, 4664-4669, 5727-5826)Changed methods were not individually resolved or graded.Re-run /review-tests with per-method bodies for this file.

No inline findings: no verified, actionable defect was found. Existing reviews on this PR are earlier-head reports from this workflow with no inline threads, so there was nothing to deduplicate.

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 68.6 AIC · ⌖ 0.907 AIC · ⊞ 7.7K · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Default F# test names containing dots are misclassified as custom titles, changing their Azure DevOps automated identities and splitting existing test history.

2 open issues
1 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12150

Compared merge base f8f2bfd77819bb789d4736ce7db4a567a37fcf7e with head 5047b01b8c0c803f223a6eb7b9f261af390ba056. Evidence applies to this head, not every intermediate commit.

Test-value evidence

All items are static predictions. This workflow ran no code, and I found no accessible paired original/fixed execution records.

Contract Test / decisive assertion Counterfactual (predicted) Correct implementation
History client preserves automatedTestName, testCaseTitle and the ownership comment AzureDevOpsHistoryClientTests.GetResultsAsync_PreservesPublishedIdentityAndTitle (10 data rows); Assert.AreEqual on each field Dropping or rewriting the title or comment: likely killed (inferred) Pass
History aggregation uses the canonical-identity ownership metadata, with no heuristic aliasing HistoryService_AggregatesRowsUsingKnownCanonicalIdentity, HistoryService_UsesAuthoritativeOwnershipWhenMethodNamesOverlap, HistoryService_DoesNotAliasRowsWithoutMatchingTitles; exact pass/fail counts and P95 Prefix or parenthesis heuristic aliasing: likely killed (inferred) Pass
Duration samples are capped at 1000 in source order HistoryService_CapsCombinedRowDurationSamples, HistoryService_CapsSamplesInCrossRowSourceOrder, HistoryService_CapsMixedLegacyAndRowSamplesInSourceOrder; SampleCount and P95/P99 Wrong cap order or no cap: likely killed (inferred) Pass
Invalid ownership metadata is rejected with a warning HistoryService_ReportsInvalidOwnershipMetadata (4 rows) Accepting a bad boundary or version: likely killed (inferred) Pass
Live publishing gives data-driven rows distinct automated test names and patches canonical metadata without creating rerun attempts New cases in AzureDevOpsLivePublishingTests (unit and acceptance), e.g. CreateTestCaseResult_*, DataRows_PatchCanonicalMetadata*, AzureDevOpsTestResultsClient_MetadataUpdate_PreservesAllOtherResultFields, DataDrivenRows_PublishDistinctAutomatedTestNames Name collapse or a duplicate attempt: predicted detected. Not individually traced in depth. Pass (predicted)
Resource, xlf, PACKAGE.md and InternalAPI changes Not applicable (non-behavioral) n/a n/a

Evidence gap: the live-publishing unit tests (~300 added lines) were assessed at contract level only, and the acceptance-test changes were not traced.

🧵 Parallel safety

STATUS: CLEAN. Counts: Critical=0, High=0, Warning=0, Info=0.

Test assembly Scope Workers Analyzer coverage
Microsoft.Testing.Extensions.UnitTests MethodLevel 0 (auto) Manual diff scan
Microsoft.Testing.Platform.Acceptance.IntegrationTests Class-level [DoNotParallelize] on AzureDevOpsLivePublishingTests n/a Manual diff scan

No shared static state, environment mutation, fixed paths or ports, or current-directory changes were found. The unit tests use instance-scoped mocks and per-test directories.

Per-test assessment

Pseudo-mutation evidence consists of static predictions, not executed mutation results. This is a representative scorecard: the test groups are listed, and individual live-publishing methods were not graded one by one.

ResultQualityTestNotesHow to improve
Pass A (90–100) new AzureDevOpsHistoryClientTests.
GetResultsAsync_
PreservesPublishedIdentityAndTitle
Ten data rows assert every parsed field exactly. None
Pass A (90–100) new AzureDevOpsHistoryServiceTests.
HistoryService_
AggregatesRowsUsingKnownCanonicalIdentity
Exact counts, flakiness and P95/P99 on mixed owned rows. None
Pass A (90–100) new AzureDevOpsHistoryServiceTests.
HistoryService_
UsesAuthoritativeOwnershipWhenMethodNamesOverlap
Overlapping names are separated with exact counts and durations. None
Pass B (80–89) new AzureDevOpsHistoryServiceTests.
HistoryService_
DoesNotAliasRowsWithoutMatchingTitles
Checks no alias and the retained row, though not its duration stats. None
Pass A (90–100) new AzureDevOpsHistoryServiceTests.
HistoryService_
CapsCombinedRowDurationSamples
Asserts the 1000 cap and P95/P99 from the ordered samples. None
Pass A (90–100) new AzureDevOpsHistoryServiceTests.
HistoryService_
CapsSamplesInCrossRowSourceOrder
The source-order effect shows in the P95 value. None
Pass A (90–100) new AzureDevOpsHistoryServiceTests.
HistoryService_
CapsMixedLegacyAndRowSamplesInSourceOrder
The legacy and row mix is covered with exact stats. None
Pass B (80–89) new AzureDevOpsHistoryServiceTests.
HistoryService_
ReportsInvalidOwnershipMetadata
Asserts only that a WARNING is present, not its text. None
Uncertain — new/mod AzureDevOpsLivePublishingTests.* (unit and acceptance changes) Not graded per method; assessed at contract level only. Run per-method grading on the changed ranges to resolve.

No inline findings met the publication gate, so no inline comments were posted.

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety
specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 61.9 AIC · ⌖ 0.903 AIC · ⊞ 7.7K · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Published identities can still collide between parameterized rows and ordinary methods, while FQN-only bridge nodes with dotted method names can lose their existing Azure DevOps history.

2 open issues
2 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Final test-triage resolution — Azure Pipelines build 1657983

Result: inconclusive, no actionable test failure found.

  • The build succeeded. The collected CTRF reports (Linux/Windows legs) contain no failed tests, no retry attempts and no flaky records. The only non-passing results are tests skipped with "Test is only supported on Windows" on the Linux leg.
  • There were no crash or hang diagnostics and no timeline signals. 25 slow candidates were found, but none met the slow-regression threshold (0 regressions).
  • Evidence is marked incomplete: one artifact download failed. This is a gap in the collected data, not proof that the affected legs are clean.
  • No issue is warranted. The build has no failures, flakiness or crashes to match against the durable-issue thresholds.

Next step: none required unless a later build shows a failure.

🤖 Automated content by GitHub Copilot. Generated by the Pipeline Test Triage workflow. · copilot · auto · 29.7 AIC · ⌖ 0.51 AIC · ⊞ 9.6K

@Evangelink

Copy link
Copy Markdown
Member Author

/backport to rel/4.5

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Amaury Levé (@Evangelink) backporting to rel/4.5 failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix Azure DevOps names for data-driven test results
Using index info to reconstruct a base tree...
M	test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/AzureDevOpsLivePublishingTests.cs
M	test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsHistoryClientTests.cs
Falling back to patching base and 3-way merge...
Auto-merging test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/AzureDevOpsLivePublishingTests.cs
Auto-merging test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsHistoryClientTests.cs
CONFLICT (content): Merge conflict in test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsHistoryClientTests.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix Azure DevOps names for data-driven test results
Error: The process '/usr/bin/git' failed with exit code 128

NOTE: A PR will be created, but needs to be revised manually!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AzureDevOpsReport] --publish-azdo-test-results shows the wrong display name for DataRow results

3 participants