Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unstable results #1814

Closed
6 tasks done
Sepush opened this issue Aug 7, 2022 · 4 comments
Closed
6 tasks done

unstable results #1814

Sepush opened this issue Aug 7, 2022 · 4 comments

Comments

@Sepush
Copy link

Sepush commented Aug 7, 2022

Describe the bug

I try to migrate naive-ui test from jest to vitest
now I can run pnpm test for every single component and won't get error
but If i run pnpm test for the whole project will get V8 error

#
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 000000F96E0FE360
 1: 00007FF687FE7B7F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+114079
 2: 00007FF687F025AF std::basic_ostream<char,std::char_traits<char> >::operator<<+65023
 3: 00007FF688BE2772 V8_Fatal+162
 4: 00007FF68864DAED v8::internal::BackingStore::Reallocate+637
 5: 00007FF688897269 v8::ArrayBuffer::GetBackingStore+137
 6: 00007FF687E33C6D std::vector<v8::internal::compiler::MoveOperands * ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * ptr64> >::empty+92797
 7: 00007FF687F9021E v8::internal::Malloced::operator delete+5118
 8: 00007FF688865C76 v8::internal::Builtins::code_handle+172790
 9: 00007FF688865869 v8::internal::Builtins::code_handle+171753
10: 00007FF688865B2C v8::internal::Builtins::code_handle+172460
11: 00007FF688865990 v8::internal::Builtins::code_handle+172048
12: 00007FF688939091 v8::internal::SetupIsolateDelegate::SetupHeap+494673
13: 000002836E23AE4B

if I run pnpm test:update for the whole project it won't get error
vitest-naive

on my friend m1 pro max mbp run all test for the project it sometimes pass sometimes V8 error
the results is so Inconsistent.
I think there are something wrong with tiny pool.
and on the ci It will report a error

Serialized Error: {
  "errors": [
    [AssertionError: expected "spy" to be called at least once],
  ],
}

https://github.com/TuSimple/naive-ui/runs/7710271807?check_suite_focus=true
It's too confusing so I try to looking for help.

Reproduction

https://github.com/Sepush/naive-ui/tree/vi

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
    Memory: 833.58 MB / 7.89 GB
  Binaries:
    Node: 16.14.0 - ~\AppData\Local\fnm_multishells\6948_1659584657685\node.EXE
    Yarn: 1.22.15 - ~\AppData\Local\fnm_multishells\6948_1659584657685\yarn.CMD
    npm: 8.3.1 - ~\AppData\Local\fnm_multishells\6948_1659584657685\npm.CMD
  Browsers:
    Chrome: 103.0.5060.134
    Edge: Spartan (44.19041.1266.0), Chromium (103.0.1264.77)
  npmPackages:
    vitest: ^0.20.3 => 0.20.3

Used Package Manager

pnpm

Validations

@sheremet-va
Copy link
Member

Duplicate of #1191

@sheremet-va sheremet-va marked this as a duplicate of #1191 Aug 7, 2022
@sheremet-va sheremet-va closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2022
@Sepush
Copy link
Author

Sepush commented Aug 7, 2022

Duplicate of #1191

for the crash it's duplicate.
but how about unstable error have in ci but did not happen when I run test for every single component on my computer.
It made me unable to debug for this.

@Sepush
Copy link
Author

Sepush commented Aug 7, 2022

@sheremet-va I use node 18.7.0 on my computer It works all test pass
but on the ci still get an error and did not figure out Which test file test case failed
It's hard to debug I think this is something need improve

https://github.com/TuSimple/naive-ui/runs/7710763851?check_suite_focus=true
image

@sheremet-va
Copy link
Member

sheremet-va commented Aug 7, 2022

but on the ci still get an error and did not figure out Which test file test case failed

Update to 0.21.0 to see stack trace. There was an error that didn't show it

@github-actions github-actions bot locked and limited conversation to collaborators Jun 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants