-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[wasi] Stand up CoreCLR-WASI library-test leg (per-app corerun relink) #130745
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
Merged
lewing
merged 22 commits into
dotnet:main
from
lewing:lewing-wasi-coreclr-library-tests
Jul 21, 2026
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
29924ff
[wasi] Stand up CoreCLR-WASI library-test smoke leg
lewing 1c94fb1
[wasi] Complete CoreCLR-WASI library-test bundle (framework + entry p…
lewing 086c155
[wasi] Note #130634 as the known blocker for the CoreCLR-WASI smoke leg
lewing e8fcde7
[wasi] Correct CoreCLR-WASI smoke leg known-blocker note
lewing 0ba4ece
[wasi] Add WasiHost-Static archive for CoreCLR-WASI per-app relink
lewing e5386cc
[wasi] Relink corerun per-app in WasiApp.CoreCLR.targets
lewing a662aca
[wasi] Fix corerun relink: whole-archive host + full VM define set
lewing 914362d
[wasi] Update CoreCLR-WASI notes for the per-app corerun relink
lewing c45c222
[wasi] Document why the corerun relink omits libgcinfo_unix_wasm.a
lewing fa09c9b
[wasi] Refine libgcinfo_unix_wasm.a omission rationale
lewing 985e149
[wasi] Document coreclr_compat.h cross-tree reference as intentional
lewing bb8ddb7
[wasi] Tighten WasiApp.CoreCLR.targets comments to match surrounding …
lewing 61dbe80
[wasi] Address PR review: correct stale 'prebuilt corerun' comments +…
lewing e8e4b77
[wasi] Address PR review round 2: target triple + Copy batching
lewing 6166d4d
[wasm] Add WarnOnUnresolvedPInvokeModules flag to the CoreCLR generator
lewing 4e47134
[wasi] Address PR review: compat-header override + condition ICU on i…
lewing b493aa9
[wasi] Load ICU data in the corerun host so CoreCLR-WASI can run non-…
lewing 3411698
[wasi] Run the CoreCLR-WASI library-test leg with full ICU (non-invar…
lewing 88d40d8
[wasi] ActiveIssue the 3 CoreCLR-WASI interp test gaps in System.Runt…
lewing c3e9eb0
[wasi] Consume the shipping wasihost corehost (#130816) in the librar…
lewing 67c7ec5
Potential fix for pull request finding
lewing 400271c
[wasi] Don't default WasmMainAssemblyFileName in the CoreCLR app-buil…
lewing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
eng/pipelines/common/templates/wasi-wasm-coreclr-library-tests.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| parameters: | ||
| alwaysRun: false | ||
| extraBuildArgs: '' | ||
| extraHelixArguments: '' | ||
| isExtraPlatformsBuild: false | ||
| isWasmOnlyBuild: false | ||
| nameSuffix: '' | ||
| platforms: [] | ||
| scenarios: ['WasmTestOnWasmtime'] | ||
| shouldContinueOnError: false | ||
| shouldRunSmokeOnly: false | ||
|
|
||
| jobs: | ||
|
|
||
| # | ||
| # Build CoreCLR libraries for WASI and run the library tests on wasmtime via Helix. | ||
| # Mirrors wasm-coreclr-library-tests.yml (the browser-CoreCLR LibraryTestsCoreCLR leg), | ||
| # with the WasmTestOnWasmtime scenario and the wasi_wasm helix queue. | ||
| # See https://github.com/dotnet/runtime/issues/130129. | ||
| # | ||
| # Bring-up leg: smoke-only and non-gating (rolling alwaysRun). WasiApp.CoreCLR.targets | ||
| # performs a per-app native link of the wasihost corehost so a test's own | ||
| # [UnmanagedCallersOnly] reverse thunks are generated + linked into the host; with that link | ||
| # + the nested-type reverse-thunk | ||
| # key fix (also filed standalone as dotnet/runtime#130740; the remaining enclosing-type | ||
| # collision limitation is tracked by #130739) the interpreter discovers and runs the suite | ||
| # (validated locally: 9930 System.Runtime.Tests cases). #130634 (cold portable-entry-point | ||
| # publication) only affects a future R2R-enabled leg, not this pure-interpreter smoke. | ||
| # | ||
| - template: /eng/pipelines/common/platform-matrix.yml | ||
| parameters: | ||
| jobTemplate: /eng/pipelines/common/global-build-job.yml | ||
| helixQueuesTemplate: /eng/pipelines/libraries/helix-queues-setup.yml | ||
| buildConfig: Release | ||
| runtimeFlavor: coreclr | ||
| platforms: ${{ parameters.platforms }} | ||
| shouldContinueOnError: ${{ parameters.shouldContinueOnError }} | ||
| variables: | ||
| - name: alwaysRunVar | ||
| value: ${{ parameters.alwaysRun }} | ||
| - name: shouldRunOnDefaultPipelines | ||
| value: $[ | ||
| or( | ||
| eq(variables['wasmDarcDependenciesChanged'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_tools_illink.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasm_coreclr_runtimetests.containsChange'], true)) | ||
| ] | ||
| # run smoke tests only if: | ||
| # - explicitly requested | ||
| # - libraries or illink changed and no wasm specific changes | ||
| - name: shouldRunSmokeOnlyVar | ||
| value: $[ | ||
| or( | ||
| eq('${{ parameters.shouldRunSmokeOnly }}', 'true'), | ||
| and( | ||
| eq('${{ parameters.shouldRunSmokeOnly }}', 'onLibrariesAndIllinkChanges'), | ||
| ne(variables['wasmDarcDependenciesChanged'], true), | ||
| or( | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_tools_illink.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true) | ||
| ) | ||
| ) | ||
| ) | ||
| ] | ||
| - name: _wasmRunSmokeTestsOnlyArg | ||
| value: /p:RunSmokeTestsOnly=$(shouldRunSmokeOnlyVar) | ||
|
|
||
| jobParameters: | ||
| isExtraPlatforms: ${{ parameters.isExtraPlatformsBuild }} | ||
| testGroup: innerloop | ||
| nameSuffix: LibraryTestsCoreCLR_WASI${{ parameters.nameSuffix }} | ||
| buildArgs: -s clr+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true $(_wasmRunSmokeTestsOnlyArg) /maxcpucount:1 ${{ parameters.extraBuildArgs }} | ||
| timeoutInMinutes: 240 | ||
| condition: >- | ||
| or( | ||
| eq(variables['alwaysRunVar'], true), | ||
| eq(variables['isDefaultPipeline'], variables['shouldRunOnDefaultPipelines'])) | ||
| # extra steps, run tests | ||
| postBuildSteps: | ||
| - template: /eng/pipelines/libraries/helix.yml | ||
| parameters: | ||
| creator: dotnet-bot | ||
| testRunNamePrefixSuffix: CoreCLR_WASI_$(_BuildConfig) | ||
| extraHelixArguments: $(_wasmRunSmokeTestsOnlyArg) ${{ parameters.extraHelixArguments }} | ||
| scenarios: ${{ parameters.scenarios }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.