System.Diagnostics.FileVersionInfo tests lack WASI ReadyToRun coverage

Open
#138,115 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, wasm
Domain
testing-qa

Research direction

Start from the csproj at src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj and check how IgnoreForCI and the Browser skip interact with the WASI path. Then check src/libraries/tests.proj to see why the project is selected but produces no results in the WASI R2R run. Done when the tests run in the WASI ReadyToRun lane or an explicit, documented exclusion exists.

Written by the indexing model from the issue text.

Description

arch-wasm area-ReadyToRun os-wasi untriaged
Description

System.Diagnostics.FileVersionInfo.Tests is selected by the WASI library-test project graph and evaluates with PublishReadyToRun=true, but the tests do not appear in the WASI ReadyToRun test results.

Browser coverage is intentionally absent: the project sets IgnoreForCI=true for TargetOS=browser, and the assembly has a Browser platform skip. The missing WASI coverage appears unintended.

Reproduction Steps
  1. Evaluate src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj with TargetOS=wasi, TargetArchitecture=wasm, RuntimeFlavor=CoreCLR, TestWasmReadyToRun=true, and TargetFramework=net12.0-browser.
  2. Observe that PublishReadyToRun=true and the project is included by src/libraries/tests.proj.
  3. Inspect the successful net12.0-wasi-Release-wasm-CoreCLR_WASI_R2R_Release-WasmTestOnWasmtime run from Azure DevOps build 1692590, test run 47256096.
  4. Observe that none of the 7,149 results belong to System.Diagnostics.FileVersionInfo.Tests.
Expected behavior

The FileVersionInfo tests should execute in the WASI ReadyToRun lane, or the project should have an explicit and documented exclusion if the API is unsupported there.

Actual behavior

The WASI ReadyToRun lane succeeds without executing any FileVersionInfo tests.

Regression?

Unknown.

Known Workarounds

N/A.

Configuration
  • Target OS: WASI
  • Architecture: wasm
  • Runtime: CoreCLR
  • Mode: ReadyToRun
  • Evidence: Azure DevOps build 1692590, test run 47256096
Other information

This was identified while reviewing dotnet/runtime#138114. The project targets net12.0-browser for WebAssembly, and its assembly-level Browser skip may also suppress the WASI execution path; this needs investigation.

[!NOTE]
This issue was generated with GitHub Copilot.

Dominant language
C#
Stars
18.5k
Forks
5.8k
Avg merge
2d 18h
Merged PRs (30d)
588

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.