Repository navigation
[release/10.0] Use OneLocBuild v3 - #17710
Conversation
Backport of #17706, commit 7103cc6. Change only the localization task major version; preserve branch-specific authentication and inputs. Co-authored-by: Copilot <[email protected]> Copilot-Session: 3d24c7a1-de44-482c-aa6a-eedc4a0cae5b
|
Local validation result: |
There was a problem hiding this comment.
🟡 Changes recommended
Azure Repos mirror compatibility remains unresolved and needs a validated solution or explicitly validated safe scope before merge.
1 open issue
What changed in this PR
Backports the shared localization template’s OneLocBuild v3 upgrade to release/10.0.
Changes:
- Replaces
OneLocBuild@2withOneLocBuild@3. - Preserves existing authentication, inputs, conditions, and localization PR settings.
| File | Description |
|---|---|
| eng/common/core-templates/job/onelocbuild.yml | Upgrades the shared localization task major version. |
Review effort: Balanced
| condition: ${{ parameters.condition }} | ||
|
|
||
| - task: OneLocBuild@2 | ||
| - task: OneLocBuild@3 |
## Description Update Arcade to bring in the OneLoc fix for the official build break. This updates the Arcade toolset dependencies from `10.0.0-beta.26472.2` to `10.0.0-beta.26528.9` (build `20261028.9`) from the `.NET 10 Eng` channel, including the matching SDK pins and the darc-generated `eng/common` refresh. The new Arcade revision includes [dotnet/arcade#17710](dotnet/arcade#17710), which upgrades the localization task to `OneLocBuild@3`. It also includes the updated GitHub App authentication templates consumed by the localization job. ### OneLoc Azure Repos mirror compatibility The initial OneLoc v3 task (`3.1.3572200`) had a real Azure Repos mirror host-detection bug: it selected `https://dev.azure.com/api/v3` instead of public GitHub. The OneLoc task was subsequently corrected. [dotnet/arcade#17732](dotnet/arcade#17732) records successful execution of the updated task (`3.1.3586203`) using the original Azure Repos checkout, without a separate GitHub checkout workaround. Verified that `dnceng` currently has OneLocBuild v3 `3.1.3586203` installed. `OneLocBuild@3` selects that deployed task; the minor/patch version is supplied by Azure DevOps, not the Arcade package. The [actual task log from Arcade run 3118904](https://dev.azure.com/dnceng/internal/_apis/build/builds/3118904/logs/35?api-version=7.0) confirms `Version: 3.1.3586203` and `GitHub host: github.com, REST API: https://api.github.com/` on the mirror configuration. No checkout workaround or generated-template edits are needed to address the older host-selection failure. That upstream run reported `0 resource files` and `No localized files to check-in`. It proves the mirror host-selection correction, not a fresh localization commit/push/compare/PR lifecycle. Aspire's actual localization write path with v3 still needs confirmation in an official main build. ### Validation - `darc update-dependencies -c '.NET 10 Eng'` - passed; updated all seven Arcade toolset dependencies. - `darc update-dependencies -c '.NET 10 Eng' --dry-run` - passed; no further dependency updates available. - `.\restore.cmd` - passed with 0 errors and 12 package vulnerability warnings for existing non-Arcade dependencies. - `git diff --cached --check` - passed. - PowerShell parser checks for the changed `.ps1` files, `bash -n eng/common/run-helix-job-monitor.sh`, and dependency XML/JSON parsing - passed. - Verified that all added/modified `eng/common` files match Arcade revision `8e2b32008e4016ac8d333a42d1bc27c5dd29525f`. - Existing test-selection routing already sends `eng/common/**` changes to the full PR matrix; no routing changes are needed. - Queried the live `dnceng` task catalog and inspected the timeline and task log of [Arcade run 3118904](https://dev.azure.com/dnceng/internal/_build/results?buildId=3118904): OneLoc `3.1.3586203` succeeded and selected public GitHub on the original mirror checkout, with the no-localized-files limit described above. The requested literal channel ``.NET 10 `Eng` `` was tried first but does not exist in Maestro; `darc get-channels` identifies the channel as `.NET 10 Eng` (ID 8394). The official Azure DevOps build and tests for this PR were not run. The OneLoc job is included only for non-PR builds on `main`, so a personal-branch build cannot exercise the fix. Source-index upload is likewise main-only and remains unvalidated. No localization, publishing, or branch-gating overrides were made. Fixes # (issue) ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [ ] Yes - [x] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [ ] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [ ] No - [x] No Co-authored-by: Copilot App <[email protected]>

Backport
Backport #17706 (7103cc6) to release/10.0.
Related investigation: AB#13198.
Apply the original one-line task-major replacement to the shared core localization template.
The only template change is OneLocBuild@2 to OneLocBuild@3. Preserve this release branch's existing Ceapex WIF and GitHub App authentication, all task inputs, conditions, and localization PR settings.
Validation
Merge gate: Azure Repos mirror compatibility
Draft preparation only. Do not merge until the known mirror-checkout compatibility problem is resolved and validated for affected consumers, or an explicitly reviewed safe scope is established.
The original PR documents internal validation 3109543 selecting https://dev.azure.com/api/v3 and failing with Octokit.NotFoundException when v3 interprets an Azure Repos checkout as GitHub Enterprise. A successful GitHub-backed checkout does not resolve that failure.
After approved merge, consumers must ingest the corresponding Arcade update and pass real localization validation before any temporary exemption or credential is retired. This PR does not change exemptions, retire credentials, modify consumer pipelines, deploy, enable auto-merge, or request production rollout.