VNG-Realisatie / api-test-platform

6 stars 3 forks source link

ZGW api tests op de referentiecomponenten geeft out of memory error in Newman #262

Closed stevenbal closed 5 years ago

stevenbal commented 5 years ago

Bug

Als ik de ZGW api provider tests op de referentiecomponenten probeer te testen via het test platform, duurt het erg lang en krijg ik uiteindelijk een error vanuit Newman

Traceback (most recent call last):   File  "/home/steven/Documents/VNG/api-test-platform-
code/src/vng/servervalidation/task.py",  line 95, in execute_test     file_json = 
nm.execute_test_json()   File  "/home/steven/Documents/VNG/api-test-platform-code/src
/vng/utils/newman.py",  line 72, in execute_test_json     raise DidNotRunException(error) 
vng.utils.newman.DidNotRunException: b'FATAL ERROR: CALL_AND_RETRY_LAST  
Allocation failed - JavaScript heap out of memory\n 1: node::Abort()  [node]\n 2: 
0x55e096812011 [node]\n 3: v8::Utils::ReportOOMFailure(char  const*, bool) [node]\n 4: 
v8::internal::V8::FatalProcessOutOfMemory(char  const*, bool) [node]\n 5:  
v8::internal::Factory::NewRawTwoByteString(int,  v8::internal::PretenureFlag) [node]\n 6:  
v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>,  
v8::internal::PretenureFlag) [node]\n 7: v8::String::WriteUtf8(char*,  int, int*, int) const [node]\n 
8: node::StringBytes::Write(v8::Isolate*,  char*, unsigned long, v8::Local<v8::Value>, 
node::encoding, int*)  [node]\n 9: node::Buffer::New(v8::Isolate*,  v8::Local<v8::String>, 
node::encoding) [node]\n10: 0x55e096837e46  [node]\n11: 
v8::internal::FunctionCallbackArguments::Call(void  (*)(v8::FunctionCallbackInfo<v8::Value> 
const&)) [node]\n12:  0x55e096190b62 [node]\n13: 0x55e0961910af [node]\n14:  
0x1f86c77040bd\nAborted (core dumped)\n'
stevenbal commented 5 years ago

It's working again on test (https://vng-test.maykin.nl/server/5d280086-5e08-4bcd-9be1-1ce04bca2da4/), still a lot of failing tests, but pull requests to fix these issues have been made for ZGW.