Fix the 2 promise tests skipped on JavaScriptCore and Hermes in Runtime_tests.cpp

Abierto
#228 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp, javascript
Área
mobile, testing

Línea de trabajo

Start with the skip conditions and the two named tests in valdi/test/integration/Runtime_tests.cpp, then run the provided Bazel command repeatedly on macOS JavaScriptCore and the affected engines. Trace the promise polyfill behavior for the race and unhandled rejection cases. Done when neither test is skipped on an engine where it can pass and both pass repeatedly.

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

Descripción

Two tests in valdi/test/integration/Runtime_tests.cpp are skipped on some engines because of the promise polyfill:

Test Skipped on Reason in the code
supportsPromiseCallWithPromiseParametersStepByStep JavaScriptCore Racy with the promise polyfill used on Linux JavaScriptCore
supportsUnhandledRejectionHandler JavaScriptCore, Hermes Doesn't work with the promise polyfill on Linux JavaScriptCore and on Hermes

The skips check only the engine, so they also apply to JavaScriptCore on macOS, where the Linux polyfill isn't used.

What to do, for each test:

  • Check whether it passes on macOS JavaScriptCore. If it does, narrow the skip to the polyfill case.
  • Fix the race or the missing unhandled-rejection support in the polyfill, then remove the skip.

How to run

bazel test //valdi:test_integration --test_filter='*supportsPromiseCallWithPromiseParametersStepByStep*:*supportsUnhandledRejectionHandler*' --runs_per_test=20

Done when: neither test is skipped on an engine where it can pass, and both pass repeatedly.

See CONTRIBUTING.md before opening a pull request.

Lenguaje dominante
C++
Estrellas
16.4k
Forks
539
Métricas de merge de PR
Sin PR fusionados en 30 d

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 Snapchat/Valdi

Todos los issues de Snapchat/Valdi

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.