Unit tests pass but dotCover fails with an error
Answered
We're sporadically seeing the following error in our builds. If the file is actually corrupt shouldn't it fail every time? I found some discussion in YouTrack about issues with OneDrive and Data Deduplication and CrowdStrike but those error messages aren't exactly the same.
Can someone provide some insight / assistance on this?
Test Run Successful.
Total tests: 112
Passed: 112
Total time: 8,0244 Seconds
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:10.62
[JetBrains dotCover] Coverage session finished [21.09.2020 07:36:18]
[JetBrains dotCover] Coverage session finished with errors: File is corrupt Failed to get nullable module interface: CLDB_E_FILE_CORRUPT File is corrupt. (hresult_error:8013110E) [location] = c:\buildagent\work\1b0e5a449737f80a\profiler\kernel\windows\native\solution\core\src\profilers\../MetaData/MetaDataUtil.h(66) [function] = struct jb::com_ptr<struct IMetaDataEmit> __cdecl jbprof::get_module_metadata_nullable<struct IMetaDataEmit>(const struct jb::com_ptr<struct ICorProfilerInfo> &,const unsigned __int64) [module ID] = 00007FFADDA856D8.
Error message is logged
An error occurred when executing task 'testCoverage'.
JetBrains dotCover Console Runner 2020.1.3. Build 777.0.20200515.125215
Copyright (c) 2009-2020 JetBrains s.r.o. All rights reserved.
[JetBrains dotCover] Snapshot merging started. Source snapshots number: 1 [21.09.2020 07:36:19]
[JetBrains dotCover] Snapshot merging finished [21.09.2020 07:36:19]
Error: One or more errors occurred.
DotCover: Process returned an error (exit code -2).
Importing data from 'D:/BuildAgent1/work/8d922da462b19f2f/testresult/result.dcvr' (559.07 KB) with 'dotNetCoverage' processor
Process exited with code 1
Process exited with code 1 (Step: Invoke Cake (PowerShell))
Step Invoke Cake (PowerShell) failed
Please sign in to leave a comment.
Hello,
Could you please try to invoke dotCover with the following command line arguments:
and send over the resulting log file when it fails in a manner similar to the above? You can upload it here: https://uploads.jetbrains.com and share the upload ID with me.