Skip to content

[release/10.0] Use OneLocBuild v3 - #17710

Merged
missymessa merged 3 commits into
release/10.0from
users/mjanecke/backport-17706-release-10.0
Oct 28, 2026
Merged

missymessa merged 3 commits into
release/10.0from
users/mjanecke/backport-17706-release-10.0

Conversation

@missymessa

@missymessa missymessa commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

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

  • Parsed every changed YAML template with PyYAML.
  • Compared against the release-branch base: exactly one task-major replacement per file, with all other content and parsed inputs unchanged.
  • Complete diff reviewed and git diff --check passed.
  • Full local Release restore/build/test was attempted but restore failed with NU1903 (warnings-as-errors) for the unchanged Microsoft.OpenApi.Readers 1.3.2 dependency in SwaggerGenerator projects (GHSA-7pxr-59rr-hqj2). Compilation/tests were not reached. Required branch CI and actual release-consumer localization validation remain outstanding.
  • The original PR records successful proxy-enabled, nonempty localization branch/push/compare/PR validation for a GitHub-backed consumer. That is not validation of this release branch or of Azure Repos mirror checkouts.

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.

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
Copilot AI balanced review requested due to automatic review settings October 19, 2026 20:55
@missymessa

Copy link
Copy Markdown
Member Author

Local validation result: Build.cmd -configuration Release -test failed during restore with NU1903 (warning-as-error) for the existing Microsoft.OpenApi.Readers 1.3.2 dependency in the SwaggerGenerator projects (GHSA-7pxr-59rr-hqj2). Compilation/tests were not reached. This backport changes only the OneLoc task version and does not modify that dependency. Targeted YAML parsing, exact-diff/input preservation checks and git diff --check passed. Required CI and mirror-consumer compatibility validation remain outstanding.

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

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@2 with OneLocBuild@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
@missymessa
missymessa marked this pull request as ready for review October 19, 2026 21:02
Copilot AI balanced review requested due to automatic review settings October 19, 2026 21:02
@missymessa
missymessa requested a review from mmitche October 19, 2026 21:03

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

The documented Azure Repos mirror failure needs a validated compatibility solution or explicitly reviewed safe scope before merging.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 28, 2026 21:16
@missymessa
missymessa enabled auto-merge (squash) October 28, 2026 21:16

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

The unconditional v3 upgrade includes Azure Repos mirror checkouts despite a documented Octokit.NotFoundException failure, with no compatibility handling or validation of that supported path.

1 open issue

Review effort: Balanced

@missymessa
missymessa merged commit 8e2b320 into release/10.0 Oct 28, 2026
11 of 13 checks passed
@missymessa
missymessa deleted the users/mjanecke/backport-17706-release-10.0 branch October 28, 2026 22:02
joperezr added a commit to microsoft/aspire that referenced this pull request Oct 29, 2026
## 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]>
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.

3 participants