Skip to content

Finish zero-length tweens on the first frame instead of producing NaN - #40710

Merged
kubaflo merged 3 commits into
dotnet:candidate/11.0.1xx-sr3from
marcelomoresco:fix/40684-zero-length-tween-net11
Dec 1, 2026
Merged

kubaflo merged 3 commits into
dotnet:candidate/11.0.1xx-sr3from
marcelomoresco:fix/40684-zero-length-tween-net11

Conversation

@marcelomoresco

Copy link
Copy Markdown
Contributor

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

Targets net11: main now targets .NET 12, which this SDK can't build; Tweener.cs is identical on both branches.

Description of Change

Tweener.Step computes progress as ms / Length. With a zero-length tween and a first frame of 0 ms — the normal case on Android, whose ticker runs the first frame inside ValueAnimator.start() — that's 0 / 0 = NaN. ValueUpdated still fires with that NaN, and the animation callback writes it to the target property; on Android, ScaleXToAsync(x, 0)/ScaleYToAsync(x, 0) then crash with "Cannot set 'scaleX' to Float.NaN".

A zero-length tween now reports a value of 1 on its first step, so it updates once with the final value and finishes, instead of dividing by zero.

Verification

  • New MotionTests: ZeroLengthTweenerFinishesOnFirstFrameWithoutNaN and ZeroLengthScaleAnimationNeverWritesNaN (ScaleX, ScaleY, Scale), using an AnimationManager whose first frame is 0 ms — fail without the fix ([NaN, 1]), pass with it.
  • Controls.Core.UnitTests: 6839 pass; 1 unrelated pre-existing failure on a clean net11 checkout (TwoWayBindingToNullableDoublePropertyWithEmptyStringBecomesNull, caused by the machine's pt-BR culture).
  • Android 16 (API 36) emulator, sandbox app calling ScaleXToAsync(2, 0)/ScaleYToAsync(2, 0) on Loaded:
Before After
Before After

Before: FATAL EXCEPTION — "Cannot set 'scaleY' to Float.NaN". After: no crash, ScaleX=2 ScaleY=2.

Not verified

iOS, Mac Catalyst, and Windows in a real app — the change is in the shared Tweener and is covered by the unit tests above. The Windows NaN guard for RotateX/Y (#30167) is untouched.

Issues Fixed

Fixes #40684

Let AI finish this PR

  • Let the MAUI agent address review feedback and fix remaining issues on this PR. Maintainers still decide whether it is merged. For PRs from forks, the agent opens a follow-up PR that keeps your commits.

Tweener.Step computed the progress as ms / Length. With a length of 0 and
a first frame of 0 ms (the normal case for Android's ticker, which runs the
first frame inside ValueAnimator.start()), that is 0 / 0 = NaN. Math.Min
returns NaN, ValueUpdated still fires, and the animation callback writes
NaN to the target property. On Android, ScaleXToAsync(x, 0) and
ScaleYToAsync(x, 0) then throw "Cannot set 'scaleX' to Float.NaN" from the
native view and crash the app.

A zero-length tween now reports a value of 1 on its first step, so it
updates once with the final value and finishes.

Fixes dotnet#40684
@github-actions

This comment has been minimized.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Nov 27, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@azure-pipelines

This comment has been minimized.

@kubaflo

kubaflo commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

/review expert-review

@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 — No findings

Reviewed commit bc00aeb.

Source assessment incomplete (7/8 dimensions); finding count is partial.

@github-actions

This comment has been minimized.

@kubaflo kubaflo 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.

Could you check the failed test?

kubaflo added a commit that referenced this pull request Nov 28, 2026
…0755)

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

Fix the deterministic `PageTransitionsTests` failures on `main`,
including the product defects exposed once the More controller actually
runs the transition.

#### Product fixes

- **Programmatically selected overflow tabs never installed the More
navigation delegate.** UIKit reports the selected section's own
controller, not `MoreNavigationController`, even though it displays that
section inside More. Both Shell implementations now install their
existing delegate for overflow sections when there are more than five
tabs. This enables the custom animator, completion tracking, and
shared-element flights.
- **The compatibility renderer popped the wrong native stack.** Its
pop-to-root operation now targets the overflow section's root on the
active More controller and completes through the same transition-aware
path as a single pop. It also reads the active controller's top page
when recording an unanimated push, so a later pop reverses `None`
instead of the page's configured Fade.
- **The managed transition-coordinator binding rejects a null animation
callback.** Supply a no-op animation callback while registering
completion. Once the missing More delegate was fixed, the original
callback produced `ArgumentNullException: animate` from
`UIViewControllerTransitionCoordinatorWrapper.AnimateAlongsideTransition`.

Native/default More navigation still completes immediately; only custom
page transitions wait for their animation.

#### Corrections to provably invalid test setup

- `WindowHandlerStub` presents a workspace inside the runner's window;
it never replaces `UIWindow.RootViewController`. Root-replacement tests
now use a separate real window with the production content mapper. Their
snapshot probe checks UIKit's native replicant class instead of the CLR
`UIView` wrapper name.
- `Window.PropertyChanged` runs **before** native content mapping.
Install the root's own animation after the assignment, assert that it
exists, and finish the replacement without detaching the root. Detaching
an outgoing root lets UIKit remove its animations independently of
MAUI's cleanup, invalidating the original assertion.
- The destination may not have a handler immediately after `PushAsync`
starts. Wait for its content to load before reading native visibility,
and use a short asynchronous delay when polling so the platform
animation loop can run. The original Android test throws in
`NativeShown` before it can inspect a flight.
- More navigation intentionally completes immediately for an unanimated
push. Wait for the pushed content to load before issuing the next
push/pop-to-root; otherwise UIKit has not yet finished presenting that
controller.

#### Which landing introduced this?

The faulty transition code and tests came from #40537 (`f7d3fc1c99`),
not the storyboard landing #40536 (`c1f549fd52`). Comparing those
commits for all six files changed here produces an **empty diff**. The
tests do not use storyboard animation holds. #40537's recorded checks
include `maui-pr` but no `maui-pr-devicetests` check, so its successful
build was not evidence that these device tests passed.

The supplied main-branch CI window was last green at
[1699752](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1699752)
(`eeda7f80ed`), with the failures present from
[1699985](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1699985)
(`c1f549fd52`) onward, including
[1703407](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703407).

Before implementation, searched open and recently merged PRs across all
bases, including `release/*`, `inflight/*`, and `candidate/*`. Inspected
#40658 (bottom-sheet/modal transitions), #40344 (tab reselection),
#40656 (TabbedPage lifecycle), #40696 (queued animation cancellation),
and #40710 (zero-length tweens); none contains these fixes.

#### Local causal validation

All counts below are **passed / failed**, read from fresh XHarness XML
with exact-class isolation verified. Each platform was measured on
original sources, with the correction, with the correction reverted, and
with it restored. No physical devices were used.

| Phase | iOS 27 simulator | Mac Catalyst | Android API 33 emulator |
| --- | --- | --- | --- |
| Original baseline | 18 / 6 | 18 / 6 | 12 / 1 |
| Fixed | 24 / 0 | 24 / 0 | 13 / 0 |
| Reverted | 18 / 6 | 18 / 6 | 12 / 1 |
| Restored | 24 / 0 | 24 / 0 | 13 / 0 |

The reverted Apple failures are the two root tests and both variants of
the More navigation/shared-element tests. Android reproduces the
destination-handler `NullReferenceException`. The Helix Mac Catalyst
opacity timeout did **not** reproduce locally; that case passed locally
before and after the correction. Final validation additionally passed
**24 / 0 on an iOS 18.5 simulator**.

Commands below were run from an isolated worktree based on `main` at
`6d74c1c0d9`. `.dotnet` contains the SDK pinned by `global.json`
(`12.0.100-alpha.1.26523.103`); Xcode is 27.2.

```bash
export PATH="$PWD/.dotnet:$PATH"
export DOTNET_ROOT="$PWD/.dotnet"
export TMPDIR="$PWD/artifacts/transition-evidence/scratch"
export DOTNET_CLI_USE_MSBUILD_SERVER=0
export MSBUILDDISABLENODEREUSE=1
export DOTNET_ROLL_FORWARD=Major
export HEADLESS=true
```

Preparation — all succeeded:

```bash
dotnet build src/DotNet/DotNet.csproj -p:InstallDotNet=false -p:TreatWarningsAsErrors=false -v:minimal
dotnet workload install ios maccatalyst --skip-manifest-update --verbosity minimal
dotnet build Microsoft.Maui.BuildTasks.slnf -p:TreatWarningsAsErrors=false --disable-build-servers -v:minimal
dotnet tool restore
```

iOS causal runs — original/reverted failed **18/6**; fixed/restored
passed **24/0**:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform ios -iOSVersion 27 -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -SkipXcodeVersionCheck -Timeout 00:10:00 -Rebuild
```

Mac Catalyst causal runs — original/reverted failed **18/6**;
fixed/restored passed **24/0**:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform maccatalyst -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -SkipXcodeVersionCheck -Timeout 00:10:00 -Rebuild
```

Android causal runs — original/reverted failed **12/1**; fixed/restored
passed **13/0**:

```bash
export EmbedAssembliesIntoApk=true
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform android -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -Timeout 00:10:00 -Rebuild
```

The runner selected `emulator-5556` and passed `--instrumentation
com.microsoft.maui.controls.devicetests.TestInstrumentation`. A separate
read-only API 33 emulator was used after another emulator's unauthorized
ADB transport prevented the initial attempt from running tests.

iOS 18.5 final compatibility check — passed **24/0**:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform ios -iOSVersion 18.5 -TestFilter 'Category=PageTransitions' -IncludeClasses Microsoft.Maui.DeviceTests.PageTransitionsTests -SkipXcodeVersionCheck -Timeout 00:10:00
```

Formatting/checks — passed, with workspace-loading warnings from the
formatter:

```bash
dotnet format whitespace Microsoft.Maui.sln --no-restore --include src/Controls/tests/DeviceTests/Elements/PageTransitions/PageTransitionsTests.cs src/Controls/tests/DeviceTests/Elements/PageTransitions/PageTransitionsTests.iOS.cs --verify-no-changes
git diff --check
```

The full repository formatter was also attempted; it emitted unrelated
analyzer edits and multi-target conflict markers. Those edits were
discarded, and the surgical patch was rebuilt and retested. No unrun CI
check is represented as passing.

### 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. -->

Deterministic main-branch `maui-pr-devicetests` failures described
above; tracked here by the linked failing builds rather than an
unrelated issue number.

### Let AI finish this PR

- [ ] **Let the MAUI agent address review feedback and fix remaining
issues on this PR.** Maintainers still decide whether it is merged. For
PRs from forks, the agent opens a follow-up PR that keeps your commits.

<!--
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: Copilot App <223556219+Copilot@users.noreply.github.com>
@marcelomoresco

Copy link
Copy Markdown
Contributor Author

I looked into it: the only failure is the Windows device-test job (build 1702667), where both Helix work items report "No test result files found". The selected category was Animations, which doesn't exist among the Controls device-test categories (the app listed 47, none of them Animations, see the Helix console log), so no test ran on any platform; Android/iOS/Catalyst count that as success and the Windows script reports it as a crash. This PR only touches Tweener.cs and is covered by the new MotionTests in Controls.Core.UnitTests. Could you re-run with the unit tests, or with a category that exists, if you'd like device coverage?

@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 — 1 finding

Reviewed commit bc00aeb.

See inline comments for details.

Comment thread src/Controls/src/Core/Tweener.cs Resolved
@github-actions

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it label Nov 30, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the s/autopilot-fixing MAUI Autopilot: fixing review findings or failing tests (GPT-6.2 Sol vs MAI Code 2) label Nov 30, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@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 — No more findings

Reviewed commit 301b112.

@github-actions github-actions Bot added s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run and removed s/autopilot-reviewing MAUI Autopilot: MAUI expert review in progress labels Nov 30, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added s/autopilot-needs-maintainer-decision MAUI Autopilot stopped: a maintainer needs to decide how to continue and removed s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run labels Nov 30, 2026
@github-actions

This comment has been minimized.

@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 — No more findings

Reviewed commit 301b112.

kubaflo added a commit that referenced this pull request Nov 30, 2026
…utopilot (#40887)

<!-- copilot-assessment:v1 -->
### Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: `5fd5f3bbf9a20287c0fffbd88d4c3f1d8d741d5f`

| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 8.5/10 | ↑ Decision replayed on #40879's real NOT
QUEUED comment: stale → tests, fresh → stop.<br>↑ Workflow
compiles.<br>↓ Live retest after merge still pending (AzDO currently not
queueing builds). |
| Diagnosis confidence | 9.5/10 | ↑ #40879: test comment 15:29Z,
`/review autopilot` 15:50Z, Stopped 23s later without requesting tests.
|
| Evidence fit | 9/10 | ↑ Explains why restarting Autopilot after the
AzDO outage cannot recover #40709/#40710/#40836/#40879. |
<!-- /copilot-assessment -->

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

### Description of Change

When the latest `/review run-tests` result for the PR head is an error,
NOT QUEUED or CANCELED, Autopilot stopped immediately — even if that
result predates the current `/review autopilot`. So after an infra
outage (dnceng-public AzDO not queueing builds), re-commenting `/review
autopilot` could never retry the tests.

Now a stale incomplete run (last updated before the loop started)
requests `/review run-tests` again; an incomplete run produced during
the current loop still stops, so there is no retry loop.

Validation: replayed the stage decision against #40879's real test
comment; `gh aw compile maui-expert-autopilot` succeeds.

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

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it label Nov 30, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run and removed s/autopilot-needs-maintainer-decision MAUI Autopilot stopped: a maintainer needs to decide how to continue labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Selected Tests

Result NOT QUEUED Platforms Android, iOS, MacCatalyst, Windows Tests 1 UI, 2 device Commit 301b1128


🧪 Test selection — click to expand
Suite Result Selected Build
UI tests ❌ not queued 1 of 77 categories —
Device tests ❌ not queued 2 of 105 units —
🧪 UI tests — Animation on Android, iOS, MacCatalyst, Windows

❌ Could not queue maui-pr-uitests: Azure Pipelines did not start maui-pr-uitests for the dispatch branch run-tests/pr40710-46527586920 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-uitests for the full suite.

GPT-6.2 Sol: Run Animation UI tests on all four platforms for the shared zero-duration tween and synchronous completion fixes.
MAI Code 2: Shared Tweener and animation insertion fixes; runs Animation UI tests on all platforms.

🧪 Running — 1 category on Android, iOS, MacCatalyst, Windows

Platform Categories
Android Animation
iOS Animation
MacCatalyst Animation
Windows Animation
🧪 Device tests — Controls.Animations, Controls.Memory on Android, iOS, MacCatalyst, Windows

❌ Could not queue maui-pr-devicetests: Azure Pipelines did not start maui-pr-devicetests for the dispatch branch run-devicetests/pr40710-46527586920 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-devicetests for the full suite.

GPT-6.2 Sol: Run Controls animation and memory device tests on all four platforms for tween completion and cleanup.
MAI Code 2: Shared Controls animation/tweener behavior; runs Controls.Animations device tests on all platforms.

🧪 Running — 2 categories on Android, iOS, MacCatalyst, Windows

Platform Categories
Android Controls.Animations, Controls.Memory
iOS Controls.Animations, Controls.Memory
MacCatalyst Controls.Animations, Controls.Memory
Windows Controls.Animations, Controls.Memory
⏭️ Skipped — what neither suite runs

UI tests — 76 categories, 0 platforms

Categories not run: Accessibility, ActionSheet, ActivityIndicator, AppLinks, Border, BoxView, Brush, Button, CarouselView, 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 maui-pr-uitests (skipped) … status on this commit. Use /azp run maui-pr-uitests for the full suite.

Device tests — 103 categories, 0 platforms

Categories not run: Controls.Accessibility, Controls.Application, Controls.Behavior, Controls.Border, Controls.BoxView, Controls.Button, Controls.CarouselView, 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.MenuFlyout, Controls.Modal, Controls.NavigationPage, Controls.Page, Controls.PageTransitions, 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.Border, 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 maui-pr-devicetests (skipped) … status 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 Animation Animation
iOS Animation Animation
MacCatalyst Animation Animation
Windows Animation Animation

GPT-6.2 Sol — Run Animation UI tests on all four platforms for the shared zero-duration tween and synchronous completion fixes.

  • Tweener.cs fixes first-frame progress; AnimationExtensions.cs registers cleanup before Commit can finish inline. Both paths are shared.
  • No control, handler, or UI test infrastructure changed, so other UI categories are out of scope.

MAI Code 2 — Shared Tweener and animation insertion fixes; runs Animation UI tests on all platforms.

  • Tweener.cs changes zero-length animation progress for all platforms, so the Animation UI category runs across Android, iOS, Mac Catalyst, and Windows.
  • AnimationExtensions.cs changes shared animation commit/cleanup ordering, directly covered by the same Animation lane.
  • Unit-test-only changes add no UI test category beyond the shared animation behavior.
  • No unrelated control categories or full run are needed.

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 Controls.Animations, Controls.Memory Controls.Animations
iOS Controls.Animations, Controls.Memory Controls.Animations
MacCatalyst Controls.Animations, Controls.Memory Controls.Animations
Windows Controls.Animations, Controls.Memory Controls.Animations

GPT-6.2 Sol — Run Controls animation and memory device tests on all four platforms for tween completion and cleanup.

  • Tweener.cs changes shared animation completion, so select Controls.Animations on all platforms.
  • AnimationExtensions.cs prevents completed entries from remaining in the static tweener registry, so include Controls.Memory.
  • Platform tickers and Core handlers are unchanged.

MAI Code 2 — Shared Controls animation/tweener behavior; runs Controls.Animations device tests on all platforms.

  • Both production changes are in shared Controls animation code, so Controls.Animations is selected on every device-test platform.
  • Tweener zero-duration handling can affect property animations on every platform, including the reported Android crash path.
  • Core handler/Graphics/Essentials projects and unrelated Controls categories are not changed; a full run is unnecessary.

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

@github-actions github-actions Bot added s/autopilot-waiting-for-maintainer-review MAUI Autopilot finished: expert review clean and tests passed; waiting for maintainer review and removed s/autopilot-running MAUI Autopilot loop is running; remove this label to stop it s/autopilot-testing MAUI Autopilot: relevant UI/device tests are being selected or run labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

MAUI Autopilot — Ready for maintainer review

Results
Expert review No more findings on 301b112
Tests ⚠️ Could not run; re-run /review run-tests when CI is available
Review threads 1 resolved

@kubaflo
kubaflo changed the base branch from net11 to candidate/11.0.1xx-sr3 December 1, 2026 00:48
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo

kubaflo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Merged the latest SR3 candidate and resolved the conflicts. The candidate already contains the zero-length tween and synchronous cleanup fixes from #40719. This PR now adds regression coverage for ScaleToAsync, ScaleXToAsync, and ScaleYToAsync without duplicating the production fix.

@dalexsoto stamp

@kubaflo
kubaflo merged commit 3103a5e into dotnet:candidate/11.0.1xx-sr3 Dec 1, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution s/autopilot-waiting-for-maintainer-review MAUI Autopilot finished: expert review clean and tests passed; waiting for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants