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

Aperta
#228 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp, javascript
Ambito
mobile, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
16.4k
Fork
539
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Snapchat/Valdi

Tutte le issue di Snapchat/Valdi

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.