Skip to content

[iOS, Mac] Handle unset gradient-stop colors during rendering - #40611

Merged
kubaflo merged 5 commits into
dotnet:candidate/11.0.1xx-sr3from
SyedAbdulAzeemSF4852:fix-28893
Nov 25, 2026
Merged

kubaflo merged 5 commits into
dotnet:candidate/11.0.1xx-sr3from
SyedAbdulAzeemSF4852:fix-28893

Conversation

@SyedAbdulAzeemSF4852

Copy link
Copy Markdown
Contributor

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!

Issue Details

  • When scrolling through the carousel view, the bindable gradient Border crashes the application or when the carousel view is updated with new items, the application crashes

Root Cause

  • Replacing CarouselView items with unequal values causes old cells to be unbound, clearing their bound gradient colors; a subsequent native drawing callback reaches an iOS gradient renderer that incorrectly assumes those colors are non-null.

Description of Change

  • Treat unset gradient-stop colors as transparent when rendering iOS linear and radial gradients, preventing null-reference exceptions during item recycling.

Issues Fixed

Fixes #28893

Validated the behaviour in the following platforms

  • Windows
  • Android
  • iOS
  • Mac

Output

Before Fix After Fix
Before.mov
After.mov

github-actions Bot and others added 5 commits November 24, 2026 13:10
<!-- 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!
<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [ ] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

<!-- maui-release-normalization:production:11.0.1xx-sr2 -->

Restore **`net11`** to the next-cycle CI version after pinning the exact
SR2 staging source.

Approved candidate merge: `cb744cbefe0ca371b6331e5afb711bd03ce1c37d`.
Prepared normalization: `084e9e5a4ce38d205bf9f9cdc6933fbddf7c91e7`.
This pinned child commit changes only version metadata: patch 30,
CI/non-stable settings, and that same plain version in both bug-template
dropdowns. SDK band and release contents are unchanged.

**A maintainer must review this PR, run required CI and use Create a
merge commit. Do not squash or rebase.**
The reconciler does not update the protected integration ref, approve,
retarget or merge this PR. Next-lane activation and forward-flow
preparation wait for the normalization ancestry to be verified.
The automation/release staging ref starts at this candidate source and
advances through its separately reviewed servicing PR. A newer
maintainer candidate merge supersedes the old generation, never a
concurrent unrelated edit. After servicing is merged with Create a merge
commit, the real release branch is manually cut at its exact merge. This
normalization PR does not authorize signing.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

N/A - staged release configuration.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
<!-- 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!
<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [ ] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

<!-- maui-release-normalization:production:11.0.1xx-sr2 -->

Restore **`net11`** to the next-cycle CI version after pinning the exact
SR2 staging source.

Approved candidate merge: `cb744cbefe0ca371b6331e5afb711bd03ce1c37d`.
Prepared normalization: `084e9e5a4ce38d205bf9f9cdc6933fbddf7c91e7`.
This pinned child commit changes only version metadata: patch 30,
CI/non-stable settings, and that same plain version in both bug-template
dropdowns. SDK band and release contents are unchanged.

**A maintainer must review this PR, run required CI and use Create a
merge commit. Do not squash or rebase.**
The reconciler does not update the protected integration ref, approve,
retarget or merge this PR. Next-lane activation and forward-flow
preparation wait for the normalization ancestry to be verified.
The automation/release staging ref starts at this candidate source and
advances through its separately reviewed servicing PR. A newer
maintainer candidate merge supersedes the old generation, never a
concurrent unrelated edit. After servicing is merged with Create a merge
commit, the real release branch is manually cut at its exact merge. This
normalization PR does not authorize signing.

Replaces dotnet#40563, which landed the same tree without the pinned commit
(squash or rebase merge). This PR may show no remaining file changes;
merging it with Create a merge commit records the required ancestry.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

N/A - staged release configuration.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
… height (dotnet#40574)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Ports the exact fix and regression tests from dotnet#40572 to `net11` for
review. Original fix by @devanathan-vaithiyanathan. The SR2 PR remains
separate.

For horizontal Grid CollectionViews on iOS and Mac Catalyst, measure the
first available item when the height is unbounded, skip empty leading
groups, and account for the row span and vertical spacing. The existing
linear and finite-height behavior is unchanged. Regression coverage
includes a four-row grid in an Auto row and a grouped grid with an empty
first group.

The local iOS device-test build was blocked by a missing workload in the
repository SDK (NETSDK1147), so the simulator tests did not run. Mac
Catalyst was not run locally.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes dotnet#40466

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…0578)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Backport dotnet#40481 from `release/11.0.1xx-sr2` to `net11`. The change
prevents re-entrant CollectionView remaining-items threshold
notifications and skips threshold evaluation when the scrolled event
replaces the items source. It includes the original iOS/MacCatalyst
device tests.

