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

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

Merged
merged 47 commits into from
Feb 15, 2024

Conversation

maraf
Copy link
Member

@maraf maraf commented Aug 30, 2023

  • 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

@maraf maraf added arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm labels Aug 30, 2023
@maraf maraf self-assigned this Aug 30, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot 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

ghost commented Aug 30, 2023

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
Member Author

maraf commented Aug 30, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@maraf maraf 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
Member Author

maraf commented Aug 30, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical
Copy link
Member

radical commented Aug 30, 2023

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
Member Author

maraf commented Aug 31, 2023

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
Member Author

maraf commented Sep 22, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

maraf commented Jan 30, 2024

/azp run runtime-wasm

@maraf
Copy link
Member Author

maraf commented Jan 30, 2024

/azp run runtime-wasm

@lewing
Copy link
Member

lewing commented Jan 31, 2024

CI was stuck, merged main to restart

@maraf
Copy link
Member Author

maraf commented Jan 31, 2024

/azp run runtime-wasm

@maraf
Copy link
Member Author

maraf commented Feb 7, 2024

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
Member Author

maraf commented Feb 12, 2024

/azp run runtime-wasm

@maraf
Copy link
Member Author

maraf commented Feb 13, 2024

/azp run runtime-wasm

@maraf maraf merged commit bccbf2e into dotnet:main Feb 15, 2024
122 checks passed
@maraf maraf deleted the WasmXharnessThreads branch February 15, 2024 13:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono os-browser Browser variant of arch-wasm test-enhancement Improvements 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