Skip to content

Remove obsolete native AOT test special casing - #116958

Merged
MichalStrehovsky merged 4 commits into
dotnet:mainfrom
MichalStrehovsky:eventingtests
Jun 27, 2025
Merged

Remove obsolete native AOT test special casing#116958
MichalStrehovsky merged 4 commits into
dotnet:mainfrom
MichalStrehovsky:eventingtests

Conversation

@MichalStrehovsky

@MichalStrehovskyMichalStrehovsky commented Jun 24, 2025

Copy link
Copy Markdown
Member

Cc @dotnet/ilc-contrib

CopilotAI review requested due to automatic review settings June 24, 2025 11:21
@MichalStrehovskyMichalStrehovsky added the NO-REVIEW Experimental/testing PR, do NOT review it label Jun 24, 2025

CopilotAI 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

This PR removes obsolete native AOT special casing in several event tracing tests by unifying event count expectations and adjusting the invocation of the test runner API. Key changes include:

  • Eliminating separate dictionaries and conditional enableRundown flags for NativeAOT.
  • Updating calls to IpcTraceTest.RunAndValidateEventCounts to use a unified parameter set.
  • Removing platform-specific branching in event listener tests.

Reviewed Changes

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

Show a summary per file
FileDescription
src/tests/tracing/eventpipe/providervalidation/providervalidation.csRemoved native AOT special casing for event count dictionaries and enableRundown flag.
src/tests/tracing/eventpipe/gcdump/gcdump.csEliminated native AOT enableRundown flag parameter from the test runner call.
src/tests/tracing/eventpipe/eventsvalidation/GCFinalizers.csUnified event counts and removed native AOT specific conditions.
src/tests/tracing/eventpipe/eventsvalidation/GCEvents.csUnified event counts and removed native AOT specific conditions.
src/tests/tracing/eventpipe/eventsvalidation/ExceptionThrown_V1.csUnified event counts and removed obsolete native AOT handling.
src/tests/tracing/eventlistener/EventListenerThreadPool.csRemoved conditional native AOT branch for threadpool event waiting.
Comments suppressed due to low confidence (6)

src/tests/tracing/eventpipe/providervalidation/providervalidation.cs:37

  • The removal of the native AOT specific enableRundown flag is clear, but please confirm that the unified _expectedEventCounts dictionary provides adequate coverage for both NativeAOT and CoreCLR scenarios.
 new EventPipeProvider("Microsoft-DotNETCore-SampleProfiler", EventLevel.Verbose)

src/tests/tracing/eventpipe/gcdump/gcdump.cs:44

  • The native AOT flag removal in favor of a parameterless call to RunAndValidateEventCounts should be verified to not affect the expected behavior of GC dump tests across different runtimes.
 new EventPipeProvider("Microsoft-Windows-DotNETRuntime", eventLevel: EventLevel.Verbose, keywords: (long)ClrTraceEventParser.Keywords.GCHeapSnapshot)

src/tests/tracing/eventpipe/eventsvalidation/GCFinalizers.cs:23

  • Removing the conditional enableRundown flag and unifying the _expectedEventCounts dictionary simplifies the test logic; please ensure that the consolidated event count configuration meets the testing requirements for all environments.
 new EventPipeProvider("Microsoft-Windows-DotNETRuntime", EventLevel.Informational, 0b1)

src/tests/tracing/eventpipe/eventsvalidation/GCEvents.cs:23

  • The removal of native AOT-based conditional logic should be double checked against the expected event outcomes to ensure that differences in runtime behavior are appropriately handled.
 new EventPipeProvider("Microsoft-Windows-DotNETRuntime", EventLevel.Informational, 0b1)

src/tests/tracing/eventpipe/eventsvalidation/ExceptionThrown_V1.cs:22

  • With the obsolete native AOT special casing removed, verify that the unified approach to event count expectations in ExceptionThrown tests still yields consistent and correct test results.
 new EventPipeProvider("Microsoft-Windows-DotNETRuntime", EventLevel.Warning, 0b1000_0000_0000_0000)

@MichalStrehovsky

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-nativeaot-outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovskyMichalStrehovsky changed the title Check for obsolete native AOT test special casingRemove obsolete native AOT test special casingJun 27, 2025
@MichalStrehovskyMichalStrehovsky removed the NO-REVIEW Experimental/testing PR, do NOT review it label Jun 27, 2025

@jkotasjkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@MichalStrehovsky
MichalStrehovsky merged commit d38966f into dotnet:mainJun 27, 2025
@MichalStrehovsky
MichalStrehovsky deleted the eventingtests branch June 27, 2025 14:56
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Jul 28, 2025
Sign up for freeto 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.

3 participants

@MichalStrehovsky@jkotas