Skip to content

[Test] Mark DynamicOptimization profiler test as GCStressIncompatible - #131594

Merged
mdh1418 merged 1 commit into
dotnet:mainfrom
mdh1418:mdh1418/fix-118839-dynamicoptimization-gcstress-timeout
Aug 14, 2026
Merged

mdh1418 merged 1 commit into
dotnet:mainfrom
mdh1418:mdh1418/fix-118839-dynamicoptimization-gcstress-timeout

Conversation

@mdh1418

@mdh1418 mdh1418 commented Jul 30, 2026

Copy link
Copy Markdown
Member

Fixes #118839

The test uses IpcTraceTest.RunAndValidateEventCounts to run 3 separate
EventPipe sessions to capture JIT events and verify profiler dynamic
optimization tier switching. Under GCStress, each session takes ~20
seconds because GC constantly suspends threads and slows down EventPipe
event delivery. Three iterations exceeds the test timeout.

There is also a SIGSEGV (exit code 139) on Linux ARM32 under
gcstress0xc_disabler2r during the second EventPipe session setup.

The test is already JitOptimizationSensitive and validates profiler
behavior with optimization tiers -- it has no dependency on GCStress
behavior. Mark it GCStressIncompatible to exclude it from GCStress runs.

Fixes dotnet#118839

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b5faa892-3c6f-4339-b47e-80f2d477e0a7
@azure-pipelines

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

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

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

Marks the DynamicOptimization profiler test project as incompatible with GC stress runs so the test infrastructure will skip executing it when DOTNET_GCStress is set (consistent with the existing GCStressIncompatible handling in src/tests/Common/CLRTest.Execute.*.targets).

Changes:

  • Add <GCStressIncompatible>true</GCStressIncompatible> to DynamicOptimization.csproj.
  • Document the reason for the incompatibility (EventPipe session slowness under GC stress).

@mdh1418
mdh1418 merged commit 7e90f85 into dotnet:main Aug 14, 2026
86 checks passed
@mdh1418
mdh1418 deleted the mdh1418/fix-118839-dynamicoptimization-gcstress-timeout branch August 14, 2026 17:10
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 17, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

profiler/dynamicoptimization/DynamicOptimization/DynamicOptimization.cmd timed out under gcstress

3 participants