Skip to content

[CI] OneLoc: Resolve MirrorBranch during template expansion - #38650

Merged
kubaflo merged 2 commits into
dotnet:mainfrom
missymessa:mjanecke/fix-oneloc-mirror-branch
Sep 19, 2026
Merged

kubaflo merged 2 commits into
dotnet:mainfrom
missymessa:mjanecke/fix-oneloc-mirror-branch

Conversation

@missymessa

@missymessa missymessa commented Sep 18, 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!

Description of Change

Fixes OneLoc target-branch evaluation in the official pipeline by using an Azure Pipelines compile-time template expression for MirrorBranch.

In build 3079785, localization and GitHub App authentication succeeded, but the runtime expression was passed literally to OneLoc as part of /prtgtbranch. GitHub then returned 404 Branch not found for that invalid branch name.

The compile-time expression resolves refs/heads/main to main before the value is inserted into the nested OneLoc template.

Validation

Azure DevOps dry-run previews of the official dotnet-maui pipeline definition parsed the complete template graph without creating a build:

  • Baseline from main: mirrorBranch: $[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]
  • PR YAML against refs/heads/main: mirrorBranch: main

Persistent regression coverage now verifies that ci-official.yml passes the compile-time expression to the nested OneLoc template:

  • Added eng/pipelines/ci-official.Tests.ps1 with an exact MirrorBranch assignment assertion.
  • Wired the test into .github/workflows/powershell-script-tests.yml for changes to either the official pipeline or its test.
  • Pester 5.9.0: 9 pipeline tests passed, including the new regression test and the existing official-release pipeline tests.
  • git diff --check passed.

The MAUI artifact dogfood command does not exercise this change because it affects pipeline template expansion rather than product binaries. A full PR validation build could not be self-authorized: Azure Pipelines rejected the /azp run request for insufficient repository privileges.

Existing PR Comparison

Searched open dotnet/maui pull requests for OneLoc, MirrorBranch, branch, and localization fixes after independently determining the solution. No equivalent open PR was found.

Issues Fixed

Fixes #38663

Use a compile-time template expression so the source branch is resolved before it is passed to the OneLoc template.

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

Copilot-Session: ca981fa5-8dc6-4a81-91a0-d9205e10180f
@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 -- 38650

Or

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 18, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@missymessa! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @missymessa! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@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 Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review couldn't start: the pipeline branch improved-reviewer doesn't exist. Use --branch improved-reviewer (the current reviewer branch), or omit --branch to run on main. Valid platforms: android, ios, catalyst, windows (e.g. /review android --branch improved-reviewer).

@github-actions github-actions Bot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 18, 2026
@missymessa

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 38650 in repo dotnet/maui

@missymessa
missymessa marked this pull request as ready for review September 18, 2026 16:05
Copilot AI lite review requested due to automatic review settings September 18, 2026 16:05
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

🟢 Approval recommended

The change is minimal, matches the stated root cause, and aligns with existing compile-time variable usage patterns already present in the same pipeline file.

Pull request overview

This PR fixes MAUI’s official pipeline OneLoc configuration so the mirror/target branch is evaluated at Azure Pipelines compile time (instead of being passed through as a literal runtime expression), preventing invalid /prtgtbranch values and the resulting “Branch not found” failures during localization.

Changes:

  • Switch MirrorBranch from a runtime $[ ... ] expression to a compile-time ${{ ... }} template expression so it resolves (e.g., refs/heads/main → main) before being passed into the nested OneLoc template.
File summaries
File Description
eng/pipelines/ci-official.yml Updates OneLoc MirrorBranch to use compile-time template evaluation to avoid passing a literal runtime expression downstream.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

@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 Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review couldn't start: the pipeline branch improved-reviewer doesn't exist. Use --branch improved-reviewer (the current reviewer branch), or omit --branch to run on main. Valid platforms: android, ios, catalyst, windows (e.g. /review android --branch improved-reviewer).

@github-actions github-actions Bot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 18, 2026
@kubaflo

kubaflo commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@kubaflo

This comment has been minimized.

Copilot AI review requested due to automatic review settings September 18, 2026 18:30
@missymessa missymessa changed the title Fix OneLoc mirror branch evaluation [CI] OneLoc: Resolve MirrorBranch during template expansion Sep 18, 2026
@missymessa

Copy link
Copy Markdown
Member Author

Addressed the requested persistent regression coverage in 4c473f7:

  • Added eng/pipelines/ci-official.Tests.ps1, which requires the OneLoc MirrorBranch assignment to use the compile-time ${{ replace(...) }} expression.
  • Wired the test into the existing PowerShell test workflow whenever ci-official.yml or its test changes.
  • Ran the new test together with the existing official-release pipeline tests using Pester 5.9.0: 9 passed, 0 failed.

This keeps the one-line implementation and adds a persistent guard at the nested-template evaluation boundary identified by the review.

@missymessa

Copy link
Copy Markdown
Member Author

/review android

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.

🟢 Approval recommended

The change is narrowly scoped to CI template evaluation and is backed by a targeted regression test that’s wired into existing script-test CI.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@kubaflo

This comment has been minimized.

2 similar comments
@kubaflo

kubaflo commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

/review -b improved-reviewer -p android

@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 Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review couldn't start: the pipeline branch improved-reviewer doesn't exist. Use --branch improved-reviewer (the current reviewer branch), or omit --branch to run on main. Valid platforms: android, ios, catalyst, windows (e.g. /review android --branch improved-reviewer).

@github-actions github-actions Bot added s/agent-review-in-progress AI review is currently running for this PR and removed s/agent-review-in-progress AI review is currently running for this PR labels Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review couldn't start: the pipeline branch improved-reviewer doesn't exist. Use --branch improved-reviewer (the current reviewer branch), or omit --branch to run on main. Valid platforms: android, ios, catalyst, windows (e.g. /review android --branch improved-reviewer).

@github-actions github-actions Bot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 18, 2026
@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 Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15383389 is running for android.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@kubaflo

kubaflo commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@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

@missymessa — new AI review results are available based on commit 4c473f7.

Gate No Tests Confidence Low Platform Android


🗂️ 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

PR #38650 Pre-Flight

Context

  • PR: [CI] OneLoc: Resolve MirrorBranch during template expansion
  • Issue: #38663, OneLoc official pipeline passes target branch expression literally
  • Base / materialized review head: 76a01cd019c169aa22fdb6c688561f472ec084a2 / 54528a0ddabc9e0dadcea02cabb342ba83c5496a
  • Requested test platform: Android. The defect is Azure Pipelines template expansion and has no Android-specific runtime path.
  • Gate: Skipped before STEP 5a because no tests were detected. Do not rerun the gate and do not modify gate/content.md.

Problem

The official pipeline supplies this runtime expression to the nested Arcade OneLoc template:

MirrorBranch: $[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]

That value crosses a template boundary without being evaluated and reaches OneLoc literally. In official build 3079785, OneLoc consequently requested:

refs/heads/$[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]

GitHub returned 404 Branch not found. For refs/heads/main, the nested template must receive main.

Existing PR Approach

The PR changes MirrorBranch to an Azure Pipelines compile-time template expression:

MirrorBranch: ${{ replace(variables['Build.SourceBranch'], 'refs/heads/', '') }}

It also adds a Pester assertion for the exact assignment and wires that test and its pipeline file into the PowerShell workflow.

Changed files:

  • .github/workflows/powershell-script-tests.yml (+3)
  • eng/pipelines/ci-official.Tests.ps1 (+18, new file)
  • eng/pipelines/ci-official.yml (+1/-1)

An alternative must use a different mechanism/root-cause strategy rather than relocating the same expression-form substitution.

Bounded Validation

Do not run product, device, UI, integration, or full repository suites. Use only:

  1. Primary: eng/pipelines/ci-official.Tests.ps1
  2. Regression: eng/pipelines/ci-official-release.Tests.ps1

Run both in one targeted Pester 5.9.0 invocation and fail when Pester reports any failure or discovers zero tests:

$ErrorActionPreference = 'Stop'
Import-Module Pester -RequiredVersion 5.9.0
$result = Invoke-Pester -Path @(
  'eng/pipelines/ci-official.Tests.ps1'
  'eng/pipelines/ci-official-release.Tests.ps1'
) -PassThru -Output Detailed
if ($result.FailedCount -gt 0 -or $result.TotalCount -lt 1) { exit 1 }

Each candidate receives one implementation/test pass and at most one focused correction/retest.

Safety Boundary

The try-fix skill must establish and restore its baseline only with .github/scripts/EstablishBrokenBaseline.ps1. The PR adds eng/pipelines/ci-official.Tests.ps1; if baseline state records any NewFiles, the skill contract requires a truthful Blocked result before editing because restoration is not safe. Do not bypass that guard.


🔬 Code Review — Deep Analysis

Code Review — PR #38650

Independent Assessment

What this changes:
The PR fixes the MirrorBranch value passed into the OneLocBuild template in eng/pipelines/ci-official.yml by switching from runtime expression syntax ($[ ... ]) to compile-time template expression syntax (${{ ... }}), and adds a targeted Pester regression test (eng/pipelines/ci-official.Tests.ps1) plus workflow wiring in .github/workflows/powershell-script-tests.yml so this check runs in script-test CI.

Inferred motivation:
Prevent OneLoc from receiving the literal unevaluated expression string across nested template boundaries (which causes branch resolution failures such as 404 Branch not found).

Reconciliation with PR Narrative

The pre-flight narrative claims exactly this root cause and fix direction. My independent code assessment matches it.

Blast Radius Assessment

  • Runs for all instances: No. This path is scoped to the Localization stage and only when isLocHandoffBranch == true on official builds.
  • Startup impact: No app/runtime startup impact (pipeline-only change).
  • Static/shared state: No runtime static state impact.

CI Status

  • Required-check result: undetermined (tool unavailable from this environment for authenticated gh pr checks --required).
  • Classification: undetermined.
  • Action taken: confidence capped low; no LGTM verdict.

Findings

No actionable file:line defects were found in the reviewed diff.

Failure-Mode Probing

  • If this runs on non-handoff branches: Localization stage condition prevents execution; changed expression is inert outside that stage.
  • If Build.SourceBranch is a standard refs/heads/<name> branch: compile-time expression strips prefix and yields the expected branch token for nested template consumption.
  • If this is a tag build (refs/tags/...) and stage somehow runs: replacement is a no-op, preserving the original tag ref text. Given handoff-branch gating, this does not introduce a new regression in intended execution paths.

External Output Contract

Not applicable (the change does not classify external tool output via regex/string token matching).

Verdict: NEEDS_DISCUSSION

Confidence: low
Summary: The code change is sound, minimal, and appropriately regression-tested for the exact pipeline assignment shape. I found no inline defects in modified lines. However, required-check status could not be authoritatively resolved in this environment (gh authentication unavailable), so final merge-readiness remains a discussion item rather than LGTM.


🛠️ Try-Fix — Analysis & Comparison

PR #38650 Try-Fix Aggregate

Candidate 1 — Upstream Branch Normalization

Model: gpt-5.3-codex

Approach: Precompute the normalized branch name in an upstream pipeline variable, then pass a plain scalar to the nested OneLoc template.

Prior PR approach avoided: The PR performs inline compile-time substitution at the parameter site with ${{ replace(variables['Build.SourceBranch'], 'refs/heads/', '') }}.

Mechanism-level difference: This candidate would move normalization earlier in the data flow so the nested template receives already-materialized text and cannot propagate unevaluated expression tokens.

Files changed: None.

Result: Blocked

Test result: Not executed. EstablishBrokenBaseline.ps1 recorded the PR-added eng/pipelines/ci-official.Tests.ps1 in a non-empty NewFiles array. The try-fix restoration contract therefore required the attempt to stop before edits or tests. Restoration completed with Restored True.

Failure analysis: This is a policy/restorability block, not evidence that the proposed mechanism succeeds or fails.

Inline expert self-review: 0 findings.

Candidate diff:

Candidate 2 — Use OneLoc's Literal Default

Model: gpt-5.6-sol

Approach: Remove the MirrorBranch override from eng/pipelines/ci-official.yml and rely on the directly referenced core OneLoc template's declared literal default, MirrorBranch: main.

Prior approaches avoided: The PR passes an inline compile-time ${{ replace(...) }} argument. Candidate 1 planned upstream precomputation of a normalized branch variable. Both preserve an explicit branch value flowing from the official pipeline through the nested wrapper; this candidate would eliminate that caller-supplied value entirely.

Mechanism-level difference: Without a call-site MirrorBranch argument, the wrapper has no override to forward and the core OneLoc template resolves its literal main default before emitting the task's mirrorBranch input. No replacement token or precomputed normalization variable crosses the nested template boundary.

Files changed: None.

Result: Blocked

Test result: Not executed (0 executions). EstablishBrokenBaseline.ps1 again recorded the PR-added eng/pipelines/ci-official.Tests.ps1 in the non-empty NewFiles array, so the try-fix contract prohibited edits and tests. Restoration completed with Restored True.

