Closed trylek closed 1 year ago
Another instance after a test crash:
Pipeline: https://dev.azure.com/dnceng-public/public/_build/results?buildId=241126&view=ms.vss-test-web.build-test-results-tab&runId=4632920&resultId=122456&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab Platform: Windows arm checked (without R2R) Test: threading_group2
Diagnostics:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at MyData.ThreadTarget() at System.Threading.Thread.StartCallback() App Exit Code: -1073741819 Expected: 100 Actual: -1073741819 END EXECUTION - FAILED FAILED [XUnitLogChecker]: Item 'threading_group2' did not finish running. Checking and fixing the log... [XUnitLogChecker]: XUnit log file has been fixed! 77/95 tests run. * 47 tests passed. * 30 tests failed. * 0 tests skipped. [XUnitLogChecker]: Checking for dumps... Unhandled exception. System.Xml.XmlException: The 'assembly' start tag on line 1 position 2 does not match the end tag of 'stack'. Line 219, position 3. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) at System.Xml.XmlTextReaderImpl.ParseEndElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r) at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o) at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o) at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XElement.Load(String uri, LoadOptions options) at XUnitLogChecker.PrintStackTracesFromDumps(String dumpsPath, String tempLogPath) in D:\a\_work\1\s\src\tests\Common\XUnitLogChecker\XUnitLogChecker.cs:line 396 at XUnitLogChecker.Main(String[] args) in D:\a\_work\1\s\src\tests\Common\XUnitLogChecker\XUnitLogChecker.cs:line 153
I finally got to hack up an artificial repro of this problem. It seems the log fixer is getting confused when dealing with stack-traces
in logs, due to them being inside the output
tags. I will take a look at that and come up with a fix soon.
Just as I developed a fix for this, I came across another bug that will blow up at some point. Could be tomorrow, could be in a month. So, I'm going to address that one too and therefore the PR will take a little bit longer.
Platform: Windows arm checked Example run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=241282&view=ms.vss-test-web.build-test-results-tab&runId=4637564&resultId=122180&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab Failing test: Directed_1
Diagnostics:
/cc @ivdiazsa @jkoritzinsky @dotnet/runtime-infrastructure