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

Đang mở
#228 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, javascript
Lĩnh vực
mobile, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
16.4k
Fork
539
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Snapchat/Valdi

Tất cả issue của Snapchat/Valdi

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.