Bmotion's layout animation E2E test reads frames the runner didn't draw as a jump

Abierto
#15,619 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@msynk ya está trabajando en esto.

Desde el 4/12/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

LayoutTests.ALayoutAnimation_StartsFromTheElementsOwnTransform (src/Utilities/Bmotion/Tests/Bit.Bmotion.Tests.E2E/LayoutTests.cs) failed in "Bmotion E2E - auto-noprerender (net11.0)" of All Utilities E2E CI run 47434198193, while the other 167 tests passed:

The layout animation jumped: 0, 0, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 38, 19, 38, 57, 0, 0, 0, 0, 0, 0, 0
Assert.IsTrue(jumps.All(j => j < Math.Max(45, typical * 1.8)))

Cause. The test samples the box's left edge in a requestAnimationFrame loop (SampleAsync) and fails on any step between two samples longer than 45px. The box's FLIP is a Web Animation, a linear 0.3s tween over 340px (Layout.razor): 18.9px per 16.7ms frame, 18 frames. The run above saw 14 moving samples, and its 38, 38 and 57 are exactly two, two and three of those 19px steps - the four frames the sampler missed. The box moved exactly as its tween says; the sampler ran less often than the frames did, so one sample carried three frames' travel.

Fix. The test samples on the document timeline (SampleOnTheTimelineAsync, which now records the left edge too) and shares each step out over the whole frames the timeline says it spans, at least one, before the same bound as before (45px, or 1.8 times the typical step). A missed frame no longer reads as a jump, and nothing passes that the former check failed when the sampler ran every frame: a 50px jump when the FLIP starts, or a flash at the new place, still fails.

Earlier Bmotion E2E failures on develop and the night branches (2026-11-26, 2026-12-01) were other tests (#15581, RetargetedSpring_CarriesItsVelocity); this one is new tonight.

Lenguaje dominante
C#
Estrellas
1.4k
Forks
264
Merge medio
5 h 25 min
PR fusionados (30 d)
447

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bitfoundation/bitplatform

Todos los issues de bitfoundation/bitplatform

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.