Skip to content

Update arcade sdk net10.0 - #36257

Closed
rmarinho wants to merge 3 commits into
mainfrom
update-arcade-internal
Closed

rmarinho wants to merge 3 commits into
mainfrom
update-arcade-internal

Conversation

@rmarinho

@rmarinho rmarinho commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Updates the Arcade SDK and the .NET SDK toolset dependencies to the latest 10.0 servicing flow, and refreshes the generated eng/common/** infrastructure that ships with it.

The vast majority of this diff (46 of 50 files) is generated by darc update-dependencies and is not hand-authored — eng/common/** is owned by dotnet/arcade and is replaced wholesale on every toolset update. The hand-reviewed surface is global.json, NuGet.config, eng/Version.Details.xml, eng/Versions.props, and one CI fix described at the bottom.

Dependency and SDK updates

Component Before After
Microsoft.NET.Sdk 10.0.100-rtm.25523.113 10.0.112-servicing.26418.103
Arcade toolset (Microsoft.DotNet.Build.Tasks.Feed, .Arcade.Sdk, .Build.Tasks.Installers, .Build.Tasks.Workloads, .Helix.Sdk, .SharedFramework.Sdk, .RemoteExecutor, .XUnitExtensions) 10.0.0-beta.25523.113 10.0.0-beta.26418.103
global.json → msbuild-sdks (Arcade + Helix) 10.0.0-beta.25555.106 10.0.0-beta.26418.103
global.json → tools.dotnet 10.0.108 10.0.111

Applied to eng/Version.Details.xml, eng/Versions.props, and global.json.

Note that this also resolves a pre-existing skew: global.json was pinned to Arcade beta.25555.106 while Version.Details.xml declared beta.25523.113. Both now agree on beta.26418.103.

NuGet.config picks up the darc-pub-dotnet-dotnet-d247057 package source for the new dotnet/dotnet build, plus the closing dependency-flow marker comment.

Arcade infrastructure refresh (eng/common/**, generated)

Publishing

  • Adds publishing infrastructure V4 support to post-build.yml and publish-build-assets.yml, gated on the publishingInfraVersion / publishingVersion parameters. V4 downloads and flattens pipeline artifacts via DownloadPipelineArtifact + CopyFiles instead of the V3 artifact layout.
  • Job templates switch from steps/publish-build-artifacts.yml to steps/publish-pipeline-artifacts.yml.
  • New enablePublishing parameter lets individual jobs opt in.

MAUI itself still sets publishingInfraVersion: 3 in eng/pipelines/ci-official.yml, so the V4 code paths are present but inert. Moving to V4 is a separate change.

Build agent images

  • 1es-windows-2022 → windows.vs2026.amd64
  • Build.Ubuntu.2204.Amd64 / .Open → build.azurelinux.3.amd64 / .open

GitHub App authentication (new)

  • Adds eng/common/Get-GitHubAppToken.ps1 and core-templates/steps/get-github-app-token.yml, with templates/ and templates-official/ wrappers. Used by onelocbuild.yml to mint short-lived installation tokens instead of relying on long-lived PATs.

Component governance and SBOM

  • Removes the componentGovernanceSteps parameter from job.yml (component governance is now injected by 1ES rather than by Arcade).
  • Simplifies SBOM generation in generate-sbom.yml, generate-sbom-prep.ps1, and generate-sbom-prep.sh.

Cross-build / native

  • cross/build-rootfs.sh, cross/install-debs.py, cross/toolchain.cmake: distro/package refresh and http:// → https:// for Debian/Ubuntu package repositories.
  • Adds native/NativeAotSupported.props and updates native/LocateNativeCompiler.targets, native/init-distro-rid.sh, native/install-dependencies.sh.

VMR tooling

  • Updates vmr-sync.ps1, vmr-sync.sh, templates/steps/vmr-sync.yml, and templates/vmr-build-pr.yml.

Misc

  • tools.ps1 / tools.sh, build.ps1 / build.sh, darc-init.ps1 / .sh, dotnet.ps1, internal-feed-operations.ps1, post-build/nuget-verification.ps1, post-build/redact-logs.ps1, template-guidance.md.

CI fix: unblock the internal pipeline

Separately, #37589 removed - group: Publish-Build-Assets from eng/pipelines/common/variables.yml, but that group was the only child of an enclosing conditional:

- ${{ if eq(variables['Build.DefinitionName'], 'dotnet-maui') }}:

Azure DevOps requires a conditional insertion block to contain at least one entry, so the now-empty block broke YAML compilation of the internal dotnet-maui definition:

/eng/pipelines/common/variables.yml (Line: 81, Col: 7): Expected at least one key-value pair in the mapping

The public maui-pr definition was unaffected, because the outer guard only matches the dotnet-maui / dotnet-maui-build definition names and the block was therefore never expanded there — which is why this went unnoticed on PR builds.

Since no file references the Publish-Build-Assets variable group any more, the empty conditional is removed outright rather than repopulated. This is required here so the internal pipeline can actually validate the toolset update.

Validation

  • Public maui-pr build.
  • Internal dotnet-maui build (previously could not compile the pipeline YAML at all).

Copilot AI lite review requested due to automatic review settings June 30, 2026 23:55
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36257

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36257"

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

This pull request updates the repo’s Arcade/SDK/tooling versions and modernizes build/publishing pipeline templates, including adding support for publishing infrastructure “V4” artifact handling and newer build agent images.

Changes:

  • Bumps .NET SDK and Arcade/Helix/toolset dependency versions (global.json + eng version files).
  • Updates pipeline templates to newer pool images and switches several artifact publish/download flows to pipeline artifacts.
  • Extends cross/native build infrastructure (OpenBSD handling, rootfs tooling hardening, checksum/signature verification, MSBuild -mt opt-in).

Reviewed changes

Copilot reviewed 44 out of 44 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
global.json Updates .NET SDK and MSBuild SDK (Arcade/Helix) versions.
eng/Versions.props Updates SDK/toolset package versions used across the repo.
eng/Version.Details.xml Updates dependency versions/shas for Arcade/toolset inputs.
eng/common/vmr-sync.sh Adds forwardflow fallback to darc vmr reset (but mapping resolution appears broken).
eng/common/vmr-sync.ps1 Same as above for PowerShell (but mapping resolution appears broken).
eng/common/tools.sh Adds opt-in MSBuild -mt flag support via env var.
eng/common/tools.ps1 Improves VS requirements probing; adds optional MSBuild -mt flag support; tweaks Invoke-WebRequest usage.
eng/common/templates/vmr-build-pr.yml Updates VMR resource endpoint/ref defaults.
eng/common/templates/variables/pool-providers.yml Updates example image override to windows.vs2026.
eng/common/templates/steps/vmr-sync.yml Removes VMR sha extraction/checkout steps; updates token usage for VMR sync scripts.
eng/common/templates/steps/component-governance.yml Removes shim template.
eng/common/templates/job/job.yml Updates artifact publishing to pipeline artifacts; adjusts CG behavior for public pipelines; deprecates some params.
eng/common/templates-official/variables/pool-providers.yml Updates example image to windows.vs2026.
eng/common/templates-official/steps/publish-pipeline-artifacts.yml Adds optional isProduction and changes sbomEnabled emission logic (currently risky).
eng/common/templates-official/steps/component-governance.yml Removes shim template.
eng/common/templates-official/job/job.yml Updates official outputs to pipeline artifacts; adds V4 publishing artifact output option.
eng/common/template-guidance.md Updates guidance to reflect removal of SBOM template references.
eng/common/post-build/redact-logs.ps1 Updates dotnet tool install source argument usage.
eng/common/post-build/nuget-verification.ps1 Tweaks Invoke-WebRequest usage.
eng/common/native/NativeAotSupported.props Adds shared NativeAOT support detection logic.
eng/common/native/LocateNativeCompiler.targets Adds shared compiler/linker detection hook for NativeAOT.
eng/common/native/install-dependencies.sh Updates native deps install lists across distros (incl. ninja, file).
eng/common/native/init-distro-rid.sh Adds OpenBSD RID derivation.
eng/common/internal-feed-operations.ps1 Tweaks Invoke-WebRequest usage.
eng/common/generate-sbom-prep.sh Removes SBOM prep script.
eng/common/generate-sbom-prep.ps1 Removes SBOM prep script.
eng/common/dotnet.ps1 Propagates dotnet exit code from wrapper.
eng/common/darc-init.sh Updates dotnet tool install source argument usage.
eng/common/darc-init.ps1 Updates dotnet tool install source argument usage.
eng/common/cross/toolchain.cmake Adds OpenBSD detection + updates FreeBSD triples + other toolchain fixes.
eng/common/cross/install-debs.py Adds checksum verification, signature verification (optional), and safer extraction/subprocess invocation.
eng/common/cross/build-rootfs.sh Updates rootfs distro/arch handling, switches many URLs to https, adds OpenBSD support, adds optional GPG verification flow.
eng/common/core-templates/steps/source-index-stage1-publish.yml Updates dotnet tool install source argument usage.
eng/common/core-templates/steps/source-build.yml Marks log artifacts as non-production.
eng/common/core-templates/steps/publish-logs.yml Switches to pipeline artifacts, adjusts artifact naming, and marks as non-production.
eng/common/core-templates/steps/generate-sbom.yml Deprecates generate-sbom include (warning only).
eng/common/core-templates/steps/component-governance.yml Removes component governance step template.
eng/common/core-templates/post-build/setup-maestro-vars.yml Switches release config download to pipeline artifacts.
eng/common/core-templates/post-build/post-build.yml Adds publishing infra v4 option and artifact flattening, updates agent images (but currently hard-codes PublishingInfraVersion=3 for darc).
eng/common/core-templates/jobs/jobs.yml Adds publishingVersion parameter pass-through.
eng/common/core-templates/job/source-build.yml Updates Linux pool images to Azure Linux 3.
eng/common/core-templates/job/publish-build-assets.yml Updates agent images and artifact publishing metadata.
eng/common/core-templates/job/onelocbuild.yml Updates Windows pool images.
eng/common/core-templates/job/job.yml Removes component governance step plumbing; adds enablePublishing param.

arguments: >
-BuildId $(BARBuildId)
-PublishingInfraVersion ${{ parameters.publishingInfraVersion }}
-PublishingInfraVersion 3
Comment thread eng/common/vmr-sync.sh
Comment on lines +189 to +194
version_details_path=$(cd "$scriptroot/.."; pwd -P)/Version.Details.xml
repo_name=$(grep -m 1 '<Source ' "$version_details_path" | sed -n 's/.*Mapping="\([^"]*\)".*/\1/p')
if [[ -z "$repo_name" ]]; then
fail "Failed to resolve repo mapping from $version_details_path"
exit 1
fi
Comment thread eng/common/vmr-sync.ps1
Comment on lines +112 to +118
$versionDetailsPath = Resolve-Path (Join-Path $PSScriptRoot '..\Version.Details.xml') | Select-Object -ExpandProperty Path
[xml]$versionDetails = Get-Content -Path $versionDetailsPath
$repoName = $versionDetails.SelectSingleNode('//Source').Mapping
if (-not $repoName) {
Fail "Failed to resolve repo mapping from $versionDetailsPath"
exit 1
}
Comment on lines +27 to +30
${{ if ne(parameters.args.sbomEnabled, '') }}:
sbomEnabled: ${{ parameters.args.sbomEnabled }}
${{ if ne(parameters.args.isProduction, '') }}:
isProduction: ${{ parameters.args.isProduction }}
# Conflicts:
#	eng/common/core-templates/steps/publish-logs.yml
Copilot AI review requested due to automatic review settings August 20, 2026 16:57
@rmarinho
rmarinho force-pushed the update-arcade-internal branch from 950c7e7 to 7186f3b Compare August 20, 2026 16:57
PR #37589 removed `- group: Publish-Build-Assets`, which was the only
child of the `${{ if eq(variables['Build.DefinitionName'], 'dotnet-maui') }}`
conditional, but left the now-empty conditional header behind.

Azure DevOps requires a conditional insertion block to contain at least
one entry, so the internal `dotnet-maui` pipeline failed to compile with:

    /eng/pipelines/common/variables.yml (Line: 81, Col: 7):
    Expected at least one key-value pair in the mapping

The public `maui-pr` definition was unaffected because the outer guard
only matches the `dotnet-maui` / `dotnet-maui-build` definition names, so
the block was never expanded there.

No other file references the `Publish-Build-Assets` variable group, so the
conditional is removed entirely rather than repopulated.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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

Copilot reviewed 50 out of 50 changed files in this pull request and generated no new comments.

Suppressed comments (3)

eng/common/vmr-sync.sh:194

  • The script tries to resolve the repo mapping by grepping a <Source ... Mapping="..."> element from eng/Version.Details.xml, but that file contains no node in this repo (grep for '<Source' returns no matches). As a result, vmr-sync.sh will always fail before running darc. Also, defining repo_root here avoids the later darc reset fallback referencing an unset variable.
    eng/common/vmr-sync.ps1:116
  • This script resolves $repoName from a '//Source' node in eng/Version.Details.xml, but that file contains no node in this repo, so $repoName will be $null and the script will exit. Additionally, the failure fallback later uses $repoRoot which is never defined (and StrictMode is enabled), so the reset path would also error.
    eng/common/core-templates/post-build/post-build.yml:373
  • The template introduces publishingInfraVersion=4 support (including conditional artifact download/flatten), but the darc publish step hardcodes -PublishingInfraVersion 3. This makes the parameter ineffective and prevents V4 from being used end-to-end.
            scriptPath: $(System.DefaultWorkingDirectory)/eng/common/post-build/publish-using-darc.ps1
            arguments: >
              -BuildId $(BARBuildId)
              -PublishingInfraVersion 3
              -AzdoToken '$(System.AccessToken)'

Copilot AI review requested due to automatic review settings August 20, 2026 17:08

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

Copilot reviewed 50 out of 50 changed files in this pull request and generated no new comments.

Suppressed comments (4)

eng/common/vmr-sync.sh:194

  • vmr-sync.sh now hard-fails if eng/Version.Details.xml doesn’t contain a <Source … Mapping="…"> entry, but this repo’s Version.Details.xml has no element at all. This makes the script unusable even though the repo mapping is only needed for the fallback reset path.
    eng/common/core-templates/post-build/post-build.yml:373
  • post-build.yml introduces a publishingInfraVersion parameter (including value 4), but the Darc publish step hard-codes -PublishingInfraVersion 3. This makes the parameter ineffective and can lead to confusing mismatches if a pipeline opts into publishingInfraVersion: 4 elsewhere.
            arguments: >
              -BuildId $(BARBuildId)
              -PublishingInfraVersion 3
              -AzdoToken '$(System.AccessToken)'

eng/common/vmr-sync.sh:216

  • repo_root is referenced when constructing the --additional-remotes argument, but repo_root is never defined in this script (only appears in this one location). This will produce an invalid additional-remote value when the fallback reset path runs.
    eng/common/vmr-sync.ps1:118
  • vmr-sync.ps1 assumes eng/Version.Details.xml contains a node and fails if it doesn’t. In this repo there is no element, and the script also later references $repoRoot without defining it, so the fallback reset path is currently broken.

kubaflo pushed a commit that referenced this pull request Aug 20, 2026
)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Problem

The internal `dotnet-maui` official build currently fails to compile the
pipeline YAML, before any stage runs:

```
/eng/pipelines/common/variables.yml (Line: 81, Col: 7): Expected at least one key-value pair in the mapping
```

### Cause

#37589 removed `- group: Publish-Build-Assets`, but that group was the
only child of the conditional that enclosed it, leaving an empty block
behind:

```yaml
    - group: AzureDevOps-Artifact-Feeds-Pats
    - ${{ if eq(variables['Build.DefinitionName'], 'dotnet-maui') }}:   # <- nothing under it
```

Azure DevOps requires a conditional insertion block to contain at least
one entry, so template expansion fails outright.

### Why PR validation stayed green

The empty block is nested inside an outer guard:

```yaml
- ${{ if or(eq(variables['Build.DefinitionName'], 'dotnet-maui'), eq(variables['Build.DefinitionName'], 'dotnet-maui-build')) }}:
  - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
```

For the public `maui-pr` definition that outer condition is false, so
Azure DevOps short-circuits and never expands the inner block. The
breakage is therefore invisible to PR CI and only manifests on the
internal official build.

### Fix

Remove the empty conditional. No file in the repository references the
`Publish-Build-Assets` variable group any more, so it is deleted
outright rather than repopulated.

### Validation

- `eng/pipelines/common/variables.yml` parses as valid YAML.
- Swept all 39 YAML files under `eng/pipelines/` for conditional blocks
with no body — this was the only one.
- `grep` for `Publish-Build-Assets` across `eng/` and `.github/` returns
no remaining references.

This blocks the internal build entirely, so it is worth merging ahead of
larger infra work such as #36257 (which carries the same one-line fix,
but cannot be validated on the internal pipeline until this is on
`main`).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Aug 20, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 7 findings

See inline comments for details.

Comment thread eng/common/vmr-sync.sh
# Synchronize the VMR

version_details_path=$(cd "$scriptroot/.."; pwd -P)/Version.Details.xml
repo_name=$(grep -m 1 '<Source ' "$version_details_path" | sed -n 's/.*Mapping="\([^"]*\)".*/\1/p')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[major] Logic and Correctness — This guard resolves repo_name from a <Source Mapping="..."> element, but MAUI's eng/Version.Details.xml has zero <Source elements (grep -c '<Source' eng/Version.Details.xml → 0). Because the lookup was placed before the darc vmr forwardflow invocation (line 198), the [[ -z "$repo_name" ]] branch on line 191 aborts the script with exit 1 on this repo even in the case where forwardflow itself would have succeeded — the guard now blocks a previously-passing path. The value is only actually needed in the failure fallback at lines 212-216, so resolving it lazily inside the else branch would preserve the existing success path. Note this is Arcade-generated eng/common/** content that flows from dotnet/dotnet, so the fix belongs upstream; recording it here so the behavior is not assumed safe for MAUI.

Comment thread eng/common/vmr-sync.sh
"$repo_name:HEAD" \
--vmr "$vmr_dir" \
--tmp "$tmp_dir" \
--additional-remotes "$repo_name:$repo_root"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[major] Logic and Correctness — $repo_root is never assigned anywhere in this script (only occurrence is this line; the script defines scriptroot at lines 40/46 instead). With an unset variable this expands to --additional-remotes "<mapping>:", i.e. an empty remote URI passed to darc vmr reset, so the fallback reset path cannot work as intended. Likely intended $(cd "$scriptroot/.."; pwd -P) or an equivalent repo-root computation. Upstream Arcade-generated file — reporting for reconciliation, not for in-repo edit.

Comment thread eng/common/vmr-sync.ps1
# Synchronize the VMR
$versionDetailsPath = Resolve-Path (Join-Path $PSScriptRoot '..\Version.Details.xml') | Select-Object -ExpandProperty Path
[xml]$versionDetails = Get-Content -Path $versionDetailsPath
$repoName = $versionDetails.SelectSingleNode('//Source').Mapping

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[major] Null Safety — $versionDetails.SelectSingleNode('//Source') returns $null for MAUI (eng/Version.Details.xml contains no <Source> element). This script runs under Set-StrictMode -Version Latest (line 102), so dereferencing .Mapping on $null raises a terminating property-not-found error before the friendly if (-not $repoName) message on lines 115-118 can ever run. Additionally, like the shell variant, this lookup is placed ahead of the darc vmr forwardflow call (line 135), so it aborts the success path even though $repoName is only consumed in the failure fallback (lines 146-149). Arcade-generated file; fix belongs upstream.

Comment thread eng/common/vmr-sync.ps1
"${repoName}:HEAD",
"--vmr", $vmrDir,
"--tmp", $tmpDir,
"--additional-remotes", "${repoName}:${repoRoot}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[major] Logic and Correctness — $repoRoot is undefined in this script (this is its only occurrence; the file uses $PSScriptRoot elsewhere, e.g. line 112). Under Set-StrictMode -Version Latest referencing an undefined variable is a terminating error, so the darc vmr reset fallback throws instead of running; without StrictMode it would silently pass --additional-remotes "<mapping>:". Mirrors the same defect in vmr-sync.sh:216. Arcade-generated file; fix belongs upstream.

./eng/common/vmr-sync.sh \
--vmr ${{ parameters.vmrPath }} \
--tmp $(Agent.TempDirectory) \
--azdev-pat '$(AzdoToken)' \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[moderate] Build & MSBuild — The credential source changes from $(dn-bot-all-orgs-code-r) (supplied by the AzureDevOps-Artifact-Feeds-Pats variable group MAUI already imports in eng/pipelines/ci-official.yml:42) to $(AzdoToken), which no MAUI pipeline defines (grep -rn AzdoToken eng/pipelines/ → no matches). Same substitution on line 73 for the PowerShell branch. This is currently inert because no MAUI pipeline references vmr-sync.yml or vmr-build-pr.yml, but any future opt-in to VMR sync must define AzdoToken or the PAT argument resolves empty. Arcade-generated template.

itemPattern: '*/assets/**'
targetPath: '$(Build.ArtifactStagingDirectory)/PipelineArtifactsDownload'
- task: CopyFiles@2
displayName: Flatten assets to BlobArtifacts

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[moderate] Logic and Correctness — The new V4 blob path downloads */assets/** and then copies with flattenFolders: true into BlobArtifacts. Blob assets are published with their relative directory structure meaningful (e.g. per-version/per-rid subpaths); flattening collapses that layout and silently overwrites same-named files from different subdirectories, unlike the V3 DownloadBuildArtifacts@0 path it replaces, which preserves structure. The package variants at lines 162 and 219 flatten *.nupkg where collisions are far less likely, but the assets case is not equivalent. Inert for MAUI today because eng/pipelines/ci-official.yml:126 pins publishingInfraVersion: 3, so this is latent risk that only materializes on a future V4 opt-in. Arcade-generated file.

default: 3
values:
- 3
- 4

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 AI-Generated Review (multi-model)

[minor] Build & MSBuild — publishingInfraVersion now accepts 4, but MAUI's only consumer (eng/pipelines/ci-official.yml:126) still passes 3, so every V4-gated branch added in this file is unreachable in MAUI's pipelines. That is the safe state for this dependency roll (no publishing behavior change ships with it), but it also means CI on this PR exercises none of the new V4 code paths — the V4 blocks are effectively untested here and should be validated separately before any repo-side bump to 4.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Review Summary

@rmarinho — new AI review results are available based on commit 39ef93f.

Gate No Tests Confidence Medium Platform Build Infrastructure For All Platforms


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ SKIPPED

No tests were detected in this PR.

Recommendation: Add tests to verify the fix using the write-tests-agent.


📋 Pre-Flight — Context & Validation

Issue: None linked
PR: #36257 - Update arcade sdk net10.0
Base / Head: main / update-arcade-internal (39ef93fc3522644236f2ec0ef1245918b9cccc91)
Platforms Affected: Build infrastructure for all platforms; Android has no platform-specific code change
Files Changed: 49 infrastructure/dependency files in the local materialized diff, 0 test files

Key Findings

  • The PR rolls the .NET SDK from 10.0.100-rtm.25523.113 to 10.0.112-servicing.26418.103, aligns Arcade/Helix packages on 10.0.0-beta.26418.103, updates global.json tooling, and refreshes generated eng/common/** infrastructure.
  • The remote PR reports 50 files. The local review commit is rebased onto a newer origin/main, where the dangling conditional removal from eng/pipelines/common/variables.yml already landed as #37686, leaving 49 files in origin/main...HEAD.
  • The local diff adds four files and deletes three files. The try-fix baseline contract treats any populated NewFiles array as unsafe to restore and requires a blocked result before editing.
  • Prior inline review identified unresolved risks in generated infrastructure: vmr-sync.sh and vmr-sync.ps1 expect a nonexistent <Source Mapping="..."> entry in MAUI's eng/Version.Details.xml; both fallback paths also reference an undefined repo root; post-build.yml hard-codes publishing infrastructure version 3 despite adding V4 support; and optional publish task properties may be emitted as null.
  • The latest automated reviews generated no new comments but explicitly suppressed repeats of the VMR-sync and publishing-version findings, so those concerns remain relevant rather than resolved.
  • Gate result is SKIPPED because no tests were detected. The gate must not be rerun, and there is no detected primary test or listed mandatory regression test to execute.

Code Review Summary

Verdict: SKIPPED
Confidence: N/A
Errors: N/A | Warnings: N/A | Suggestions: N/A

The dedicated expert pass is reserved for STEP 5b by the execution contract. No separate expert-review agent was launched during pre-flight.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #36257 Roll forward SDK/Arcade dependencies and generated Arcade infrastructure ⚠️ Gate skipped 49 local diff files No tests detected; added files make script-only try-fix restoration potentially unsafe

🔬 Code Review — Deep Analysis

Expert PR Evaluation

Verdict: NEEDS_DISCUSSION
Confidence: Medium

Independent Assessment

The submitted PR updates the .NET SDK and Arcade dependency set and replaces the generated eng/common/** infrastructure with the matching Arcade snapshot. The repository-owned dependency declarations and package source are internally aligned; the material review risk is the behavior of newly flowed generated infrastructure and the breadth of the SDK, Arcade, and build-image update.

Findings

The expert reviewer wrote seven inline findings to ../inline-findings.json:

  • Major: eng/common/vmr-sync.sh:190 resolves a VMR source mapping before the primary darc vmr forwardflow operation. MAUI has no <Source Mapping="...">, so the script exits before a primary-path operation that could otherwise succeed.
  • Major: eng/common/vmr-sync.sh:216 passes an undefined repo_root to the reset fallback.
  • Major: eng/common/vmr-sync.ps1:114 dereferences a missing <Source> node under strict mode before reaching its intended diagnostic, and it does so before the primary forward-flow operation.
  • Major: eng/common/vmr-sync.ps1:149 passes an undefined $repoRoot to the reset fallback under strict mode.
  • Moderate: eng/common/templates/steps/vmr-sync.yml:51 and its PowerShell counterpart use $(AzdoToken), which MAUI does not define. This remains latent because MAUI pipelines do not currently invoke the VMR-sync templates.
  • Moderate: eng/common/core-templates/post-build/post-build.yml:294 flattens downloaded V4 blob assets, risking path loss and filename collisions. This remains latent while MAUI pins publishing infrastructure version 3.
  • Minor: V4 publishing is accepted by the generated template but is not exercised by MAUI's current V3 pipeline configuration.

All affected implementation files are generated from Arcade and replaced by future dependency flows. The reviewer therefore recommends addressing the defects upstream rather than hand-editing generated MAUI copies.

Prior Review Reconciliation

The VMR mapping and undefined-root concerns are confirmed. The previously raised publishing-version propagation concern is not a current MAUI defect because eng/pipelines/ci-official.yml deliberately pins version 3, making V4 paths unreachable. The alleged null optional publish-task properties were not reproduced. Credential-group changes and the ReleaseConfigs producer/consumer path were traced and found consistent.

External Output Contract

Consumer token/pattern Producer location Producer emission condition Consumer assumption Ordinary negative case Downstream effect
<Source Mapping="..."> / //Source eng/Version.Details.xml MAUI emits no <Source> element A mapping exists before any forward-flow attempt A mapping-less repository where darc vmr forwardflow could succeed Shell exits early; PowerShell throws under strict mode
ReleaseConfigs artifact publish-build-assets.yml Published as a pipeline artifact at ReleaseConfigs Consumer downloads and reads the same path Artifact produced through the new pipeline-artifact path Contract remains aligned

Blast Radius and Failure Modes

The dependency and build-image roll affects shared build infrastructure across platforms. The confirmed VMR defects have no current CI-path impact because MAUI does not invoke the VMR-sync templates. V4 publishing defects are similarly latent while the repository remains pinned to V3. The broad SDK, Arcade, and image changes still require CI evidence across supported platforms; code inspection cannot substitute for that validation.

CI and Test Evidence

The trusted Gate was skipped because the PR contains no detected tests. No gate rerun was performed. With no relevant test evidence supplied, merge-readiness remains uncertain even though the currently active MAUI pipeline paths reviewed here are internally consistent.

Candidate Refinement Guidance

No repository-local source patch is recommended: every actionable code finding is in generated eng/common/** content and should be fixed in its Arcade source of truth. A pr-plus-reviewer candidate should therefore preserve the submitted code unchanged and record the upstream follow-up and CI requirement rather than introduce a transient generated-file edit.


🛠️ Try-Fix — Analysis & Comparison

Try-Fix Aggregate

Candidate 1 — Lazy VMR Mapping

Model: claude-opus-5
Artifacts: CustomAgentLogsTmp/PRState/36257/PRAgent/try-fix/attempt-1
Result: ⚠️ BLOCKED

Approach: Define the repository root from each script's own location and defer the <Source Mapping="..."> lookup until the failed-forwardflow fallback that actually consumes it. This would let mapping-less repositories such as MAUI use the primary darc vmr forwardflow path while keeping a well-formed --additional-remotes value for repositories that enter the reset fallback.

Difference from the PR: The generated PR implementation treats VMR mapping as a prerequisite for the entire script and then consumes an undefined repository-root variable. Candidate 1 instead treats mapping as a fallback-only prerequisite, eliminating MAUI's guaranteed pre-flight abort and defining the fallback's other required input at its source.

Files changed / diff: None; the approach was designed but not applied.

Test result: Not run. The completed gate detected no tests, no mandatory regression test was supplied, and the contract prohibited inventing an ad-hoc test or running a full suite. No Pass is claimed.

Self-review: 0 findings ([]); the diff was empty.

Failure analysis: EstablishBrokenBaseline.ps1 rejected 41 pre-existing user/harness-owned tracked changes before creating .github/.baseline-state.json, leaving an empty modification allow-list. Independently, the PR adds four production files, which would make NewFiles non-empty and requires a blocked result under the try-fix restoration contract. No tracked files were edited, and the exact restore command completed through the verified no-state path.

Additional insight: The affected eng/common/** files are Arcade-generated, so a durable correction belongs upstream in dotnet/arcade; a MAUI-local edit would be overwritten by a later dependency flow.

Candidate 2 — Restore Publishing-Version Propagation

Model: gpt-5.6-sol
Artifacts: CustomAgentLogsTmp/PRState/36257/PRAgent/try-fix/attempt-2
Result: ⚠️ BLOCKED

Approach: Replace the hard-coded -PublishingInfraVersion 3 in eng/common/core-templates/post-build/post-build.yml with ${{ parameters.publishingInfraVersion }} so the caller-selected V3/V4 value controls both artifact handling and publish-using-darc.ps1.

Difference from Candidate 1: Candidate 1 addressed VMR fallback scoping and path derivation. Candidate 2 instead identifies a severed publishing parameter handoff: template expansion can select V4 artifact downloads while the downstream Darc invocation is forced back to V3. Direct propagation keeps that value consistent end-to-end without touching VMR logic.

Files changed / diff: None; the approach was designed but not applied.

Test result: Not run. The completed gate detected no tests, no mandatory regression test was supplied, and no ad-hoc test or full suite was run. No Pass is claimed.

Self-review: 0 findings ([]); inline review covered the empty diff and no reviewer agent was launched.

Failure analysis: EstablishBrokenBaseline.ps1 again rejected the 41 pre-existing user/harness-owned tracked changes before creating .github/.baseline-state.json. With no RevertedFiles allow-list, the target template was read-only. No cleanup workaround or tracked edit was attempted, and the exact restore command completed through the verified no-state path.

Aggregate Outcome

Two distinct candidates were designed, but neither could be safely materialized or empirically tested. Both are Blocked, not Pass or Fail. The worktree remains restored with no attempt-created tracked changes, and STEP 5b can evaluate the recorded mechanisms without treating either as validated.


📝 PR Finalize — Recommended Title & Description

Assessment: ✏️ Recommend updating — the current title is vague and the description's “46 of 50 files” plus separate CI-fix claim no longer match the submitted 49-file diff.

Recommended title

[Build] Arcade: Update the .NET 10 servicing SDK and generated infrastructure

Recommended description

### Description of Change

Updates the Arcade SDK and .NET SDK toolset dependencies to the latest `10.0` servicing flow, and refreshes the generated `eng/common/**` infrastructure that ships with it.

Most of this diff (45 of 49 files) is generated by `darc update-dependencies` and is not hand-authored. `eng/common/**` is owned by [dotnet/arcade](https://github.com/dotnet/arcade) and is replaced wholesale on every toolset update. The repository-owned dependency surface is `global.json`, `NuGet.config`, `eng/Version.Details.xml`, and `eng/Versions.props`.

#### Dependency and SDK updates

| Component | Before | After |
| --- | --- | --- |
| `Microsoft.NET.Sdk` | `10.0.100-rtm.25523.113` | `10.0.112-servicing.26418.103` |
| Arcade toolset (`Microsoft.DotNet.Build.Tasks.Feed`, `.Arcade.Sdk`, `.Build.Tasks.Installers`, `.Build.Tasks.Workloads`, `.Helix.Sdk`, `.SharedFramework.Sdk`, `.RemoteExecutor`, `.XUnitExtensions`) | `10.0.0-beta.25523.113` | `10.0.0-beta.26418.103` |
| `global.json` → `msbuild-sdks` (Arcade + Helix) | `10.0.0-beta.25555.106` | `10.0.0-beta.26418.103` |
| `global.json` → `tools.dotnet` | `10.0.108` | `10.0.111` |

The update is applied to `eng/Version.Details.xml`, `eng/Versions.props`, and `global.json`. It also resolves the previous skew where `global.json` used Arcade `beta.25555.106` while `Version.Details.xml` declared `beta.25523.113`; both now use `beta.26418.103`.

`NuGet.config` adds the `darc-pub-dotnet-dotnet-d247057` package source for the new `dotnet/dotnet` build and its closing dependency-flow marker.

#### Generated Arcade infrastructure (`eng/common/**`)

**Publishing**
- Adds publishing infrastructure V4 support to `post-build.yml` and `publish-build-assets.yml`, gated by the `publishingInfraVersion` / `publishingVersion` parameters.
- V4 downloads and flattens pipeline artifacts with `DownloadPipelineArtifact` and `CopyFiles` instead of using the V3 artifact layout.
- Job templates move from `steps/publish-build-artifacts.yml` to `steps/publish-pipeline-artifacts.yml`.
- Adds an `enablePublishing` parameter so individual jobs can opt in.

MAUI continues to set `publishingInfraVersion: 3` in `eng/pipelines/ci-official.yml`, so the V4 paths are present but inactive. Moving MAUI to V4 remains a separate change.

**Build agent images**
- Updates `1es-windows-2022` to `windows.vs2026.amd64`.
- Updates `Build.Ubuntu.2204.Amd64` / `.Open` to `build.azurelinux.3.amd64` / `.open`.

**GitHub App authentication**
- Adds `eng/common/Get-GitHubAppToken.ps1` and `core-templates/steps/get-github-app-token.yml`, with `templates/` and `templates-official/` wrappers.
- Updates `onelocbuild.yml` to mint short-lived installation tokens instead of relying on long-lived PATs.

**Component governance and SBOM**
- Removes the `componentGovernanceSteps` parameter from `job.yml`; component governance is now injected by 1ES.
- Simplifies SBOM generation in `generate-sbom.yml` and removes the former `generate-sbom-prep.ps1` / `.sh` scripts.

**Cross-build and native tooling**
- Refreshes distro and package handling in `cross/build-rootfs.sh`, `cross/install-debs.py`, and `cross/toolchain.cmake`, including HTTPS Debian/Ubuntu repositories.
- Adds `native/NativeAotSupported.props` and `native/LocateNativeCompiler.targets`, and updates native distro/dependency initialization.

**VMR and common tooling**
- Updates `vmr-sync.ps1`, `vmr-sync.sh`, `templates/steps/vmr-sync.yml`, and `templates/vmr-build-pr.yml`.
- Refreshes `tools.ps1` / `tools.sh`, `build.ps1` / `build.sh`, `darc-init.ps1` / `.sh`, `dotnet.ps1`, internal feed operations, NuGet verification, log redaction, source-build templates, and template guidance.

### Issues Fixed

No issue is linked.

🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winning Candidate

Winner: pr

The raw PR is the strongest available candidate because it is the only materialized dependency-flow update and its active MAUI pipeline contracts are internally consistent. pr-plus-reviewer is intentionally source-identical: the expert findings affect generated Arcade files, so a local edit would be transient rather than a durable fix. Neither STEP 5a alternative was applied or validated.

This is not an approval recommendation. The trusted Gate was skipped because no tests were detected, and the expert verdict is NEEDS_DISCUSSION: the SDK, Arcade, and build-image roll has no supplied CI evidence, while the flowed VMR scripts contain confirmed defects. Before merge, the generated defects should be corrected in Arcade and flowed back in a subsequent dependency build, or the maintainers should explicitly accept the unused-path risk after confirming all-platform CI.

Candidate Comparison

Rank Candidate Materialized Regression evidence Assessment
1 pr Yes Gate skipped; no tests detected Preserves generated-source ownership and contains the complete dependency roll. Active MAUI V3 publishing paths are consistent, but merge confidence is limited by absent test evidence and confirmed defects in currently unused generated VMR paths.
2 pr-plus-reviewer Yes, source-identical to pr No targeted test required or run; structural diff check passed The reviewer supplied no durable repository-local change. It therefore offers no behavioral advantage over pr and loses the tie to the simpler submitted candidate.
3 try-fix-1 No Blocked before editing; no test run Its lazy VMR mapping and script-derived repository-root design directly addresses the confirmed VMR failures, but it has an empty diff, was not executed, and would patch generated output rather than Arcade's source of truth.
4 try-fix-2 No Blocked before editing; no test run Its publishing-version propagation proposal was not materialized, and expert tracing found the hard-coded V3 behavior benign for MAUI because the repository deliberately pins publishing infrastructure version 3.

No candidate passed or failed a regression test; the two try-fix candidates were blocked and therefore cannot outrank the materialized PR.

Expert Findings Affecting the Recommendation

  • eng/common/vmr-sync.sh:190 and eng/common/vmr-sync.ps1:114 require a <Source Mapping> before attempting primary forward flow, but MAUI has no such element.
  • eng/common/vmr-sync.sh:216 and eng/common/vmr-sync.ps1:149 use undefined repository-root variables in the reset fallback.
  • eng/common/templates/steps/vmr-sync.yml:51,73 expects an undefined AzdoToken; the template is not currently consumed by MAUI pipelines.
  • eng/common/core-templates/post-build/post-build.yml:294 flattens V4 blob assets, with possible path loss or filename collisions; MAUI remains pinned to V3.

The first two mechanisms are concrete defects, but all are currently outside active MAUI CI paths and all affected implementation files are generated. A durable correction must be made upstream and re-flowed rather than hand-edited in this repository.


📱 UI Tests — Button,Label,Layout

Detected UI test categories: Button,Label,Layout

✅ Deep UI tests — 360 passed, 0 failed, 7 skipped across 3 categories on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Button 71/73 (2 skipped) ✓ —
Label 97/99 (2 skipped) ✓ —
Layout 192/195 (3 skipped) ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@MauiBot MauiBot added the s/agent-changes-requested AI agent recommends changes - found a better alternative or issues label Aug 21, 2026
@MauiBot MauiBot added s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) and removed s/agent-review-in-progress AI review is currently running for this PR labels Aug 21, 2026
@rolfbjarne

Copy link
Copy Markdown
Member

This is outdated after #38318.

@rolfbjarne rolfbjarne closed this Sep 8, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants