Skip to content

test(e2e): measure the idle 3D globe only after the page rests - #610

Merged
Dreamcoder08 merged 1 commit into
mainfrom
fix/territorio-idle-guard
Nov 22, 2026
Merged

Dreamcoder08 merged 1 commit into
mainfrom
fix/territorio-idle-guard

Conversation

@Dreamcoder08

Copy link
Copy Markdown
Owner

Qué cambia

Antes: la guardia e2e de Territorio (T9) fallaba al azar en main, y con main en rojo Deploy Workers queda en skipped.

Después: la guardia mide el 3D quieto recién cuando la página pasó un segundo entero sin tareas largas.

Por qué

Después de avisar que terminó de cargar, el relieve sigue refinando algunos frames. En el runner de CI cada frame cuesta de 300 a 400 ms, así que esos frames se pasaban de la espera fija de 1 s: main falló dos veces seguidas (corridas 45073984924 y 45080755271, con tareas de [335, 315, 303] y [396, 404] ms), mientras los mismos commits pasaban en sus PR. Regla de sipges-e2e-stabilize: medir en reposo esperando un estado, no un tiempo fijo.

Cómo se probó

  • Con requestRenderMode: false (el congelamiento original de T9) la guardia sigue fallando, ahora con «the page never rests».
  • 20 de 20 repeticiones pasan con 2 workers (chromium); typecheck, prettier y eslint limpios.
  • Solo datos sintéticos; sin datos reales ni despliegue.

The relief refines for a few frames after it reports loaded. On a slow CI runner each frame takes
300-400 ms, and those frames outlasted the fixed one-second wait, failing main twice (runs
45073984924 and 45080755271: idle 3D long tasks [335, 315, 303] and [396, 404] ms) while the same
commits passed on their pull requests.

The guard now waits for a full second without a long task before measuring. A globe that
re-renders every frame never rests, so the old freeze still fails it, now with "the page never
rests" (checked by turning requestRenderMode off). 20 of 20 repeats pass with 2 workers.
@Dreamcoder08
Dreamcoder08 marked this pull request as ready for review November 22, 2026 23:35
@Dreamcoder08
Dreamcoder08 merged commit 49a8249 into main Nov 22, 2026
22 checks passed
@Dreamcoder08
Dreamcoder08 deleted the fix/territorio-idle-guard branch November 22, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant