Harris Lee
07/20/2022, 12:32 AMpact v3 node 18 slim
container? It kept getting memory issue from 2gb so I had bumped up to 4gb, but still get some issues.
I did not face any issue with pact v2 with node 14 slim
from 2gb memory, all tests are running passed but getting memory error
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb65a10 node::Abort() [/usr/local/bin/node]
2: 0xa761b5 node::FatalError(char const*, char const*) [/usr/local/bin/node]
3: 0xd5713e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
4: 0xd574b7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
5: 0xf34545 [/usr/local/bin/node]
6: 0xf35448 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]
7: 0xf45953 [/usr/local/bin/node]
8: 0xf467c8 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
9: 0xf2112e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
10: 0xf224f7 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
11: 0xf02a40 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/local/bin/node]
12: 0xefa4b4 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [/usr/local/bin/node]
13: 0xefc768 v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [/usr/local/bin/node]
14: 0xf05d2d v8::internal::Factory::NewStringFromUtf8(v8::base::Vector<char const> const&, v8::internal::AllocationType) [/usr/local/bin/node]
15: 0xd661a3 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/usr/local/bin/node]
16: 0xbba616 v8::MaybeLocal<v8::Value> node::ToV8Value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(v8::Local<v8::Context>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, v8::Isolate*) [/usr/local/bin/node]
17: 0xc0f4b5 [/usr/local/bin/node]
18: 0xc1597a [/usr/local/bin/node]
19: 0x167e06f [/usr/local/bin/node]
Aborted (core dumped)
so I bumped up memory to 4gb but it still sometimes got error
spawn ENOMEM
at spawn (node_modules/cross-spawn/index.js:12:24)
at Spawn.Object.<anonymous>.Spawn.spawnBinary (node_modules/@pact-foundation/pact-core/src/spawn/spawn.ts:46:22)
at Server.Object.<anonymous>.AbstractService.spawnBinary (node_modules/@pact-foundation/pact-core/src/service.ts:245:18)
at Server.Object.<anonymous>.AbstractService.start (node_modules/@pact-foundation/pact-core/src/service.ts:165:28)
at node_modules/@pact-foundation/src/httpPact/index.ts:277:19
at Pact.Object.<anonymous>.Pact.startServer (node_modules/@pact-foundation/src/httpPact/index.ts:276:12)
at node_modules/@pact-foundation/src/httpPact/index.ts:94:24
The pact mock service wasn't running when verify was called
at Pact.Object.<anonymous>.Pact.verify (node_modules/@pact-foundation/src/httpPact/index.ts:145:9)
at Object.<anonymous> (node_modules/jest-pact/index.js:26:45)
anyone had same issue?Timothy Jones
07/20/2022, 1:28 AMHarris Lee
07/20/2022, 1:29 AMTimothy Jones
07/20/2022, 1:30 AMHarris Lee
07/20/2022, 1:30 AMTimothy Jones
07/20/2022, 1:31 AMHarris Lee
07/20/2022, 1:31 AMHarris Lee
07/20/2022, 1:31 AMHarris Lee
07/20/2022, 1:32 AMTimothy Jones
07/20/2022, 3:48 AMTimothy Jones
07/20/2022, 3:49 AMHarris Lee
07/20/2022, 5:05 AMproviderState
in v2?? any suggestion example?Timothy Jones
07/20/2022, 5:09 AMTimothy Jones
07/20/2022, 5:10 AMHarris Lee
07/20/2022, 5:10 AMHarris Lee
07/20/2022, 5:14 AM1
Timothy Jones
07/20/2022, 5:17 AMTimothy Jones
07/20/2022, 5:17 AMHarris Lee
07/20/2022, 5:18 AMHarris Lee
07/20/2022, 5:54 AMTimothy Jones
07/20/2022, 9:06 AMHarris Lee
07/20/2022, 10:32 PMHarris Lee
07/20/2022, 10:32 PMTimothy Jones
07/20/2022, 10:33 PMTimothy Jones
07/20/2022, 10:33 PMHarris Lee
07/20/2022, 10:38 PMHarris Lee
07/21/2022, 11:48 PMredis
from client code lol and it makes hang Jest lol thanks for your help Timothy 🙂Harris Lee
07/22/2022, 12:03 AMjest
issue lol, I had checked with node 16 , no issue lol https://github.com/facebook/jest/issues/7874 I think node 18 in Jest having an issue