Skip to content

Add [ActiveIssue] for CharClassSubtraction_DeepNesting on browser-wasm#125021

Open
lewing wants to merge 2 commits intodotnet:mainfrom
lewing:fix/activeissue-125020
Open

Add [ActiveIssue] for CharClassSubtraction_DeepNesting on browser-wasm#125021
lewing wants to merge 2 commits intodotnet:mainfrom
lewing:fix/activeissue-125020

Conversation

@lewing
Copy link
Member

@lewing lewing commented Mar 1, 2026

The \CharClassSubtraction_DeepNesting_DoesNotStackOverflow\ test added in #124995 fails on browser-wasm because the NonBacktracking regex engine throws \PlatformNotSupportedException\ on that platform.

This adds an [ActiveIssue]\ attribute targeting \TestPlatforms.Browser\ to skip the test on browser-wasm until the underlying issue is resolved.

Fixes #125020

Copilot AI review requested due to automatic review settings March 1, 2026 02:36
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an [ActiveIssue] attribute to the CharClassSubtraction_DeepNesting_DoesNotStackOverflow test to skip it on browser-wasm, fixing a CI failure introduced when the test was added in #124995. On browser-wasm, the NonBacktracking engine throws PlatformNotSupportedException, causing test failures.

Changes:

  • Adds [ActiveIssue("https://github.com/dotnet/runtime/issues/125020", TestPlatforms.Browser)] to CharClassSubtraction_DeepNesting_DoesNotStackOverflow to skip the test on browser-wasm

@lewing lewing assigned danmoseley and unassigned lewing Mar 1, 2026
The CharClassSubtraction_DeepNesting_DoesNotStackOverflow test with
the NonBacktracking engine hits threading APIs (Task.InternalWaitCore)
that are not supported on single-threaded browser-wasm, causing
PlatformNotSupportedException. Other engines work fine on browser-wasm.

Use an in-test guard to skip only the NonBacktracking engine variant
on Browser, keeping Interpreter and Compiled coverage.

Fixes dotnet#125020

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lewing lewing force-pushed the fix/activeissue-125020 branch from a9d55d8 to d3bd30a Compare March 1, 2026 03:34
@lewing lewing requested a review from danmoseley March 1, 2026 04:35
Copilot AI review requested due to automatic review settings March 1, 2026 04:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CharClassSubtraction_DeepNesting_DoesNotStackOverflow fails with PlatformNotSupportedException on browser-wasm (NonBacktracking)

4 participants