vsts build - TFS 2017 Run Functional Tests runns in OutOfMemoryException (no results saved) -
i have test run around 280 tests. of thos 237 tests executed (the rest skiped). test executed run functional tests , run on singel machine. after run completed.
but tfs never shows results, because there outofmemory exception. logs assume happens while transmitting test results.
dtaexecutionhost.exe error: 0 : executiontaskstatemodel.executetask: recived error while executing task: system.aggregateexception: 1 or more errors occurred. ---> system.outofmemoryexception: exception of type 'system.outofmemoryexception' thrown. @ system.io.memorystream.set_capacity(int32 value) @ system.io.memorystream.ensurecapacity(int32 value) @ system.io.memorystream.write(byte[] buffer, int32 offset, int32 count) @ system.net.http.httpcontent.limitmemorystream.write(byte[] buffer, int32 offset, int32 count) @ system.io.streamwriter.flush(boolean flushstream, boolean flushencoder) @ system.io.streamwriter.write(char[] buffer, int32 index, int32 count) @ newtonsoft.json.utilities.javascriptutils.writeescapedjavascriptstring(textwriter writer, string s, char delimiter, boolean appenddelimiters, boolean[] charescapeflags, stringescapehandling stringescapehandling, iarraypool`1 bufferpool, char[]& writebuffer) @ newtonsoft.json.jsontextwriter.writeescapedstring(string value, boolean quote) @ newtonsoft.json.jsontextwriter.writevalue(string value) @ newtonsoft.json.jsonwriter.writevalue(jsonwriter writer, primitivetypecode typecode, object value) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializeprimitive(jsonwriter writer, object value, jsonprimitivecontract contract, jsonproperty member, jsoncontainercontract containercontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializevalue(jsonwriter writer, object value, jsoncontract valuecontract, jsonproperty member, jsoncontainercontract containercontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializeobject(jsonwriter writer, object value, jsonobjectcontract contract, jsonproperty member, jsoncontainercontract collectioncontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializevalue(jsonwriter writer, object value, jsoncontract valuecontract, jsonproperty member, jsoncontainercontract containercontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serialize(jsonwriter jsonwriter, object value, type objecttype) @ newtonsoft.json.jsonserializer.serializeinternal(jsonwriter jsonwriter, object value, type objecttype) @ system.net.http.formatting.basejsonmediatypeformatter.writetostream(type type, object value, stream writestream, encoding effectiveencoding) @ system.net.http.formatting.jsonmediatypeformatter.writetostream(type type, object value, stream writestream, encoding effectiveencoding) @ system.net.http.formatting.basejsonmediatypeformatter.writetostream(type type, object value, stream writestream, httpcontent content) @ system.net.http.formatting.basejsonmediatypeformatter.writetostreamasync(type type, object value, stream writestream, httpcontent content, transportcontext transportcontext, cancellationtoken cancellationtoken) --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ system.runtime.compilerservices.taskawaiter.validateend(task task) @ microsoft.visualstudio.services.common.vsshttpmessagehandler.<sendasync>d__17.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\common\vsshttpmessagehandler.cs:line 206 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.common.vsshttpretrymessagehandler.<sendasync>d__4.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\common\vsshttpretrymessagehandler.cs:line 91 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__48.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 818 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__45`1.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 721 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__27`1.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 0 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__26`1.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 0 --- end of inner exception stack trace --- ---> (inner exception #0) system.outofmemoryexception: exception of type 'system.outofmemoryexception' thrown. @ system.io.memorystream.set_capacity(int32 value) @ system.io.memorystream.ensurecapacity(int32 value) @ system.io.memorystream.write(byte[] buffer, int32 offset, int32 count) @ system.net.http.httpcontent.limitmemorystream.write(byte[] buffer, int32 offset, int32 count) @ system.io.streamwriter.flush(boolean flushstream, boolean flushencoder) @ system.io.streamwriter.write(char[] buffer, int32 index, int32 count) @ newtonsoft.json.utilities.javascriptutils.writeescapedjavascriptstring(textwriter writer, string s, char delimiter, boolean appenddelimiters, boolean[] charescapeflags, stringescapehandling stringescapehandling, iarraypool`1 bufferpool, char[]& writebuffer) @ newtonsoft.json.jsontextwriter.writeescapedstring(string value, boolean quote) @ newtonsoft.json.jsontextwriter.writevalue(string value) @ newtonsoft.json.jsonwriter.writevalue(jsonwriter writer, primitivetypecode typecode, object value) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializeprimitive(jsonwriter writer, object value, jsonprimitivecontract contract, jsonproperty member, jsoncontainercontract containercontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializevalue(jsonwriter writer, object value, jsoncontract valuecontract, jsonproperty member, jsoncontainercontract containercontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializeobject(jsonwriter writer, object value, jsonobjectcontract contract, jsonproperty member, jsoncontainercontract collectioncontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serializevalue(jsonwriter writer, object value, jsoncontract valuecontract, jsonproperty member, jsoncontainercontract containercontract, jsonproperty containerproperty) @ newtonsoft.json.serialization.jsonserializerinternalwriter.serialize(jsonwriter jsonwriter, object value, type objecttype) @ newtonsoft.json.jsonserializer.serializeinternal(jsonwriter jsonwriter, object value, type objecttype) @ system.net.http.formatting.basejsonmediatypeformatter.writetostream(type type, object value, stream writestream, encoding effectiveencoding) @ system.net.http.formatting.jsonmediatypeformatter.writetostream(type type, object value, stream writestream, encoding effectiveencoding) @ system.net.http.formatting.basejsonmediatypeformatter.writetostream(type type, object value, stream writestream, httpcontent content) @ system.net.http.formatting.basejsonmediatypeformatter.writetostreamasync(type type, object value, stream writestream, httpcontent content, transportcontext transportcontext, cancellationtoken cancellationtoken) --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ system.runtime.compilerservices.taskawaiter.validateend(task task) @ microsoft.visualstudio.services.common.vsshttpmessagehandler.<sendasync>d__17.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\common\vsshttpmessagehandler.cs:line 206 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.common.vsshttpretrymessagehandler.<sendasync>d__4.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\common\vsshttpretrymessagehandler.cs:line 91 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__48.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 818 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__45`1.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 721 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__27`1.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 0 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.visualstudio.services.webapi.vsshttpclientbase.<sendasync>d__26`1.movenext() in e:\v2.0\a5\_work\1\s\vssf\client\webapi\vsshttpclientbase.cs:line 0<---
complete dtaexecutionhost.exe.log
on tfs 2010 there no problem size of results.
i'm not sure how debug further. test results deleted after cleanup.
build log:
2017-09-12t09:12:46.2472405z ##[warning]distributedtests: test run aborted. logging details of run logs. 2017-09-12t09:12:46.2472405z ##[debug]processed: ##vso[task.logissue type=warning]distributedtests: test run aborted. logging details of run logs. 2017-09-12t09:12:46.2639752z ##[warning]distributedtests: new test run created. 2017-09-12t09:12:46.2639752z ##[debug]processed: ##vso[task.logissue type=warning]distributedtests: new test run created. 2017-09-12t09:12:46.2639752z test run queued project collection build service (defaultcollection). 2017-09-12t09:12:46.2639752z 2017-09-12t09:12:46.2639752z ##[warning]distributedtests: test execution started. test run id : 22452 2017-09-12t09:12:46.2639752z ##[debug]processed: ##vso[task.logissue type=warning]distributedtests: test execution started. test run id : 22452 2017-09-12t09:12:46.2639752z ##[warning]distributedtests: unexpected error occured during test execution. try again. 2017-09-12t09:12:46.2639752z ##[debug]processed: ##vso[task.logissue type=warning]distributedtests: unexpected error occured during test execution. try again. 2017-09-12t09:12:46.2639752z ##[warning]distributedtests: error : 1 or more errors occurred.--->exception of type 'system.outofmemoryexception' thrown. 2017-09-12t09:12:46.2639752z ##[debug]processed: ##vso[task.logissue type=warning]distributedtests: error : 1 or more errors occurred.--->exception of type 'system.outofmemoryexception' thrown. 2017-09-12t09:12:46.2639752z 2017-09-12t09:12:46.2639752z ##[warning]distributedtests: test run aborted. test run id: 22452 2017-09-12t09:12:46.2639752z ##[debug]processed: ##vso[task.logissue type=warning]distributedtests: test run aborted. test run id: 22452 2017-09-12t09:12:46.2639752z ##[error]system.exception: test run aborted, failing task. 2017-09-12t09:12:46.2639752z ##[debug]processed: ##vso[task.logissue type=error;]system.exception: test run aborted, failing task. 2017-09-12t09:12:46.2784911z ##[debug]distributedtests: deleted test settings id : 20637 2017-09-12t09:12:46.3097431z ##[error]powershell script completed 1 errors.
Comments
Post a Comment