Skip to content

Localize new MSTest.TestAdapter runsettings warnings to fix main pipeline#9868

Merged
Evangelink merged 1 commit into
mainfrom
dev/amauryleve/ideal-couscous
Jul 11, 2026
Merged

Localize new MSTest.TestAdapter runsettings warnings to fix main pipeline#9868
Evangelink merged 1 commit into
mainfrom
dev/amauryleve/ideal-couscous

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Problem

main is red. The only failing test (e.g. build 20260711.8) is RunSettingsTests.UnsupportedRunSettingsEntriesAreFlagged_Localization, failing on every locale case on both Linux and Windows. The test host emits English output where localized fr-FR / it-IT text is expected.

Root cause

The native MTP integration refactor (#9748) moved the "Runsettings loggers/datacollectors are not supported by Microsoft.Testing.Platform and will be ignored" warnings out of the VSTest bridge (ExtensionResources) into MSTest.TestAdapter (PlatformAdapterResources).

The two new strings were added to the neutral PlatformAdapterResources.resx, but their .xlf targets were still state="new" carrying the English source text (OneLocBuild hadn't translated them yet). The satellite assemblies therefore contained English, and the acceptance test — which asserts on the real French/Italian translations — failed.

Fix

These strings are word-for-word identical to already-approved translations in the sibling VSTest bridge ExtensionResources xlf files. This PR copies those translations into PlatformAdapterResources.<loc>.xlf across all 13 locales and marks them state="translated".

  • 13 xlf files, 2 targets each (UnsupportedRunsettingsLoggers + UnsupportedRunsettingsDatacollectors)
  • Only target text/state changed; sources and structure untouched (XliffTasks validation unaffected)
  • UTF-8 BOM and CRLF preserved; all files well-formed
  • fr-FR (…et seront ignorés) and it-IT (I logger/datacollector Runsettings non sono supportati…) now exactly match the test's regex/substring assertions

Verification

Confirmed the produced strings match the test assertions exactly and the xlf edits are minimal/structure-preserving. A full acceptance run requires a -pack build (~30+ min) and was not executed locally; the fix is deterministic given the assertions.

The native MTP integration (#9748) moved the 'Runsettings loggers/datacollectors
are not supported' warnings from the VSTest bridge (ExtensionResources) into
MSTest.TestAdapter (PlatformAdapterResources). The two new resource strings were
added to the neutral resx but their xlf targets were still state=new with the
English source text, so the satellites emitted English at runtime and the
RunSettingsTests.UnsupportedRunSettingsEntriesAreFlagged_Localization acceptance
test (which asserts on the localized fr-FR/it-IT text) failed on main.

Copy the already-approved translations for these identical strings from the
VSTest bridge ExtensionResources xlf files into PlatformAdapterResources across
all locales and mark them state=translated.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7a4950e0-232a-4f53-9d1a-60598c2a587d
Copilot AI review requested due to automatic review settings July 11, 2026 20:15

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.

Pull request overview

Localizes MSTest adapter runsettings warnings by copying existing VSTest bridge translations across all 13 supported locales.

Changes:

  • Marks logger and data-collector warnings as translated.
  • Aligns French and Italian output with acceptance-test expectations.
  • Reuses existing sibling-resource translations.
Show a summary per file
File Description
PlatformAdapterResources.cs.xlf Adds Czech translations.
PlatformAdapterResources.de.xlf Adds German translations.
PlatformAdapterResources.es.xlf Adds Spanish translations.
PlatformAdapterResources.fr.xlf Adds French translations.
PlatformAdapterResources.it.xlf Adds Italian translations.
PlatformAdapterResources.ja.xlf Adds Japanese translations.
PlatformAdapterResources.ko.xlf Adds Korean translations.
PlatformAdapterResources.pl.xlf Adds Polish translations.
PlatformAdapterResources.pt-BR.xlf Adds Brazilian Portuguese translations.
PlatformAdapterResources.ru.xlf Adds Russian translations.
PlatformAdapterResources.tr.xlf Adds Turkish translations.
PlatformAdapterResources.zh-Hans.xlf Adds Simplified Chinese translations.
PlatformAdapterResources.zh-Hant.xlf Adds Traditional Chinese translations.

Review details

  • Files reviewed: 13/13 changed files
  • Comments generated: 13
  • Review effort level: Medium

@Evangelink Evangelink added the state/needs-review Awaiting review from the team. label Jul 11, 2026
@Evangelink
Evangelink enabled auto-merge (squash) July 11, 2026 20:19

@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.

🤖 This review was generated by Copilot from workflow run 29166716928.

Review Summary

LGTM — Straightforward localization fix that unblocks main.

Verification performed

Check Result
All 13 locale xlf files updated ✅ cs, de, es, fr, it, ja, ko, pl, pt-BR, ru, tr, zh-Hans, zh-Hant
source elements unchanged (English)
Locked terms (Runsettings, Microsoft.Testing.Platform) preserved in all targets
state changed from "new""translated"
fr-FR translation matches VSTestBridge ExtensionResources.fr.xlf source ✅ ("Les datacollecteurs...", "Les loggers...")
it-IT translation matches VSTestBridge ExtensionResources.it.xlf source
Translations match RunsettingsTests.UnsupportedRunSettingsEntriesAreFlagged_Localization assertions
No structural xlf changes (only target text + state attribute)

Dimensions assessed

Most of the 22 review dimensions (security, performance, concurrency, etc.) are not applicable to xlf-only changes. The relevant ones:

  • Correctness: Translations are word-for-word copies of the already-approved VSTestBridge strings and match the test assertions.
  • Internationalization: All 13 locales covered; locked terms preserved; state="translated" correctly signals to XliffTasks that no retranslation is needed.
  • Maintainability: Minimal diff touching only the two new trans-units per file. When OneLocBuild eventually processes these strings it will either confirm or overwrite — no conflict risk.

No issues found.

@Evangelink
Evangelink merged commit fa9bbfa into main Jul 11, 2026
22 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/ideal-couscous branch July 11, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants