Flaky: NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly

Abierto
#259 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, testing-qa
Área
testing

Línea de trabajo

Start with NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly and the recorder it drives, which assembles method and URL from CDP events; the failure is that requestWillBeSent can arrive after the response, so the fallback defaults get recorded. Run the test in a loop to reproduce the roughly 1-in-5 failure. Done when the method and URL survive out-of-order events, or the test waits for both events, and it passes 20 out of 20 runs locally.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Fails about 1 run in 5 locally on unmodified master (2a07bba), with Chrome reporting CDP 157 while Selenium tops out at 156.

When it fails, the /fail request (a POST in the page) is recorded as GET ... 500, and a GET (unknown) 0 net::ERR_CONNECTION_REFUSED entry has no URL, so the method and URL assertions miss:

[GET http://127.0.0.1:<port>/fail 500 null, GET (unknown) 0 net::ERR_CONNECTION_REFUSED, GET http://127.0.0.1:<port>/missing 404 null]

This looks like CDP events for the same request arriving out of order (the response before requestWillBeSent), so the recorder falls back to defaults. Found while verifying #254, which doesn't touch tracing.

Done when: the recorder keeps the method and URL when events arrive out of order, or the test waits for the events properly, and the test passes 20/20 locally.

Lenguaje dominante
Java
Estrellas
12
Forks
6
Merge medio
10 h
PR fusionados (30 d)
76

Preparar el entorno

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 seleniumboot/selenium-boot

Todos los issues de seleniumboot/selenium-boot

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.