System.Diagnostics.FileVersionInfo tests lack WASI ReadyToRun coverage

オープン
#138,115 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, wasm
領域
testing-qa

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
18.5k
フォーク
5.8k
平均マージ
2日 18時間
マージ済み PR(30日)
588

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/runtime のほかの issue

dotnet/runtime の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。