Skip to content

WinUI runtime tests fail on master: RTF stream tests and When_MouseMove #26204

Closed

Description

@MartinZikmund

Current behavior 🐛

The WinUI Runtime Tests leg is failing on master, in two unrelated ways:

  1. Since fix(sdk)!: Bundle WinAppSDK only in unpackaged heads #26106: Given_RichEditBox.When_Empty_Document_Rtf_Stream_Has_Native_Null_Terminator and When_Rtf_Stream_Save_Uses_Byte_Rtf_And_Restores_Position fail on every run. SamplesApp's MSIX became framework-dependent with MinVersion="2.4.0.0", so it binds to the newest runtime on the agent (Microsoft.WindowsAppRuntime.2_2.6.4.0), not the referenced 2.4.0. That runtime's RichEdit inverts the trailing NUL of RTF output.
  2. Flaky before that too: Given_InputInjector.When_MouseMove_PointerEventsAreRaised fails intermittently. WinUI coalesces injected moves, and the first update over an element raises only PointerEntered, so PointerMoved is sometimes never raised.

Expected behavior 🎯

WinUI runtime tests run against the Windows App SDK version the repo references, and the mouse test passes deterministically.

How to reproduce it (as minimally and precisely as possible) 🔬

See build 244529 (master, 3 failures) against 244524 (the previous master build, 0 failures), or run the tests with /winui-runtime-tests on a machine with a newer Windows App Runtime installed.

Workaround 🛠️

None needed beyond re-running for the flaky test. The RTF failures don't go away on re-run.

Affected platforms 📱💻🖥️

Desktop (Windows), WinAppSDK runtime tests only

Renderer 🎨

Not applicable

Uno.SDK version (and other relevant versions) 📦

master at 1f84af6, Microsoft.WindowsAppSDK 2.4.0

Anything else we need to know? 💬

Not a product bug. The helper scaling problem found along the way is tracked in #25012.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions