-
Notifications
You must be signed in to change notification settings - Fork 323
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
Data Collector Errors Cause TRX Result to be Failed #10391
Comments
I don't think there is a generic option to treat all collector errors as warnings. Is there a specific collector that you are having problems with? Maybe they have an option for this. |
I think I have the same thing here. I run a test suite twice (sequentially) firstly targeting net8.0, then net462. Locally everything works, trx files are created with no errors, but in my CI run Blame works fine on the first test run (net8.0) but crashes on net462 after every tests passed. This is my dotnet setup:
This is my error:
So the trx is created, my 7 tests passed, but the test run is marked as failure. Am I missing something obvious? NOTE: It was working fine when I only had one test run (only net8.0) |
Activated the --diag option,
And the interesting part (probably the error in my CI):
Not sure what to do with that.. |
Hmm, I actually saw something funny. I just noticed that locally, my runtime is Microsoft.NET\Framework64\v4.0.30319 (works fine) and in my linux CI, the runtime is mono/4.5 (hangs). testhost versions also don't match between net8 and net462 On my net8 run, the testhost.dll is using version 17.11.1 with runtime Microsoft.NETCore.App/8.0.10,
But on my net462 run, testhost.exe is using version 17.11.1-release-24455-02 with runtime mono/4.5
I also noticed at the end of the runs net8.0: Works perfectly with a closed connection.
net462: Hangs at the end of the test run
And it just loops on the polling untill I reach my timeout. So the hang is actually caused by the test host and not my tests. Any idea what's happening? Any known issues between mono and your testhost? |
@nohwnd Would you like that I create a new issue? Or do you need more info? Thank you! :) |
We have tests where all of the tests pass, but there are data collector errors which then cause the overall result of the trx file to be marked as failed. Is there a way to bypass this logic and treat data collector errors as warnings?
The text was updated successfully, but these errors were encountered: