Re-enable canLockAllJSContexts in Runtime_tests.cpp

Abierto
#227 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, typescript

Línea de trabajo

Start with valdi/test/integration/Runtime_tests.cpp and the standalone test host that creates the root JS runtime. Trace how lockAllJSContexts dispatches to worker runtimes and where synchronous main-thread-to-worker dispatch is rejected. Choose one of the two approaches in the issue, remove the DISABLED_ prefix, then run the focused test and full //valdi:test_integration target.

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

Descripción

RuntimeFixture.DISABLED_canLockAllJSContexts in valdi/test/integration/Runtime_tests.cpp is disabled because it aborts the whole test binary.

The standalone test runtime runs the root JS runtime on the test's main thread. lockAllJSContexts synchronously locks every worker runtime, and the runtime forbids a synchronous dispatch from the main thread to a worker, so the call aborts.

What to do, either:

  • Run the root JS runtime off the main thread in the standalone test host, or
  • Make lockAllJSContexts lock worker runtimes without a synchronous main-thread-to-worker dispatch.

Then remove the DISABLED_ prefix.

How to run

bazel test //valdi:test_integration --test_filter='*canLockAllJSContexts*' --test_arg=--gtest_also_run_disabled_tests

Done when: the test runs without DISABLED_ and the full //valdi:test_integration target passes.

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.