Skip to content

Enable browser CoreCLR interpreter tests disabled under #123011, re-disabling those with real platform limits - #130765

Merged
pavelsavara merged 2 commits into
mainfrom
copilot/enable-disabled-tests-coreclr
Jul 16, 2026
Merged

pavelsavara merged 2 commits into
mainfrom
copilot/enable-disabled-tests-coreclr

Conversation

Copilot AI commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Tests across ~19 libraries suites were blanket-disabled with [ActiveIssue(#123011)] on IsBrowser && IsCoreCLR to bootstrap the new browser CoreCLR platform. This removes all 43 occurrences of that attribute, then re-disables only the tests that genuinely fail on the browser CoreCLR interpreter — each with a tighter, root-cause-specific gate instead of the blanket attribute. Tests that now pass stay enabled.

Changes

  • Enabled all 43 [ActiveIssue(#123011)] occurrences across 25 files / ~19 test projects (removed only the [browser][coreCLR] temporarily disabled tests #123011 attribute; unrelated ActiveIssue attributes preserved).
  • Re-disabled the still-failing tests with more specific gates ([SkipOnPlatform] / [Conditional*] / narrower [ActiveIssue] conditions) and root-cause comments.

Kept enabled (verified passing on the browser CoreCLR interpreter)

  • System.Runtime.Tests GCTests: Collect_CallsFinalizer, KeepAlive, KeepAlive_Null, ReRegisterForFinalize
  • System.Runtime.Tests DateTimeTests.GetObjectData_Invoke_ReturnsExpected
  • System.Collections.Concurrent.Tests (both) and System.Data.Common.Tests (both) — suites clean
  • All other re-enabled suites (System.Collections, HashSet, Microsoft.VisualBasic.Core, System.IO.Compression.ZipFile, System.Net.Requests, Microsoft.Extensions.Logging.Generators, System.Dynamic.Runtime, …) pass.

Re-disabled — real platform limitations

Test(s) New gate Root cause
DI ServiceProviderCompilationTest.CompilesInLimitedStackSpace (×5) [ConditionalTheory(IsMultithreadingSupported)] Runs the compilation on a dedicated thread with a small stack; Thread.Start throws PlatformNotSupportedException on single-threaded wasm
BackgroundWorkerTests.TestFinalization added IsMultithreadingSupported to the existing [ConditionalFact] Blocking ManualResetEventSlim.Wait(timeout) requires multithreading
Interop COM: AddRefTests.AddRef_ValidPointer_Success, ReleaseTests.Release_ValidPointer_Success, QueryInterfaceTests.QueryInterface_ValidInterface_Success/QueryInterface_NoSuchInterface_Success, ComVariantMarshallerTests.GeneratedComInterfaceType_Marshals_To_UNKNOWN/UnknownWrapper_Of_GeneratedComInterfaceType_Marshals_To_UNKNOWN [SkipOnPlatform(TestPlatforms.Browser)] Built-in COM / ComWrappers is not supported on WebAssembly
System.Runtime.Intrinsics.Wasm.Tests.PackedSimdTests (whole class) [ActiveIssue(#123011, IsBrowser, IsCoreCLR)] PackedSimd intrinsics are not implemented in the interpreter; PackedSimd.IsSupported is false and every op throws PNSE
RuntimeFeatureTests.DynamicCode_Jit [ActiveIssue(#123011, IsCoreClrInterpreter)] The interpreter is not a JIT, so RuntimeFeature.IsDynamicCodeCompiled is false
ModuleTests.Name, ModuleTests.FullyQualifiedName [ActiveIssue(#123011, IsBrowser, IsCoreCLR)] Assemblies are loaded from the wasm bundle with no backing file, so Module.Name/FullyQualifiedName is <Unknown>
EnvironmentTests.GetFolderPath_Unix_NonEmptyFolderPaths [ActiveIssue(#123011, IsBrowser, IsCoreCLR)] Environment.GetFolderPath(CommonApplicationData) returns an empty string on browser (no folder mapping)

Validation

Validated on CI in the browser-wasm linux Release LibraryTestsCoreCLR leg (Helix job WasmTestOnChrome-CLR-ST, which exercises the CoreCLR interpreter). The re-disabled set above corresponds exactly to the tests that failed there; all other re-enabled tests pass.

Note

This PR description was generated with the assistance of AI (GitHub Copilot).

Copilot AI review requested due to automatic review settings July 15, 2026 10:11
Copilot AI removed the request for review from Copilot July 15, 2026 10:11
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm labels Jul 15, 2026
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 15, 2026 10:19 — with GitHub Actions Inactive
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 15, 2026 10:20 — with GitHub Actions Inactive
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Copilot AI review requested due to automatic review settings July 15, 2026 13:56
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 15, 2026 13:56 — with GitHub Actions Inactive
@pavelsavara
pavelsavara temporarily deployed to copilot-pat-pool July 15, 2026 13:57 — with GitHub Actions Inactive
@pavelsavara pavelsavara changed the title Enable and validate tests disabled under issue #123011 on browser coreCLR interpreter Enable browser CoreCLR interpreter tests disabled under #123011, re-disabling those with real platform limits Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Re-enables (or retargets) a set of library test cases that were previously blanket-disabled for the browser CoreCLR bring-up, aiming to separate now-passing tests from genuine platform limitations (e.g., interpreter / single-threaded WASM / COM).

Changes:

  • Removes [ActiveIssue(...#123011... IsBrowser && IsCoreCLR)] from many tests to allow them to run on browser CoreCLR again.
  • Replaces some browser CoreCLR skips with more specific gating (e.g., IsMultithreadingSupported, IsCoreClrInterpreter) and permanent skips where appropriate (SkipOnPlatform(TestPlatforms.Browser) for COM).
  • Adds/updates a few comments to document why specific tests remain disabled.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Runtime/CompilerServices/RuntimeFeatureTests.cs Retargets dynamic-code JIT expectation skip to CoreCLR interpreter specifically.
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Reflection/ModuleTests.cs Keeps browser CoreCLR skip for Module name/FQN and adds rationale comments.
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/GCTests.cs Re-enables several GC finalizer/KeepAlive tests for browser CoreCLR.
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/DateTimeTests.cs Re-enables DateTime ISerializable test previously skipped on browser CoreCLR.
src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/EnvironmentTests.cs Keeps browser CoreCLR skip for GetFolderPath Unix non-empty assertions, with rationale comment.
src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.property.autoproperty.regclass.cs Removes browser CoreCLR blanket skip from a dynamic conformance test.
src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.operator.regclass.cs Removes browser CoreCLR blanket skips from dynamic operator conformance tests.
src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.method.genmethod.regclass.cs Removes browser CoreCLR blanket skip from a dynamic generic-method conformance test.
src/libraries/System.Runtime/tests/System.Dynamic.Runtime.Tests/Dynamic.Context/Conformance.dynamic.context.indexer.regclass.cs Removes browser CoreCLR blanket skip from a dynamic indexer conformance test.
src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/ReleaseTests.cs Converts browser CoreCLR skip into an explicit Browser COM unsupported skip.
src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/QueryInterfaceTests.cs Converts browser CoreCLR skip into an explicit Browser COM unsupported skip for QueryInterface tests.
src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/AddRefTests.cs Converts browser CoreCLR skip into an explicit Browser COM unsupported skip for AddRef tests.
src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ComVariantMarshallerTests.cs Adds explicit Browser COM unsupported skips for generated COM interface marshalling tests.
src/libraries/System.Net.Requests/tests/ServicePointTests/TlsSystemDefault.cs Re-enables ServicePointManager TLS default tests for browser CoreCLR.
src/libraries/System.Net.Requests/tests/ServicePointTests/ServicePointManagerTest.cs Re-enables ServicePointManager test suite for browser CoreCLR.
src/libraries/System.IO.Compression.ZipFile/tests/ZipFile.Unix.cs Re-enables Unix permission-related ZipFile tests for browser CoreCLR.
src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs Re-enables GC/finalization-related DbConnection test for browser CoreCLR.
src/libraries/System.Data.Common/tests/System/Data/Common/DbCommandTests.cs Re-enables GC/finalization-related DbCommand test for browser CoreCLR.
src/libraries/System.ComponentModel.EventBasedAsync/tests/BackgroundWorkerTests.cs Removes browser CoreCLR skip and instead gates finalization test on multithreading support.
src/libraries/System.Collections/tests/Generic/HashSet/HashSet.NonGeneric.Tests.cs Re-enables a HashSet serialization-related test for browser CoreCLR.
src/libraries/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.cs Re-enables hash-collision regression tests for browser CoreCLR.
src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs Re-enables selected ConcurrentQueue tests for browser CoreCLR.
src/libraries/Microsoft.VisualBasic.Core/tests/Microsoft/VisualBasic/FileIO/FileSystemTests.cs Re-enables VB FileSystem current directory tests for browser CoreCLR.
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorIncrementalTests.cs Re-enables incremental generator tests for browser CoreCLR.
src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceProviderCompilationTest.cs Replaces browser CoreCLR skip with IsMultithreadingSupported gating due to thread usage.

@pavelsavara
pavelsavara marked this pull request as ready for review July 15, 2026 17:18
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@pavelsavara

Copy link
Copy Markdown
Member

/ba-g unrelated failures

@pavelsavara
pavelsavara merged commit ac90ce8 into main Jul 16, 2026
99 of 103 checks passed
@pavelsavara
pavelsavara deleted the copilot/enable-disabled-tests-coreclr branch July 16, 2026 06:06
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 15, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 15050370 Deployed Jul 15, 2026 by pavelsavara via pat_pool #15173
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-System.Runtime.InteropServices os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants