System.Diagnostics.FileVersionInfo tests lack WASI ReadyToRun coverage

Abierto
#138,115 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, wasm
Área
testing-qa

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C#
Estrellas
18.5k
Forks
5.8k
Merge medio
2 d 18 h
PR fusionados (30 d)
588

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de dotnet/runtime

Todos los issues de dotnet/runtime

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.