Source commit: `4858add2c0fdb0fc6ccfff39ee2dfde40b61e78d`.

**Validation**

- `git diff --cached --check` - passed.
- `git diff --cached | git patch-id --stable` - matched the patch ID of
source commit `4858add2c0fdb0fc6ccfff39ee2dfde40b61e78d`.
- Building `Microsoft.Maui.BuildTasks.slnf` failed locally with
`NETSDK1140`: the installed Apple workload accepts platform version 27.2
while the projects request 27.0.
- iOS and MacCatalyst device tests were not run locally; CI validation
is required.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Relates to dotnet#40467.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->
@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 -- 40611

Or

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

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Nov 25, 2026
@azure-pipelines

This comment has been minimized.

@vishnumenon2684 vishnumenon2684 added the community ✨ Community Contribution label Nov 25, 2026
@SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 changed the title [WIP][iOS, Mac] Handle unset gradient-stop colors during rendering [iOS, Mac] Handle unset gradient-stop colors during rendering Nov 25, 2026
@NirmalKumarYuvaraj NirmalKumarYuvaraj linked an issue Nov 25, 2026 that may be closed by this pull request
@sheiksyedm
sheiksyedm marked this pull request as ready for review November 25, 2026 11:47
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Expert Review — 0 findings

Reviewed commit 62cbda9.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Selected Tests

@kubaflo — AI-selected UI tests and device tests (GPT-6.2 Sol + MAI Code 2) for commit 62cbda92.

Result PASSED Platforms iOS, MacCatalyst Tests 3 UI, 3 device Commit 62cbda92


🧪 Test selection — click to expand
Suite Result Selected Build
UI tests ✅ passed 3 of 77 categories maui-pr-uitests #1699121
Device tests ✅ passed 3 of 103 units maui-pr-devicetests #1699123
🧪 UI tests — Border, Brush, CarouselView on iOS, MacCatalyst

✅ maui-pr-uitests #1699121 passed.

GPT-6.2 Sol: Run Border, Brush, and CarouselView UI tests on iOS and Mac Catalyst for the unset gradient-stop fix.
MAI Code 2: iOS and Mac Catalyst gradient rendering fix; runs Border, Brush, and CarouselView UI coverage.

🧪 Ran — 3 categories on iOS, MacCatalyst

Platform Categories
iOS Border, Brush, CarouselView
MacCatalyst Border, Brush, CarouselView
📊 Results — succeeded: 7 passed, 0 failed of 7 jobs

🔗 All test results · Build logs

Job Result
Build UITests CoreCLR Sample App Build Sample App ✅ succeeded
iOS UITests CoreCLR Controls (vlatest) Border ✅ succeeded
iOS UITests CoreCLR Controls (vlatest) Brush ✅ succeeded
iOS UITests CoreCLR Controls (vlatest) CarouselView ✅ succeeded
MacCatalyst UITests CoreCLR Controls Border ✅ succeeded
MacCatalyst UITests CoreCLR Controls Brush ✅ succeeded
MacCatalyst UITests CoreCLR Controls CarouselView ✅ succeeded
🧪 Device tests — Controls.Border, Controls.CarouselView, Core.Border on iOS, MacCatalyst

✅ maui-pr-devicetests #1699123 passed.

GPT-6.2 Sol: Run Core and Controls Border device tests on iOS and Mac Catalyst for gradient rendering.
MAI Code 2: Runs iOS and Mac Catalyst Border device tests for unset gradient colors, plus CarouselView regression coverage.

🧪 Ran — 3 categories on iOS, MacCatalyst

Platform Categories
iOS Controls.Border, Controls.CarouselView, Core.Border
MacCatalyst Controls.Border, Controls.CarouselView, Core.Border
📊 Results — succeeded: 3 passed, 0 failed of 3 jobs

🔗 All test results · Build logs

Job Result
net11.0 CoreCLR iOS Helix Tests Run DeviceTests iOS (CoreCLR) ✅ succeeded
net11.0 CoreCLR ios/catalyst/android Helix Tests Build Device Tests (CoreCLR) ✅ succeeded
net11.0 CoreCLR MacCatalyst Helix Tests Run DeviceTests MacCatalyst (CoreCLR) ✅ succeeded
⏭️ Skipped — what neither suite runs

UI tests — 74 categories, 2 platforms

Platforms not run: Android, Windows

Categories not run: Accessibility, ActionSheet, ActivityIndicator, Animation, AppLinks, BoxView, Button, CollectionView1, CollectionView2, CollectionView3, CollectionView4, CollectionView5, CollectionView6, CollectionView7, Cells, CheckBox, ContextActions, CustomRenderers, DatePicker, Dispatcher, DisplayAlert, DisplayPrompt, DragAndDrop, Entry, Editor, Effects, Essentials, FlyoutPage, Focus, Fonts, Frame, Gestures, GraphicsView, Image, ImageButton, IndicatorView, InputTransparent, IsEnabled, IsVisible, Label, Layout, Lifecycle, ManualReview, Maps, Navigation, Page, Performance, Picker, ProgressBar, RadioButton, RefreshView, SafeAreaEdges, Shadow, ScrollView, SearchBar, Shape, Slider, SoftInput, Stepper, Switch, SwipeView, Shell1, Shell2, TabbedPage, TableView, TimePicker, TitleView, ToolbarItem, Triggers, ViewBaseTests, VisualStateManager, Window, WebView, Material3

Each skipped platform and category is listed as a Skipped maui-pr-uitests (skipped) … check on this commit. Use /azp run maui-pr-uitests for the full suite.

Device tests — 100 categories, 2 platforms

Platforms not run: Android, Windows

Categories not run: Controls.Accessibility, Controls.Application, Controls.Behavior, Controls.BoxView, Controls.Button, Controls.CheckBox, Controls.CollectionView, Controls.Compatibility, Controls.ContentView, Controls.DatePicker, Controls.Dispatcher, Controls.Editor, Controls.Element, Controls.Entry, Controls.FlexLayout, Controls.FlyoutPage, Controls.Frame, Controls.Gesture, Controls.HybridWebView, Controls.Image, Controls.Label, Controls.Layout, Controls.Lifecycle, Controls.Map, Controls.Mapper, Controls.Memory, Controls.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.Path, Controls.Picker, Controls.RadioButton, Controls.RefreshView, Controls.ScrollView, Controls.SearchBar, Controls.Shape, Controls.Shell, Controls.Slider, Controls.SwipeView, Controls.Switch, Controls.TabbedPage, Controls.TemplatedView, Controls.TextInput, Controls.Toolbar, Controls.View, Controls.VisualElement, Controls.VisualElementTree, Controls.WebView, Controls.Window, Controls.WindowOverlay, Controls.Xaml, Core.ActivityIndicator, Core.Animation, Core.Application, Core.BoxView, Core.Button, Core.CheckBox, Core.ContentView, Core.DatePicker, Core.Dispatcher, Core.Editor, Core.Element, Core.Entry, Core.FlowDirection, Core.FlyoutView, Core.Fonts, Core.Formatting, Core.Graphics, Core.GraphicsView, Core.Image, Core.ImageButton, Core.ImageSource, Core.IndicatorView, Core.Label, Core.Layout, Core.Lifecycle, Core.MauiContext, Core.Memory, Core.NavigationPage, Core.Page, Core.Picker, Core.ProgressBar, Core.RadioButton, Core.RefreshView, Core.ScrollView, Core.SearchBar, Core.ShapeView, Core.Slider, Core.Stepper, Core.SwipeView, Core.Switch, Core.TimePicker, Core.View, Core.WebView, Core.Window, Core.WindowOverlay, Graphics, Essentials, BlazorWebView

Each skipped platform and project is listed as a Skipped maui-pr-devicetests (skipped) … check on this commit. Use /azp run maui-pr-devicetests for the full suite.

🤖 Why these tests — AI rationale (GPT-6.2 Sol + MAI Code 2)

UI tests

Each model chose independently; every test that runs was selected by at least one of them.

Platform GPT-6.2 Sol MAI Code 2
Android — —
iOS Border, Brush, CarouselView Border, Brush, CarouselView
MacCatalyst Border, Brush, CarouselView Border, Brush, CarouselView
Windows — —

GPT-6.2 Sol — Run Border, Brush, and CarouselView UI tests on iOS and Mac Catalyst for the unset gradient-stop fix.

  • MauiCALayer changes native gradient drawing, so run Border and Brush.
  • CarouselView item recycling triggers the reported crash.
  • Skip Android, Windows, and unrelated categories: the change is Apple-only and limited to gradient drawing.

MAI Code 2 — iOS and Mac Catalyst gradient rendering fix; runs Border, Brush, and CarouselView UI coverage.

  • MauiCALayer.cs is iOS-specific platform code, which also applies to Mac Catalyst, so Android and Windows are excluded.
  • The changed gradient drawing path affects Border and Brush rendering, including linear and radial gradient stops with unset colors.
  • CarouselView is included because the reported crash occurs while recycled carousel content unbinds gradient colors; unrelated control categories are omitted.
  • A full cross-platform run is unnecessary because this is a focused null-color rendering fix rather than a base handler, layout, or build-system change.

Device tests

Each model chose independently; every test that runs was selected by at least one of them.

Platform GPT-6.2 Sol MAI Code 2
Android — —
iOS Core.Border, Controls.Border Core.Border, Controls.Border, Controls.CarouselView
MacCatalyst Core.Border, Controls.Border Core.Border, Controls.Border, Controls.CarouselView
Windows — —

GPT-6.2 Sol — Run Core and Controls Border device tests on iOS and Mac Catalyst for gradient rendering.

  • Core.Border contains the new MauiCALayer regression for linear and radial gradient fills and strokes.
  • Controls.Border covers the affected control-to-handler rendering path.
  • Skip other platforms and units: the change is confined to Apple-native gradient drawing.

MAI Code 2 — Runs iOS and Mac Catalyst Border device tests for unset gradient colors, plus CarouselView regression coverage.

  • The production change is in iOS platform layer rendering, compiled for both iOS and Mac Catalyst; Android and Windows are excluded.
  • Core.Border and Controls.Border cover the changed native Border layer behavior and the newly added device test cases.
  • Controls.CarouselView covers the reported item-recycling scenario that clears bound gradient-stop colors.
  • No full device run is needed because the patch is limited to gradient-stop color conversion in the Apple platform renderer.

Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification.

kubaflo added a commit that referenced this pull request Nov 25, 2026
…e pipeline (#40624)

### Description of Change

The per-job checks from #40612 show in the PR's checks panel as

> Bump global.json for dotnet/dotnet bumps / maui-pr-uitests
(MacCatalyst UITests CoreCLR …)

because check runs created with the workflow's `GITHUB_TOKEN` are filed
under whichever GitHub Actions workflow already ran on the commit.

Each job of the selected build is now published as a **commit status**
instead, which shows under exactly its context:

- `maui-pr-uitests (MacCatalyst UITests CoreCLR Controls Border)` —
Succeeded in maui-pr-uitests #1699121 (selected by /review)
- `maui-pr-devicetests (net11.0 CoreCLR iOS Helix Tests Run DeviceTests
iOS (CoreCLR))`

States: queued/running → `pending`, succeeded → `success`, failed →
`failure`, canceled → `error`; each links to the job's log. When a later
`/review` run on the same commit builds other jobs, the previous build's
leftover statuses are marked "Not in the latest selected run".
`review-run-tests-results.yml` gets `statuses: write`.

Builds on #40615 (its commit is included here; merge that first or merge
this one alone).

### Testing

- `RunTests.Tests.ps1` passes (76), with a test for
`New-RunTestsJobStatuses`.
- Published the statuses for build 1699121 on #40611 by hand: the 7 UI
test jobs show as `maui-pr-uitests (…)` with no workflow prefix.

---------

Co-authored-by: Copilot CI <copilot-ci@microsoft.com>
@kubaflo
kubaflo changed the base branch from net11 to candidate/11.0.1xx-sr3 November 25, 2026 19:45
@kubaflo
kubaflo merged commit 421161f into dotnet:candidate/11.0.1xx-sr3 Nov 25, 2026
137 of 146 checks passed
kubaflo added a commit that referenced this pull request Nov 26, 2026
…log refused dispatches (#40631)

### Description of Change

**Crash (from #40627).** Every `/review run-tests` dispatch since #40627
fails before posting its comment:

```
Invoke-RunTests.ps1:380  … -RunTestsStatuses -Repository $Repository -Sha $sha) | Where-Object {
You cannot call a method on a null-valued expression.
```

`Get-RunTestsStatuses` returns its list as a single object (`return ,
@(…)`), so `@(Get-RunTestsStatuses …)` nested it and `$_.context` was
the whole list. The list is now assigned first, and `context` is read as
a string. Seen on #40439 and #40294.

**net11 dispatches refused (diagnostics).** Since #40629 merged into
`net11`, creating the `run-tests/*` / `run-devicetests/*` branch for
`net11` PRs fails with `Resource not accessible by integration (HTTP
403)` (#40619, #40620, #40621). `main` PRs and `net11` dispatches before
that pushed fine. The log doesn't say what GitHub objects to, so when
the branch can't be created the script now logs the dispatch commit, its
parent, the test-merge and its base, and the files the commit changes.
That shows the cause on the next run.

### Testing

- New Pester test: `Get-RunTestsStatuses` returns a flat list, and
`Invoke-RunTests.ps1` no longer wraps it in `@()`. 77 pass; the 2
failures (`Pipeline templates`, `gates the device test pipeline on the
dispatch request`) also fail on `main` without this change.
- Called `Get-RunTestsStatuses` against a real commit (#40611 head): 7
statuses, filtering works.

Co-authored-by: Copilot CI <copilot-ci@microsoft.com>
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
…e pipeline (dotnet#40624)

### Description of Change

The per-job checks from dotnet#40612 show in the PR's checks panel as

> Bump global.json for dotnet/dotnet bumps / maui-pr-uitests
(MacCatalyst UITests CoreCLR …)

because check runs created with the workflow's `GITHUB_TOKEN` are filed
under whichever GitHub Actions workflow already ran on the commit.

Each job of the selected build is now published as a **commit status**
instead, which shows under exactly its context:

- `maui-pr-uitests (MacCatalyst UITests CoreCLR Controls Border)` —
Succeeded in maui-pr-uitests #1699121 (selected by /review)
- `maui-pr-devicetests (net11.0 CoreCLR iOS Helix Tests Run DeviceTests
iOS (CoreCLR))`

States: queued/running → `pending`, succeeded → `success`, failed →
`failure`, canceled → `error`; each links to the job's log. When a later
`/review` run on the same commit builds other jobs, the previous build's
leftover statuses are marked "Not in the latest selected run".
`review-run-tests-results.yml` gets `statuses: write`.

Builds on dotnet#40615 (its commit is included here; merge that first or merge
this one alone).

### Testing

- `RunTests.Tests.ps1` passes (76), with a test for
`New-RunTestsJobStatuses`.
- Published the statuses for build 1699121 on dotnet#40611 by hand: the 7 UI
test jobs show as `maui-pr-uitests (…)` with no workflow prefix.

---------

Co-authored-by: Copilot CI <copilot-ci@microsoft.com>
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
…log refused dispatches (dotnet#40631)

### Description of Change

**Crash (from dotnet#40627).** Every `/review run-tests` dispatch since dotnet#40627
fails before posting its comment:

```
Invoke-RunTests.ps1:380  … -RunTestsStatuses -Repository $Repository -Sha $sha) | Where-Object {
You cannot call a method on a null-valued expression.
```

`Get-RunTestsStatuses` returns its list as a single object (`return ,
@(…)`), so `@(Get-RunTestsStatuses …)` nested it and `$_.context` was
the whole list. The list is now assigned first, and `context` is read as
a string. Seen on dotnet#40439 and dotnet#40294.

**net11 dispatches refused (diagnostics).** Since dotnet#40629 merged into
`net11`, creating the `run-tests/*` / `run-devicetests/*` branch for
`net11` PRs fails with `Resource not accessible by integration (HTTP
403)` (dotnet#40619, dotnet#40620, dotnet#40621). `main` PRs and `net11` dispatches before
that pushed fine. The log doesn't say what GitHub objects to, so when
the branch can't be created the script now logs the dispatch commit, its
parent, the test-merge and its base, and the files the commit changes.
That shows the cause on the next run.

### Testing

- New Pester test: `Get-RunTestsStatuses` returns a flat list, and
`Invoke-RunTests.ps1` no longer wraps it in `@()`. 77 pass; the 2
failures (`Pipeline templates`, `gates the device test pipeline on the
dispatch request`) also fail on `main` without this change.
- Called `Get-RunTestsStatuses` against a real commit (dotnet#40611 head): 7
statuses, filtering works.

Co-authored-by: Copilot CI <copilot-ci@microsoft.com>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 62cbda92 Deployed Nov 25, 2026 by SyedAbdulAzeemSF4852 via conclusion #3314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-border Border community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios platform/macos macOS / Mac Catalyst

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] CarouselView with Bindable Gradient Border crash app

4 participants