canCreateTypedArrayWithNoCopy is skipped on every engine, not just QuickJS

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
android, cpp, ios, typescript
Domain
mobile, testing

Research direction

Start in valdi/test/integration/JSIntegrationTests.cpp: read the canCreateTypedArrayWithNoCopy test and the SKIP_IF_JSCORE / SKIP_IF_HERMES macros near the top of the file. Run bazel test //valdi:test_integration --test_filter='*canCreateTypedArrayWithNoCopy*' across the engines. Done when it passes on every engine, or skips only on QuickJS with a link to this issue while the QuickJS failure remains.

Written by the indexing model from the issue text.

Description

JSContextFixture.canCreateTypedArrayWithNoCopy in valdi/test/integration/JSIntegrationTests.cpp starts with

GTEST_SKIP() << "Test fails for QuickJS Only";

The skip has no condition, so the test is skipped on every engine, not only QuickJS.

What to do:

  1. Replace the unconditional skip with a QuickJS-only one, using the same pattern as the SKIP_IF_JSCORE / SKIP_IF_HERMES macros at the top of the file, and confirm the test passes on the other engines.
  2. Fix the QuickJS failure, then remove the skip.

How to run

bazel test //valdi:test_integration --test_filter='*canCreateTypedArrayWithNoCopy*'

Done when: the test runs and passes on every engine, or is skipped only on QuickJS with a link to this issue until step 2 is done.

See CONTRIBUTING.md before opening a pull request.

Dominant language
C++
Stars
16.4k
Forks
539
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Snapchat/Valdi

All issues in Snapchat/Valdi

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.