Tests time-out instead of failing when exceptions thrown during layout pass
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- csharp
- Bereich
- testing-qa
Rechercherichtung
Beginne damit, den Fehler mit einer Ausnahme während Measure oder Arrange zu reproduzieren, indem du entweder UIThreadTestMethod oder die Abfolge aus TestMethod, EnqueueAsync, LoadTestContentAsync und UnloadTestContentAsync verwendest. Vergleiche das Verhalten nach dem Zurücksetzen von Fix: DockPanel measure fix #618. Die Aufgabe ist erledigt, wenn Layout-Ausnahmen von den Tests abgefangen und gemeldet werden, statt einen Timeout zu verursachen, und eine Regressionstestabdeckung für den fehlschlagenden Pfad vorhanden ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C#
- Sterne
- 57
- Forks
- 20
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CommunityToolkit/Tooling-Windows-Submodule
-
Running WASM on All Solution Doesn't work in VSEvtl. wieder frei @Arlodotexe hat das vor 245 Tagen übernommen, und es ist kein Pull Request offen. Offenbug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 Kommentare · 1 zugewiesene Person ·
-
GenerateAllSolution with only wasm target won't buildEvtl. wieder frei @Arlodotexe hat das vor 245 Tagen übernommen, und es ist kein Pull Request offen. Offenbug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 Kommentar · 1 zugewiesene Person ·
-
bug :bug:
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 scriptEvtl. wieder frei @Arlodotexe hat das vor 597 Tagen übernommen, und es ist kein Pull Request offen. Offendocumentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 1 zugewiesene Person ·
-
Add dotnet 8 support back to Uno TFMsEvtl. wieder frei @Arlodotexe hat das vor 620 Tagen übernommen, und es ist kein Pull Request offen. Offenbuild :fire: enhancement nuget :package: Uno
CommunityToolkit/Tooling-Windows-Submodule#274 · 3 Kommentare · 1 Reaktion · 1 zugewiesene Person ·
Alle Issues in CommunityToolkit/Tooling-Windows-Submodule
Ähnliche Issues
-
area: core bug help wanted ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ZaidX88/sluice#265 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: remote bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Install a C# EnvironmentOffen📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
A: Mapping P3: Standard T: New Feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
space-wizards/space-station-14#46878 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag