Skip to content

[rel/4.5] Localize Azure DevOps report diagnostics - #12209

Merged
Amaury Levé (Evangelink) merged 1 commit into
rel/4.5from
dev/amauryleve/release-4-5-backports-cfd
Nov 4, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
rel/4.5from
dev/amauryleve/release-4-5-backports-cfd

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Pull request

Summary

Backport exactly 221 Azure DevOps report translations across 13 locales to rel/4.5 for MSTest 4.5.3 / Microsoft.Testing.Platform 2.5.3:

The exit-code translations were deliberately excluded from the earlier partial backport #12090. They are now applicable because #12149 added the corresponding resources and reporting consumer to rel/4.5; #12163 already added the data-driven identity warning.

Only the 13 AzureDevOpsResources.*.xlf catalogs change. Resource IDs, neutral RESX values, notes, all other translations, executable source, package versions, CLI options, and test scheduling are unchanged. No main-only feature or optional HangDump optimization is included.

Design and decision record

This is a generated-localization servicing backport, not a new feature. The source PRs and explicit release-resource comparison are the decision record; no separate design document is needed.

Revision Exact SHA
Release base 801ddcd10599229296bda70654fa00996c459010
This backport 27e42faeae016b9c63a4a52446b0726a763a1040
#12066 producer merge, AzureDevOpsReport catalogs only 753de5f20b1514fe46be4971753eb0edb9497dc1
#12175 producer merge 570100c3cdee7ec3653e898e34db0eb5503c2e68
#12186 producer merge f1900166f0440adeccf6c4a8470a2947eee83d0e
Audited producer catalog/tooling snapshot 8bae1c65b06293e2aea4481e4a7fd661279fd95b

Imported the original producer-generated catalogs from that audited snapshot and ran the owning AzureDevOpsReport project's UpdateXlf target against the unchanged release RESX. No XLF text was hand-edited. The final catalogs still match the producer snapshot exactly; XML comparison independently requires exactly the 17 approved messages in each locale and zero non-target changes.

Demonstration

Catalog example, not a rendered Azure DevOps UI: German ExitCodeReasonAtLeastOneTestFailed changes from the English fallback At least one test failed. to the original producer translation Mindestens ein Test ist fehlgeschlagen..

The same servicing operation covers Czech, German, Spanish, French, Italian, Japanese, Korean, Polish, Brazilian Portuguese, Russian, Turkish, Simplified Chinese, and Traditional Chinese. No layout is changed. Hosted Azure DevOps rendering and linguistic quality have not been independently reviewed; no screenshot or runtime-rendering claim is made.

Validation and regression proof

Windows; repository-pinned SDK 12.0.100-alpha.1.26480.103, initialized through eng\build.ps1. The main-only localization checker and its regression tests were extracted unchanged from the audited snapshot into session-owned scratch storage. Their Git blob identities were verified as fd2ff70ffbaeafae83e99e3fc5dd1fbc46beabef and 28c1c8da7eec93c9fd3e706558ab1e44e0a389a5; no tooling is added to the release branch.

Commands ran from this release worktree. $evidence below names this task's local session-artifact directory; its files and binlogs are retained locally, not claimed as uploaded PR artifacts.

$repo = (Get-Location).Path
$evidence = Join-Path $env:USERPROFILE '.copilot\session-state\4f2bf79f-1dcc-42eb-a917-230f97544017\files'
$guard = Join-Path $evidence 'localization-backport-guard\.github\scripts'
$env:PATH = "$env:SystemRoot\System32\WindowsPowerShell\v1.0;$env:SystemRoot\System32;$env:SystemRoot;$env:PATH"
$env:DOTNET_ROOT = Join-Path $repo '.dotnet'
$env:DOTNET_MULTILEVEL_LOOKUP = '0'
$sdk = Join-Path $env:DOTNET_ROOT 'dotnet.exe'
$env:PYTHONUTF8 = '1'

& $sdk --version
& $sdk msbuild src\Platform\Microsoft.Testing.Extensions.AzureDevOpsReport\Microsoft.Testing.Extensions.AzureDevOpsReport.csproj -restore /t:UpdateXlf /p:SupportedNetFrameworks=net8.0 /p:SkipUapTargetFramework=true /p:Configuration=Release /m:2 /nr:false "/bl:$evidence\localization-update-{}.binlog" /v:minimal
python "$guard\test_check_localization.py"
python "$guard\check_localization.py" --repository $repo
& "$evidence\verify-localization-backport.ps1" -Repository $repo
git diff --exit-code 8bae1c65b06293e2aea4481e4a7fd661279fd95b -- src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/Resources/xlf
git diff --check
Check Result
SDK identity Exact pinned SDK reported; exit 0
Owning-project restore and UpdateXlf Passed; exit 0
Unmodified localization-guard regression suite 41 tests passed; exit 0
Whole-release localization guard before importing catalogs 364 catalogs passed; exit 0
Whole-release localization guard after regeneration 364 catalogs passed; exit 0
Independent XML/diff scope check Exactly 13 catalogs, 17 messages per locale, 221 new-to-translated target replacements, zero other XML changes
Producer-catalog correspondence and whitespace Passed; exit 0

The initial Arcade bootstrap installed the pinned SDK but exited 1 when runtime-installer subprocesses could not resolve the bare powershell command. No repository files were changed to work around that environment issue. The focused owning-project restore/UpdateXlf invocation above subsequently passed using the bootstrapped SDK and process-local environment.

Full solution compilation, product tests, packing, package-consuming tests, and hosted UI execution were not run for this catalog-only change.

Test-value evidence

At 27e42faeae016b9c63a4a52446b0726a763a1040, executed structural validation establishes green-before/green-after catalog integrity, exact producer translations, unchanged release IDs/source text/notes, and the complete 221-target scope. No production algorithm, API, output layout, or scheduling changes, so behavioral mutation red/green is not applicable. Runtime rendering of each translated message and linguistic correctness remain unverified.

Backport 221 translated targets across 13 locales from #12066 (753de5f; AzureDevOpsReport catalogs only), #12175 (570100c), and #12186 (f190016). Preserve all release resource IDs, source strings, notes, and non-target catalog content.

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 4, 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.

Note

🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.

Scope: Catalog-only backport to rel/4.5: 13 AzureDevOpsResources.*.xlf files, 17 targets per locale (221 total), moving from state="new" to state="translated".

Findings: none blocking.

  • Localization: the diff changes only <target> text and state. Source text, IDs and notes are untouched, and no .resx or code changes are included.
  • Locked tokens: --minimum-expected-tests and --maximum-failed-tests appear verbatim in the added target lines of every locale.
  • No state="new" targets remain in the added lines.
  • Security, API, threading, perf and test dimensions: not applicable to this change.

Limits of this review: /tmp/gh-aw/agent/pr.diff contained only null, so I reviewed the per-file patches from the GitHub API instead. I did not verify translation linguistic quality or that the .xlf files match the output of UpdateXlf. The PR description says both were checked against the producer snapshot.

Overall: looks good from a code-review standpoint.

@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 4, 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 Nov 4, 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 4, 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 4, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit 83ed283 into rel/4.5 Nov 4, 2026
20 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/release-4-5-backports-cfd branch November 4, 2026 16:19
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Nov 4, 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