Failure analysis: This is a policy/restorability block, not evidence that the proposed default-parameter mechanism succeeds or fails. The mechanism remains unvalidated.

Inline expert self-review: 0 findings.

Candidate diff:


🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winner: pr

The submitted PR is the single winning candidate. It directly fixes the nested-template data flow by changing MirrorBranch from the unevaluated runtime form to a compile-time template expression, preserves the source branch for main, net*.0, and release/* builds, and adds focused regression coverage plus workflow discovery. The expert review found no actionable defect and produced no reviewer patch.

The recommendation remains REQUEST CHANGES because the trusted Gate was skipped and therefore does not permit approval. The one allowed local candidate validation attempt was also blocked before discovery because Pester 5.9.0 is unavailable. This is a validation-evidence gap, not a demonstrated code or test failure; the PR description's Azure Pipelines dry-run and nine-test Pester results could not be independently reproduced in this environment.

Candidate comparison

Rank Candidate Implementation Validation Assessment
1 pr Complete submitted fix and regression test Author reports successful Azure dry-runs and 9 passing Pester tests; trusted Gate skipped Best root-cause fit and only complete, independently reviewed implementation
2 pr-plus-reviewer Byte-identical to pr; expert found no actionable change to apply Single required invocation blocked because Pester 5.9.0 is absent No quality improvement over pr, and no additional pass evidence
3 try-fix-1 Proposed upstream branch normalization, but produced no patch Blocked before editing or testing by the try-fix baseline safety contract Potentially viable in principle, but too underspecified and wholly unvalidated to outrank working code
4 try-fix-2 Proposed removing the override and relying on the core template's main default, but produced no patch Blocked before editing or testing by the try-fix baseline safety contract Would lose source-branch selection for any eligible non-main handoff build, so it is weaker even aside from having no implementation

No candidate failed a regression test: both try-fix-* attempts were blocked before tests, and pr-plus-reviewer was blocked by the missing Pester module before discovery. Those blocked outcomes are ranked below the submitted candidate's complete implementation and reported passing evidence without being mislabeled as test failures.

Expert evaluation

  • Inline findings: 0
  • Raw-PR verdict: NEEDS_DISCUSSION
  • Confidence: low, capped by undetermined required-check status
  • Reviewer refinement: none

Required follow-up

Obtain trusted required-check or equivalent targeted Pester evidence before approval. No code change from the expert review or either try-fix candidate should replace the submitted implementation.


🧭 Next Steps — review latest findings

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

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 18, 2026
@kubaflo

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@missymessa — test-failure analysis for commit 4c473f7.

Verdict Inconclusive Scope CI failures Commit 4c473f7


🧪 CI Analysis — click to expand
📋 Summary

PR: #38650 targeting main.
Overall verdict: Inconclusive
The inspectable device run has five Android leak-test failures, an incomplete/crashed Android CoreCLR work item, and two failed wrapper tasks whose underlying diagnostics are unavailable. Similar symptoms occurred on the preceding PR run, but that establishes branch history rather than independence from this PR. The failing UI run and successful main build check lack inspectable build evidence, so no PR-causality or unrelatedness verdict is supportable.


📊 Pipeline coverage

The pinned PR head is 4c473f700f301f1edf5ab9cb82573e1b7e6b5dcb. Device build 1603186 used synthetic merge SHA 67a61e466a59ba74bcc4f455ecc01873bc56af89; its trigger metadata verifies the PR source SHA, and the merge commit records the pinned head. The main and UI checks refer to builds 1603184 and 1603185, respectively, but their build metadata/timelines were not mapped into the supplied structured evidence, so their current-head provenance is unverified.

Pipeline Current build Previous five runs on the same branch Coverage
maui-pr check succeeded; build 1603184, structured build record unavailable Source ref unknown; 0/5 available Incomplete: no current timeline/results or same-ref history
maui-pr-devicetests 1603186 / merge 67a61e4, failed, head verified refs/pull/38650/merge; 1/5 available: 1602695 (88224f6) Current timeline and all six discovered Helix job work-item sets read; Android CoreCLR contained one failed, incomplete work item
maui-pr-uitests check failed; build 1603185, structured build record unavailable Source ref unknown; 0/5 available Incomplete: five failed job checks have no mapped diagnostics/results

🔎 Failure attribution
Failure / pipeline / variant Relation to PR History Evidence
Items Do Not Leak; maui-pr-devicetests; Android CoreCLR Needs human investigation Same test and collection assertion appeared in preceding same-ref build 1602695, but only 1/5 prior runs is available Current Helix TRX reports an object-retention assertion. The diff changes only OneLoc pipeline expression evaluation and its Pester coverage, with no device/runtime code path; however, recurrence only on an earlier PR commit does not establish unrelatedness.
Four Gesture Does Not Leak cases (Pan, Pointer, Swipe, Tap); maui-pr-devicetests; Android CoreCLR Needs human investigation Build 1602695 contains a generic Gesture Does Not Leak failure without parameter or diagnostic detail, so equivalence is unverified Current TRX says a Label remained alive for all four variants. No changed hunk reaches gesture/device code, but exact comparable target-branch evidence is absent.
Android CoreCLR work item com.microsoft.maui.controls.devicetests-Signed; maui-pr-devicetests Needs human investigation Build 1602695 also reported the work item failed, but this is earlier PR-branch history only Current Helix work item exited non-zero after 976 passed / 5 failed / 12 skipped and showed a crash signal. Because the run was incomplete, unexecuted tests may be masked.
DeviceTestsAndroid_CoreCLR (Windows) wrapper task; maui-pr-devicetests Needs human investigation Same task ended with generic PowerShell exit 1 in build 1602695; across five base samples the leg was green 3 and red 2 Current task exposes only the wrapper exit plus the failed Helix work item; the base-leg pattern is flaky and does not identify the same underlying reason.
DeviceTestsWindows (Windows) wrapper task; maui-pr-devicetests Needs human investigation The leg was red in all five sampled base builds and build 1602695 also ended with PowerShell exit 1 Current task lacks the underlying diagnostic. Repeated wrapper failure is a strong pre-existing signal, but a generic exit code is not a same-reason match.
Five failed UI jobs: Android CollectionView5, Android SafeAreaEdges, WinUI Shell, WinUI SoftInput/Stepper/Switch/SwipeView, macOS CollectionView7; maui-pr-uitests Insufficient data No same-ref history was supplied The checks are red, but build 1603185 has no mapped timeline, test outcomes, or diagnostics in the structured context, so failure reasons and relation to the CI-only diff cannot be assessed.

📋 Previous-run comparison

maui-pr-devicetests definition 314 supplied 1/5 completed predecessors on refs/pull/38650/merge: build 1602695 at 88224f6089dd7f57a8ca0d984af47078e93daf93. It contains the same Items Do Not Leak assertion, generic gesture/work-item failures, and the same two wrapper-task exit codes. These observations show recurrence earlier on this PR branch, not that the failures predate the PR. The other four requested device predecessors were unavailable. No source ref or completed-run samples were supplied for definitions 302 (maui-pr) or 313 (maui-pr-uitests), so both are 0/5 with unknown history rather than clean history.


🔬 Code and regression-test evidence

The pinned diff changes eng/pipelines/ci-official.yml from runtime $[...] to template-time ${{ ... }} evaluation for MirrorBranch, adds an 18-line Pester assertion for that expression, and wires that test into .github/workflows/powershell-script-tests.yml. It changes no framework, handler, gesture, leak-test, device-test, or UI-test implementation. The new Pester scripts check passed at the pinned head, directly exercising the intended regression. That narrow code evidence argues against an obvious causal path to the observed device/UI failures, but it cannot replace missing UI diagnostics, exact target-branch comparisons, or completion of the crashed Android work item.


📋 Coverage and limitations

Coverage: Incomplete - the current device build is inspectable, but the current maui-pr and maui-pr-uitests builds are not present in structured build evidence; five UI job failures therefore have no diagnostics, and the Android CoreCLR work item did not complete.
Limitations: Same-ref history is 1/5 for device tests and 0/5 with unknown source refs for main/UI; the two failed device wrapper tasks expose only PowerShell exit 1; no exact target-branch match establishes the named Android failures as unrelated.


🧭 Follow-up — actions and refresh

Next action: Inspect build 1603185's five failed UI job diagnostics and the full Windows device-task diagnostic, then rerun the incomplete Android CoreCLR work item at the same head to distinguish recurrence from a crash-masked regression.

Maintainers: comment /review tests to refresh this report.

@kubaflo
kubaflo merged commit 039c9be into dotnet:main Sep 19, 2026
188 of 199 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution 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.

OneLoc official pipeline passes target branch expression literally

4 participants