-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[browser] reduce System.Net.WebSockets.Client.Tests noise in log files #97654
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue Detailsnull
|
What is the motivation behind the change here? As far as I understand these logs should only be visible if the test fails. |
@@ -72,12 +72,9 @@ public async Task Proxy_ConnectThruProxy_Success(Uri server) | |||
string proxyServerUri = System.Net.Test.Common.Configuration.WebSockets.ProxyServerUri; | |||
if (string.IsNullOrEmpty(proxyServerUri)) | |||
{ | |||
_output.WriteLine("Skipping test...no proxy server defined."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably instead be throw new SkipTestException("No proxy server defined.");
That's interesting. I thought I saw them unexpected in some console log on the WASM platform. |
I found it Log
|
It seems like the logs (for that PR? or for wasm in general?) are set up to be more verbose than they should normally be, i.e. every test there -- including passing ones -- prints at least 2 lines (on start and on finish). That is not the case for coreclr test logs, which only outputs failed tests. Compare the below from the WasmTestOnBrowser log you've linked:
with coreclr test log from the same PR -- all the tests are passing, so no intermediate log is present:
I wonder if it is possible to set up CI not to write [info] messages instead of removing the ITestOutputHelper logs... 🤔 |
Yes, we have that The I don't insist we merge this. I just noticed that those @maraf do you know why our xharness/xunit produces It would be good to know how to turn this on/off. |
Tagging subscribers to 'arch-wasm': @lewing Issue Detailsnull
|
No description provided.