Repository navigation
MTP runs correctly on wasi - #7137
Merged
Merged
Conversation
Amaury Levé (Evangelink)
enabled auto-merge (squash)
December 16, 2025 13:58
Marco Rossignoli (MarcoRossignoli)
approved these changes
Dec 16, 2025
| } | ||
| } | ||
|
|
||
| private static string ComputeNonCryptographicHash(string text) |
There was a problem hiding this comment.
Wasi is still experimental right? Why do we care too much about it early? Regardless, I would avoid using non-cryptographic hash here. Either we disable this code path on WASI (which is telemetry only I think), or implement a managed Sha256 and use it here.
Member
|
Amaury Levé (@Evangelink) I tried this but it doesn't work and I don't see any viable workaround for that on our side. |
Member
Author
|
That's the error I was mentioning above and it's not produced by the platform afaik, so we need to fix MSTest (also TUnit as per screenshot) |
This was referenced May 25, 2026
Amaury Levé (Evangelink)
added a commit
that referenced
this pull request
May 25, 2026
After PRs #7137 and #7146, Microsoft.Testing.Platform boots on the wasi-wasm runtime, but the sample wouldn't even produce a `dotnet.wasm` bundle out of the box on the current preview SDK (`11.0.100-preview.5`): * `WorkloadManifest.Wasi.targets` only resolves `$(UsingWasiRuntimeWorkload)` to `true` when `$(TargetsCurrent)` (net11.0) is true, never when `$(TargetsNet10)` is true, so the WASI Sdk targets are never imported. * The pre-built `dotnet.wasm` tries to read `icudt.dat` from `cwd` even when `InvariantGlobalization` is on, so trimmed builds crash on startup. * `WasmSingleFileBundle=true` requires `wasi-sdk` (clang) to relink the native runtime, which is a heavy prerequisite for a sample. Set the matching properties explicitly on the project so a plain `dotnet publish` produces a runnable bundle, and document the new working build / run procedure (and the remaining `Task.Wait` blocker tracked in #5366) in the README. Co-authored-by: Copilot <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Partially fixes #5366. Now we need some work on the frameworks side.
Testing with TUnit as in linked ticket:

Testing with MSTest:

I haven't added some acceptance test because we need bigger machinery (workload + winget tool installed).
Simply calling
![Uploading image.png…]()
dotnet rundoesn't work but I don't know enough wasi to see what's missing: