Closed wjdavis5 closed 2 months ago
@fhnaseer have you seen this problem before? #[error]Data collector 'Code Coverage' message: Data collector caught an exception of type 'System.BadImageFormatException': 'Image is too small.'. More details: ..
@nohwnd Not really. @wjdavis5 can you please share logs?
@fhnaseer I'd be happy to share logs privately. They are too verbose for me to really be able to make sure its all good to post publicly.
@fhnaseer Case opened: 2406200040000675
Can you please share link?
Sorry I'm not sure what you mean, I don't have a link, just the case number.
You should have received a ticket link like this https://developercommunity.visualstudio.com/t/MicrosoftCodeCoverageConsole-cant-ins/10686388.
I went ahead and just scanned the logs and redacted a few things. When I open a ticket at the link you gave me it sends me to services hub to open a ticket and that is what I did. The ticket was routed to azure devops support and I provided you the case number for what I received.
Do you see any logs with filename datacollector in it? Can you please share these?
The only logs I have available are those provided by the azure devops pipeline interface.
You can enable full logs by providing additional log options in the pipeline => https://github.com/microsoft/vstest/issues/5098#issuecomment-2196794915
@wjdavis5 please get back to us with logs if you have some :)
TempDir.zip I think I found what you needed.
@wjdavis5 Can you please use vstest 17.11.0-release-24352-06 and try again?
No errors on this version.
@wjdavis5 Can you please use vstest 17.11.0-release-24352-06 and try again?
No errors on this version.
@wjdavis5 Can you please use vstest 17.11.0-release-24352-06 and try again?
Thanks for verifying it. I am closing this issue. Fix will be available in 17.11 release.
Description
Error logged to stderr for ADO Task VSTest2.0 on vstest 17.10.0.
#[error]Data collector 'Code Coverage' message: Data collector caught an exception of type 'System.BadImageFormatException': 'Image is too small.'. More details: ..
https://github.com/actions/runner-images/issues/10068
Steps to reproduce
Run pipeline using windows-latest or windows-2022 since the 17.10.0 update
Expected behavior
Nothing logged to stderr
Actual behavior
The following is logged to stderr
#[error]Data collector 'Code Coverage' message: Data collector caught an exception of type 'System.BadImageFormatException': 'Image is too small.'. More details: ..
However code coverage is still generated.
Diagnostic logs
I can provide complete logs privately.
Environment
... ...
... ... ...