Skip to content

test: re-enable nan test: typedarrays-test.js - #29028

Closed
ckerr wants to merge 6 commits into
mainfrom
reenable-nan-test-typedarrays-test.js
Closed

ckerr wants to merge 6 commits into
mainfrom
reenable-nan-test-typedarrays-test.js

Conversation

@ckerr

@ckerr ckerr commented May 5, 2021 •

Copy link
Copy Markdown
Member

Fixes #28414 by copying some of the relevant build args from Electron into our nan test runner.

WIP. This fixes typedarrays-test.js for me locally on Linux but breaks other tests, so this is still a work in progress. I think this has the includes right but needs to make changes to the linker too. Pushed to a PR to see what CI thinks this does on other platforms.

CC @clavin. Also h/t @MarshallOfSound for pointing me at #25561 as a starting point.

Release Notes

Notes: none

@ckerr
ckerr marked this pull request as draft May 5, 2021 18:57
@ckerr

ckerr commented May 5, 2021

Copy link
Copy Markdown
Member Author

Oh I'm already seeing problems with this. Will push again once I've solved the local side-effects.

@clavin

clavin commented May 11, 2021 •

Copy link
Copy Markdown
Member

We'll have to figure out why clang++ couldn't be found in the linux tests causing those to fail. On my local machine, here's the test results of the current changes:

  • ✅ typedarrays-test.js passes
  • ❌ methodswithdata-test.js now fails:
    • [...]/src/out/Testing/electron: symbol lookup error: [...]/src/third_party/nan/test/build/Release/methodswithdata.node: undefined symbol: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm
      
  • ❌ news-test.js now fails:
    • [...]/src/out/Testing/electron: symbol lookup error: [...]/src/third_party/nan/test/build/Release/news.node: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_
      
  • ❌ strings-test.js now fails:
    • #
      # Fatal error in ../../v8/src/objects/string.h, line 479
      # Debug check failed: IsAligned(reinterpret_cast<Address>(chars), sizeof(uc16)).
      #
      #
      #
      #FailureMessage Object: 0x7ffd72e0ce50
       [...]
       4: 0x56376b73b818 v8::internal::Factory::NewStringFromTwoByte(unsigned short const*, int, v8::internal::AllocationType) [[...]/src/out/Testing/electron]
       5: 0x56376b4ba3cd v8::String::NewFromTwoByte(v8::Isolate*, unsigned short const*, v8::NewStringType, int) [[...]/src/out/Testing/electron]
       [...]
       8: 0x563772723eb7 node::Encode(v8::Isolate*, unsigned short const*, unsigned long) [[...]/src/out/Testing/electron]
       9: 0x7f8ee125f4f5 EncodeUCS2(Nan::FunctionCallbackInfo<v8::Value> const&) [[...]/src/third_party/nan/test/build/Release/strings.node]
       [...]
      

@clavin

clavin commented May 11, 2021 •

Copy link
Copy Markdown
Member

Interesting note: if I add -D_LIBCPP_ABI_UNSTABLE then I get a slightly different set of test failures:

  • ❌ methodswithdata-test.js still fails:
    • [...]/src/out/Testing/electron: symbol lookup error: [...]/src/third_party/nan/test/build/Release/methodswithdata.node: undefined symbol: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm
      
  • ✅ news-test.js passes
    • 🤔 This is interesting because the error in my previous comment seems closely related to the one in methodswithdata-test.js, however that one still fails while this one now passes?
  • ❌ strings-test.js still fails:
    • #
      # Fatal error in ../../v8/src/objects/string.h, line 479
      # Debug check failed: IsAligned(reinterpret_cast<Address>(chars), sizeof(uc16)).
      #
      #
      #
      #FailureMessage Object: 0x7ffd72e0ce50
       [...]
       4: 0x56376b73b818 v8::internal::Factory::NewStringFromTwoByte(unsigned short const*, int, v8::internal::AllocationType) [[...]/electron/src/out/Testing/electron]
       5: 0x56376b4ba3cd v8::String::NewFromTwoByte(v8::Isolate*, unsigned short const*, v8::NewStringType, int) [[...]/electron/src/out/Testing/electron]
       [...]
       8: 0x563772723eb7 node::Encode(v8::Isolate*, unsigned short const*, unsigned long) [[...]/electron/src/out/Testing/electron]
       9: 0x7f8ee125f4f5 EncodeUCS2(Nan::FunctionCallbackInfo<v8::Value> const&) [[...]/electron/src/third_party/nan/test/build/Release/strings.node]
       [...]
      
  • ❌ typedarrays-test.js fails:
    • #
      # Fatal error in ../../v8/src/objects/tagged-impl.h, line 92
      # Debug check failed: kCanBeWeak || (!IsSmi() == (((static_cast<i::Tagged_t>(ptr_) & ::i::kHeapObjectTagMask) == ::i::kHeapObjectTag))).
      #
      #
      #
      #FailureMessage Object: 0x7ffe38f2fdf0
       [...]
       4: 0x5622b729fce0 v8::ArrayBuffer::GetBackingStore() [[...]/src/out/Testing/electron]
       5: 0x7f1a5f1dc929 Nan::TypedArrayContents<unsigned char>::TypedArrayContents(v8::Local<v8::Value>) [[...]/src/third_party/nan/test/build/Release/typedarrays.node]
       6: 0x7f1a5f1dc3a9 ReadU8(Nan::FunctionCallbackInfo<v8::Value> const&) [[...]/src/third_party/nan/test/build/Release/typedarrays.node]
       [...]
      
    • Note: This error looks very familiar

jkleinsc added a commit that referenced this pull request May 13, 2021
This test should be renabled once #29028 lands
@VerteDinde
VerteDinde force-pushed the reenable-nan-test-typedarrays-test.js branch from c04d6f2 to 8985c45 Compare May 13, 2021 20:38
@VerteDinde
VerteDinde force-pushed the reenable-nan-test-typedarrays-test.js branch from 8985c45 to 2ea834b Compare May 13, 2021 20:42
jkleinsc added a commit that referenced this pull request May 14, 2021
* chore: bump chromium in DEPS to 92.0.4500.2

* resolve conflicts

* update patches

* chore: cherry-pick 82434206f306 from chromium (#29060)

* fix patch

* chore: bump chromium in DEPS to 92.0.4501.0

* chore: bump chromium in DEPS to 92.0.4502.0

* chore: bump chromium in DEPS to 92.0.4503.0

* chore: update patches

* 2869869: [Code Health] Refactor ListValue::Insert in gpu compositor

https://chromium-review.googlesource.com/c/chromium/src/+/2869869

* 2877924: Separate InkDropHost from InkDropHostView

https://chromium-review.googlesource.com/c/chromium/src/+/2877924

* chore: bump chromium in DEPS to 92.0.4504.0

* update patches

* Fixup for Separate InkDropHost from InkDropHostView

https://chromium-review.googlesource.com/c/chromium/src/+/2877924

* 2873469: Compute hashes of .pak files during the build, and check it at runtime.

https://chromium-review.googlesource.com/c/chromium/src/+/2873469

* 2874397: Remove flag to disable microtasks scope consistency checks

https://chromium-review.googlesource.com/c/v8/v8/+/2874397

* 2881471: Remove unneeded trace_event.h includes in headers.

https://chromium-review.googlesource.com/c/chromium/src/+/2881471

* 2844717: [Keyboard Tooltip] Rename RWHV*::SetTooltipText to UpdateTooltipUnderCursor

https://chromium-review.googlesource.com/c/chromium/src/+/2844717

* chore: bump chromium in DEPS to 92.0.4505.0

* chore: update patches

* 2883887: Retire ScopedObserver in /chrome/browser/predictors.

https://chromium-review.googlesource.com/c/chromium/src/+/2883887

* 2883694: Retire ScopedObserver in /chrome/browser.

https://chromium-review.googlesource.com/c/chromium/src/+/2883694

* fixup after merge

* fixup: Remove flag to disable microtasks scope consistency checks

* Temporarily disable setcallhandler-test.js nan test

This test should be renabled once #29028 lands

* Use gin_helper::MicrotasksScope instead of v8::MicrotasksScope

* chore: bump chromium in DEPS to 92.0.4506.0

* update patches

* Revert "update patches"

This reverts commit 333ec0d.

* Revert "chore: bump chromium in DEPS to 92.0.4506.0"

This reverts commit 2bd52f8.

* Fixup: Use gin_helper::MicrotasksScope instead of v8::MicrotasksScope

* Fixup: Use gin_helper::MicrotasksScope instead of v8::MicrotasksScope

Co-authored-by: Jeremy Rose <[email protected]>
Co-authored-by: Jeremy Rose <[email protected]>
Co-authored-by: John Kleinschmidt <[email protected]>
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
@zcbenz zcbenz added the wip ⚒ label Sep 23, 2021
@miniak

miniak commented Feb 16, 2022

Copy link
Copy Markdown
Contributor

This is already merged as #29281

@miniak miniak closed this Feb 16, 2022
@miniak
miniak deleted the reenable-nan-test-typedarrays-test.js branch February 16, 2022 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-enable nan test: typedarrays-test.js

5 participants