Skip to content

[browser] Use standard xunit test runner on multithreaded runtime - #91317

Merged
maraf merged 47 commits into
dotnet:mainfrom
maraf:WasmXharnessThreads
Feb 15, 2024
Merged

[browser] Use standard xunit test runner on multithreaded runtime#91317
maraf merged 47 commits into
dotnet:mainfrom
maraf:WasmXharnessThreads

Conversation

@maraf

@marafmaraf commented Aug 30, 2023

Copy link
Copy Markdown
Member
  • Switch between threadless and standard xunit test runner based on runtime flavor being used
  • Pass logging level into the browser through xharness
  • New MSBuild property for setting XHarness verbosity WasmXHarnessVerbosity (Trace, Debug, Information default, Warning, Error, Critical)
  • Replace usage of env var for logging xharness test start with MSBuild property XunitShowProgress
  • WIP: Experimenting with runInParallel Separate PR

Closes#88763

@marafmaraf added arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm labels Aug 30, 2023
@marafmaraf self-assigned this Aug 30, 2023
@ghostghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 30, 2023
@ghost

Copy link
Copy Markdown

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author:maraf
Assignees:maraf
Labels:

arch-wasm, os-browser

Milestone:-

@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@marafmaraf added area-System.Runtime.InteropServices.JavaScript test-enhancement Improvements of test source code and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners area-System.Runtime.InteropServices.JavaScript labels Aug 30, 2023
@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@radical

Copy link
Copy Markdown
Member

Are the xunit bits here just for testing? They should be with the rest of the runner stuff that we have in xharness.

@maraf

Copy link
Copy Markdown
MemberAuthor

Are the xunit bits here just for testing? They should be with the rest of the runner stuff that we have in xharness.

Definitely. I'm also thinking about move the entry point to xharness as well. I copied it over to just be able to run CI with changes that I needed

@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara

Copy link
Copy Markdown
Member

What is missing here ?
Would this also work in ST build ?
Is this still using blocking .Wait ?

# Conflicts:
#	src/libraries/Common/tests/WasmTestRunner/WasmTestRunner.cs
@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@lewing

Copy link
Copy Markdown
Member

CI was stuck, merged main to restart

@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@maraf

maraf commented Feb 7, 2024

Copy link
Copy Markdown
MemberAuthor

Requires #97640

# Conflicts:
#	eng/testing/tests.browser.targets
#	src/libraries/Common/tests/WasmTestRunner/WasmTestRunner.cs
#	src/libraries/System.Collections.Immutable/tests/System.Collections.Immutable.Tests.csproj
#	src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj
#	src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
#	src/libraries/System.Private.Xml/tests/System.Private.Xml.Tests.csproj
#	src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System.Runtime.InteropServices.JavaScript.Tests.csproj
#	src/libraries/System.Text.Json/tests/System.Text.Json.Tests/System.Text.Json.Tests.csproj
@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@maraf

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@maraf
maraf merged commit bccbf2e into dotnet:mainFeb 15, 2024
@maraf
maraf deleted the WasmXharnessThreads branch February 15, 2024 13:02
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-VM-threading-monoos-browserBrowser variant of arch-wasmtest-enhancementImprovements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[browser][mt] Stop using ThreadlessXunitTestRunner for MT unit tests

5 participants

@maraf@radical@pavelsavara@lewing@ilonatommy