Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vstest 17.10.0 System.BadImageFormatException Azure Devops Pipelines #5098

Open
wjdavis5 opened this issue Jun 14, 2024 · 15 comments
Open

vstest 17.10.0 System.BadImageFormatException Azure Devops Pipelines #5098

wjdavis5 opened this issue Jun 14, 2024 · 15 comments

Comments

@wjdavis5
Copy link

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: ..

actions/runner-images#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.

2.1409
Multiple versions of same extension found. Selecting the highest version.
  xunit.runner.visualstudio.dotnetcore.testadapter : 2.4.5.1
##[error]Data collector 'Code Coverage' message: Data collector caught an exception of type 'System.BadImageFormatException': 'Image is too small.'. More details: ..

Environment


Starting: Initialize job
Agent name: 'Azure Pipelines 8'
Agent machine name: 'fv-az171-608'
Current agent version: '3.240.1'
Operating System
Runner Image
Runner Image Provisioner
Current image version: '20240610.1.0'
Agent running as: 'VssAdministrator'
Prepare build directory.
Set build variables.
Download all required tasks.
Downloading task: PowerShell (2.239.1)
Downloading task: DotNetCoreCLI (2.240.0)
Downloading task: SonarCloudPrepare (1.41.1)
##[warning]Task 'Prepare Analysis Configuration' version 1 (SonarCloudPrepare@1) is deprecated.
##[warning]This task is deprecated. Please upgrade to the latest version. For more information, refer to https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/
Downloading task: VSTest (2.240.1)

...
...


==============================================================================
Task         : Visual Studio Test
Description  : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test (VsTest) runner. Test frameworks that have a Visual Studio test adapter such as MsTest, xUnit, NUnit, Chutzpah (for JavaScript tests using QUnit, Mocha and Jasmine), etc. can be run. Tests can be distributed on multiple agents using this task (version 2).
Version      : 2.240.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/vstest

...
...
...


C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe "@D:\a\_temp\eaehr3nyi2o.tmp"
Microsoft (R) Test Execution Command Line Tool Version 17.10.0 (x64)

@nohwnd
Copy link
Member

nohwnd commented Jun 18, 2024

@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: ..

@fhnaseer
Copy link
Member

@nohwnd Not really. @wjdavis5 can you please share logs?

@jonadv
Copy link

jonadv commented Jun 18, 2024

related: actions/runner-images#10068 (comment)

@wjdavis5
Copy link
Author

@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
Copy link
Member

You can create a ticket here and share logs privately.

@wjdavis5
Copy link
Author

@fhnaseer Case opened:
2406200040000675

@fhnaseer
Copy link
Member

Can you please share link?

@wjdavis5
Copy link
Author

Sorry I'm not sure what you mean, I don't have a link, just the case number.

@fhnaseer
Copy link
Member

You should have received a ticket link like this https://developercommunity.visualstudio.com/t/MicrosoftCodeCoverageConsole-cant-ins/10686388.

@wjdavis5
Copy link
Author

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.

logs.txt

@fhnaseer
Copy link
Member

Do you see any logs with filename datacollector in it? Can you please share these?

@wjdavis5
Copy link
Author

The only logs I have available are those provided by the azure devops pipeline interface.

@fhnaseer
Copy link
Member

fhnaseer commented Jul 2, 2024

You can enable full logs by providing additional log options in the pipeline => #5098 (comment)

@nohwnd
Copy link
Member

nohwnd commented Jul 9, 2024

@wjdavis5 please get back to us with logs if you have some :)

@wjdavis5
Copy link
Author

wjdavis5 commented Jul 9, 2024

TempDir.zip
I think I found what you needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants