Tests time-out instead of failing when exceptions thrown during layout pass
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- testing-qa
调研方向
首先,通过在 Measure 或 Arrange 期间引发异常来复现失败,使用 UIThreadTestMethod,或使用 TestMethod、EnqueueAsync、LoadTestContentAsync 和 UnloadTestContentAsync 的序列。比较 revert Fix: DockPanel measure fix #618 后的行为。完成的标准是,layout exceptions 由测试捕获并报告,而不是导致 timeout,并且为失败路径提供回归覆盖。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Background
This was found while investigating Fix: DockPanel measure fix #618
Problem
If an exception is thrown during a XAML measure pass, the tests stall out and do not report the answer.
This seems to happen whether using the [UIThreadTestMethod] attribute from our TestGen tooling or when using [TestMethod], EnqueueAsync, LoadTestContentAsync and UnloadTestContentAsync piecemeal. The effect is the same.
Solution
This needs investigation and fixing. It's not helpful to simply time out when a control throws during a layout or measure pass, and it can become an active problem if unexpected errors aren't being bubbled up to CI.
Steps to reproduce
This can be reproduced by throwing an exception during the `Measure` or `Arrange` pass while running in a unit test.
This can either be set up manually for a long-term repro, or it can be temporarily reintroduced by reverting https://github.com/CommunityToolkit/Windows/pull/618 and running.
Expected behavior
Tests should catch exceptions thrown during XAML layout and bubble them up instead of timing out.
Screenshots
No response
Code Platform
- UWP
- WinAppSDK / WinUI 3
- Web Assembly (WASM)
- Android
- iOS
- MacOS
- Linux / GTK
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.
- 主要语言
- C#
- 星标
- 57
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommunityToolkit/Tooling-Windows-Submodule 的其他 Issue
-
Running WASM on All Solution Doesn't work in VS可能重新可做 @Arlodotexe 于 245 天前认领,目前没有进行中的 PR。 未关闭bug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 条评论 · 已指派 1 人 ·
-
GenerateAllSolution with only wasm target won't build可能重新可做 @Arlodotexe 于 245 天前认领,目前没有进行中的 PR。 未关闭bug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 条评论 · 已指派 1 人 ·
-
bug :bug:
难度 2/5 1-3 小时 新手友好度 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 script可能重新可做 @Arlodotexe 于 597 天前认领,目前没有进行中的 PR。 未关闭documentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 已指派 1 人 ·
-
Add dotnet 8 support back to Uno TFMs可能重新可做 @Arlodotexe 于 620 天前认领,目前没有进行中的 PR。 未关闭build :fire: enhancement nuget :package: Uno
CommunityToolkit/Tooling-Windows-Submodule#274 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
查看 CommunityToolkit/Tooling-Windows-Submodule 的全部 Issue
相似的 Issue
-
要トリアージ
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
unoplatform/uno#26709 ·
维护者通常 1 天内回复
-
area-Tools-ILLink untriaged
难度 1/5 1 小时以内 新手友好度 82/100
dotnet/runtime#138255 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
area-fundamentals bug untriaged
难度 2/5 1-3 小时 新手友好度 75/100
dotnet/extensions#7979 ·
维护者通常 1 天内回复