Tests time-out instead of failing when exceptions thrown during layout pass
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- csharp
- Domaine
- testing-qa
Piste de recherche
Commencez par reproduire l’échec avec une exception pendant Measure ou Arrange, en utilisant soit UIThreadTestMethod, soit la séquence TestMethod, EnqueueAsync, LoadTestContentAsync et UnloadTestContentAsync. Comparez le comportement après avoir rétabli Fix: DockPanel measure fix #618. La tâche est terminée lorsque les exceptions de layout sont interceptées et signalées par les tests au lieu de provoquer un timeout, avec une couverture de régression pour le chemin en échec.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C#
- Étoiles
- 57
- Forks
- 20
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommunityToolkit/Tooling-Windows-Submodule
-
Running WASM on All Solution Doesn't work in VSPeut-être à nouveau libre @Arlodotexe l’a pris il y a 245 jours, et aucune pull request n’est ouverte. Ouvertebug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 commentaires · 1 personne assignée ·
-
GenerateAllSolution with only wasm target won't buildPeut-être à nouveau libre @Arlodotexe l’a pris il y a 245 jours, et aucune pull request n’est ouverte. Ouvertebug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 commentaire · 1 personne assignée ·
-
bug :bug:
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 scriptPeut-être à nouveau libre @Arlodotexe l’a pris il y a 597 jours, et aucune pull request n’est ouverte. Ouvertedocumentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 1 personne assignée ·
-
Add dotnet 8 support back to Uno TFMsPeut-être à nouveau libre @Arlodotexe l’a pris il y a 620 jours, et aucune pull request n’est ouverte. Ouvertebuild :fire: enhancement nuget :package: Uno
CommunityToolkit/Tooling-Windows-Submodule#274 · 3 commentaires · 1 réaction · 1 personne assignée ·
Toutes les issues de CommunityToolkit/Tooling-Windows-Submodule
Issues similaires
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itOuvertearea: core bug help wanted ready
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ZaidX88/sluice#265 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area: remote bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Install a C# EnvironmentOuverte📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
A: Mapping P3: Standard T: New Feature
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
space-wizards/space-station-14#46878 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour