-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[wasm][testing] hosting echo server in xharness process #52923
[wasm][testing] hosting echo server in xharness process #52923
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue Details
Companion change to dotnet/xharness#593
|
src/libraries/Common/tests/System/Net/Prerequisites/NetCoreServer/NetCoreServer.csproj
Show resolved
Hide resolved
1468635
to
5eb357d
Compare
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsThis makes WebSocket test on WASM easier to work with, by moving the tests to inner loop. In order to do that we are hosting the echo test server which the tests use, in the xharness process. Because wasm is always tested with xharness.
|
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Headers.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/WinHttpHandlerTest.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs
Outdated
Show resolved
Hide resolved
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.
Overall looks good to me, thanks!
The remaining nits I have are the naming in Configuration.Http.cs
and using NetCoreAppCurrent
instead in src/libraries/Common/tests/System/Net/Prerequisites/NetCoreServer/NetCoreServer.csproj
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Headers.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs
Outdated
Show resolved
Hide resolved
#52923 (comment) |
As @mdh1418 asked, |
...ibraries/Common/tests/System/Net/Prerequisites/NetCoreServer/Handlers/VerifyUploadHandler.cs
Outdated
Show resolved
Hide resolved
- move tests to inner loop - more granular ActiveIssue dotnet#53592 for lack of TRACE - more granular ActiveIssue dotnet#53591 for content on GET/HEAD - more granular ActiveIssue dotnet#53874 for HttpRequestMessage.Headers.Host - more granular ActiveIssue dotnet#53872 for NPE on System.Net.Http.BrowserHttpHandler - fix HTTP vs HTTPS test configuration `Http2SecureRemoteEchoServer` - include echo middleware in xharness server - include middleware in Helix correlation payload
c2746b9
to
3fdc1d9
Compare
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Headers.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
Show resolved
Hide resolved
src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs
Outdated
Show resolved
Hide resolved
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.
Looks good, just a question about the split of secure server for H/2. I'll approve once it's cleared.
src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
Outdated
Show resolved
Hide resolved
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.
Thanks!
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.
Thanks for your patience, LGTM! 👍
You might want to run the outerloop tests to make sure that this didn't break anything.
/azp run runtime-libraries-mono outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
This makes WebSocket test on WASM easier to work with, by moving the tests to inner loop. In order to do that we are hosting the echo test server which the tests use, in the xharness process. Because wasm is always tested with xharness.