Skip to content

[rel/4.5] Fix Retry TRX artifact publication - #12290

Merged
Amaury Levé (Evangelink) merged 2 commits into
rel/4.5from
evangelink-rel-4-5-retry-trx
Nov 9, 2026
Merged

Amaury Levé (Evangelink) merged 2 commits into
rel/4.5from
evangelink-rel-4-5-retry-trx

Conversation

@Evangelink

@Evangelink Amaury Levé (Evangelink) commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Backport the coordinated Core/Retry/TRX/PackagedApp portion of #12241 to rel/4.5 as one independently squashable servicing change.

Relates to #12287 (split source; this PR does not close or modify that bundle).

Latest servicing-base sync

Merged origin/rel/4.5 at 2882ebc66bfa290b57e179ce4416a4441c075e50 into this branch; origin/main was not merged. Current head is dda0b91b1d8f51395bc0e89f85a7639852ec52ca, with parents 05fb9f8860f3a9cbba6acb3082b8507a03c9bfe9 and 2882ebc66bfa290b57e179ce4416a4441c075e50, and tree bb3880efe0f635e2a1f7e55d5b9fa07babea6908.

The only conflict was the Core InternalAPI.Unshipped.txt; its resolution retains the exact union of Retry artifact-replay entries and the release nullable-error entries. All other 26 feature-file blobs are unchanged. The PR still has exactly the original 27-file Retry/TRX scope relative to the updated release base.

Fresh validation on this merge commit passed: full Release build/pack with zero warnings/errors; all 130 Retry/TRX/Core/forwarding unit executions; 84 incoming nullable-error protocol/host unit executions across net8.0, net9.0, and net462; and all 17 exact package-consuming cases. Discovery and execution identities match, with zero skipped cases.

All eight embedded controller payloads match this merge commit's producer packages. The current generated consumer's Core/Retry/TRX/CTRF/HTML/JUnit DLLs and restored package hashes match those packages. Actual shipping SDK 10.0.403 was rerun on a fresh-cache rebuilt ordinary consumer: recovery exit 0 and persistent failure expected exit 2, each with exactly two physical reports, four unique execution IDs, correct names/outcomes, and advertised paths equal to the existing reports.

$M = 'C:\Users\amauryleve\.copilot\session-state\dfbcf4d2-63eb-443b-9139-68cdc21da601\files\retry-release-merge'
.\build.cmd -pack -c Release -msbuildEngine vs /p:EnableCodeCoverage=false /p:RestoreFallbackFolders=Q:\packages\nuget "/bl:$M\pack-b9127633faf94d2390d51ccdd308a16c.binlog"
# Passed, exit 0; zero warnings/errors.
& "$M\run-validation.ps1" -Mode units
# Passed: 130/130.
& "$M\run-validation.ps1" -Mode protocol
# Passed: 84/84.
& "$M\run-validation.ps1" -Mode acceptance
# Passed: 17/17; zero skips.
$asset = (Get-Content -Raw "$M\asset.json" | ConvertFrom-Json).asset
& "$M\run-native.ps1" -Asset $asset
# Passed, exit 0; expected shipping-SDK inner exits 0/2.

Current exact commands, discovery plans, TRX files, package provenance, and SDK10 report/path checks are retained under $M; the initial standalone evidence below remains historical. AppX activation, hosted UI rendering, and CI on the updated head remain unverified.

Only owned raw-TRX notifications are deferred. Artifacts are copied before identified final raw reports are deleted, earlier attempts and attachments remain intact, and partial mappings are replayed without replacing the original failure. TRX process-lifetime registration, the shared manifest, PackagedApp forwarding, and both controller layouts remain coordinated.

Compatibility overloads, all release TFMs, existing public platform annotations, and shipped/public API baselines are preserved. The change adds four Retry and six Core internal API entries. No fixture, cleanup, IPC-stability, main-only coverage, Bazel, or retargeting slice is included.

Initial independent provenance

Item Exact identity
Original upstream commit f76d4524b917e64d6fd93a2cce35ecf1ec6440f6 (#12241)
Frozen split-source head 826ef0f11a51e59861ceeb6e994917587add82d5 (#12287)
Cherry-picked source slice 6be7eec3169d5324fdcf75c425b5e0e16a46fadf
Source slice parent 039c61b6c880b7a54b9bafb5cf9c6d67ab7005d0
Initial release base / initial commit parent a39964ce2cf09c4abcbaa7bb8f4e5818638a9de3
Initial standalone commit 05fb9f8860f3a9cbba6acb3082b8507a03c9bfe9
Initial required and actual tree 391bfdd0ed4ed274cc4fc5a89bf7051d8d2ea8ea

The initial standalone version had exactly one commit and 27 changed files. Its source/prepared stable patch IDs both equal 98035c0be712e24cce63e620a0f5a2ac114fc01b. The original commit message/coauthor and UTF-8 BOMs are retained.

Initial standalone validation (before base sync)

All results below were executed against the new standalone commit and its own freshly packed packages, not borrowed from the bundled PR.

Execution Result
Full repository Release build and pack, pinned SDK 12.0.100-alpha.1.26480.103 Passed, exit 0; zero warnings/errors; no TFM exclusions
Retry/TRX focused units: 18 each on net8.0, net9.0, net462, net472 72/72 passed
Core deferred-artifact units: 10 each on net8.0, net9.0, net462 30/30 passed
Changed PackagedApp forwarding methods: 14 each on net8.0, net9.0 28/28 passed
Exact package-consuming Retry/report matrix 17 discovered, 17 executed/passed, zero skips
Embedded controller provenance, net8.0 and net9.0 All eight DLLs match current producer nupkgs and this commit
Actual shipping SDK 10.0.403, ordinary fresh-cache rebuilt net10.0 consumer Recovery exit 0; persistent failure expected exit 2

The 17 cases are the seven TRX layouts, two .trx-named attachment controls, two native-SDK existing-path cases, and six CTRF/HTML/JUnit controls. Independent discovery names and fresh TRX execution identities/counters were checked, not just process success. The retained assertions check report names, outcomes, execution identities, final paths, and attachment associations.

Both controller layouts were compared byte-for-byte to current Core/Retry/TRX producer lib/net8.0 or lib/net9.0 assets, and PackagedApp's corresponding Windows lib assets. Producer nuspec repository.commit values equal the standalone SHA. The generated consumer's six report/platform DLLs on net8.0/net10.0 match current nupkg bytes and restored package SHA-512 values; primary restore caches and outputs are isolated in this checkout.

Each shipping-SDK10 run has exactly two physical reports, four unique execution IDs and one logical run ID. The earlier report contains TestMethod1=Failed, TestMethod2=Passed, TestMethod3=Passed; the root report contains only TestMethod1=Passed (recovery) or Failed (persistent failure). Distinct advertised absolute TRX paths equal exactly the two existing physical paths. SDK10 was run without its unsupported --no-artifact-post-processing switch. This is a new 10.0.403 run, not the historical bundled 10.0.401 result.

Executed entrypoints and evidence:

# E is this run's retained local session evidence directory:
$E = 'C:\Users\amauryleve\.copilot\session-state\dfbcf4d2-63eb-443b-9139-68cdc21da601\files\retry-standalone'

.\build.cmd -pack -c Release -msbuildEngine vs /p:EnableCodeCoverage=false /p:RestoreFallbackFolders=Q:\packages\nuget "/bl:$E\pack-final-519cb556befa4013872ea83e210c8eb5.binlog"
# Passed, exit 0. Own .dotnet, producer cache and output directories.

& "$E\run-validation.ps1" -Mode units
# Passed, exit 0: exact discovery/execution checks for all 130 units above.

& "$E\run-validation.ps1" -Mode acceptance
# Passed, exit 0: exact 17-case discovery/execution gate.

& "$E\run-native.ps1" -Asset 'Q:\dev\copilot-worktrees\testfx\evangelink-refactored-broccoli\artifacts\tmp\Release\testsuite\pAAUE\RetryFailedTests'
# Passed, exit 0: fresh pinned-SDK rebuild and actual shipping SDK10 runs (expected inner exits 0/2).

Each focused unit/acceptance host was invoked directly with --filter, --report-trx --report-trx-filename results.trx --results-directory <its evidence directory> --no-ansi --progress off --show-test-results failed. Exact executable/argv, start timestamps, discovery output, fresh TRX files and execution-gate results are retained in each run directory's command.json, discovery.json, results.trx, and verified.json; the independent expected*.json plans are alongside these runs. All build invocations have distinct binlogs. The native rebuild's exact argv/cache/binlog are in native-rebuild-command.json; native SDK argv/environment and identity/path checks are under native-sdk10\recovery and native-sdk10\failure.

The acceptance filter was:

FullyQualifiedName~RetryFailedTests_TrxReports_ArePublishedOncePerAttempt|FullyQualifiedName~RetryFailedTests_CtrfPreservesTrxNamedAttachments|FullyQualifiedName~RetryFailedTests_NativeSdkPublishesExistingTrxPaths|FullyQualifiedName~RetryFailedTests_CtrfReports_ExhaustedRetriesPreserveIdentities|FullyQualifiedName~RetryFailedTests_CtrfAbsoluteFileName_PublishesConsolidatedReport|FullyQualifiedName~RetryFailedTests_HtmlAndJUnitReports_AreConsolidatedWithRetryHistory

Resolved setup attempts are excluded from the green counts: an initial full pack needed an existing Aspire archive staged into the private producer cache; an initial native harness used empty rather than absent method-control environment variables. Both were corrected without changing the retained source or weakening assertions.

Remaining gaps

Actual AppX activation was not rerun: the source investigation was blocked by non-elevation and an existing preflight installationPath error. Forwarding and package/controller layout checks are not activation proof, and the platform guards remain unchanged. Hosted Azure DevOps/IDE rendering and current-head CI have not been verified. Historical counterfactual results are not counted as fresh standalone executions. No merge or auto-merge is requested.

Adapt #12241 (f76d452) across Core, Retry, TRX and both release PackagedApp controller layouts. Preserve compatibility overloads, release framework assets and existing SDK wire models; retain focused upstream failure-path and package-consumer regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve both Retry artifact replay APIs and the release JSON-RPC nullable-error API baselines.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Nov 9, 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 Nov 9, 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 Nov 9, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit a230ee4 into rel/4.5 Nov 9, 2026
25 of 32 checks passed
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Nov 9, 2026
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.

2 participants