Skip to content

Delete FEATURE_AUTO_TRACE - #127631

Merged
jkotas merged 3 commits into
mainfrom
copilot/remove-feature-autotrace
May 1, 2026
Merged

jkotas merged 3 commits into
mainfrom
copilot/remove-feature-autotrace

Conversation

Copilot AI commented May 1, 2026

Copy link
Copy Markdown
Contributor

Removes the FEATURE_AUTO_TRACE / AutoTrace feature entirely. AutoTrace was a testing infrastructure for automated stress-testing of the Diagnostic Server via EventPipe, controlled via DOTNET_AutoTrace_N_Tracers and DOTNET_AutoTrace_Command environment variables. It was never enabled by default (the cmake variable defaulted to 0).

Changes

  • Delete src/coreclr/vm/autotrace.cpp and autotrace.h
  • Remove autotrace.cpp/autotrace.h entries and FEATURE_AUTO_TRACE block from src/coreclr/vm/CMakeLists.txt
  • Remove FEATURE_AUTO_TRACE block from src/coreclr/clrfeatures.cmake and clrdefinitions.cmake
  • Remove AutoTrace_N_Tracers and AutoTrace_Command config entries from src/coreclr/inc/clrconfigvalues.h
  • Remove AutoTrace section (include + conditionally-compiled implementations) from src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.h
  • Remove AutoTrace section from src/coreclr/vm/eventing/eventpipe/ds-rt-coreclr.h
  • Remove AutoTrace stub section from src/mono/mono/eventpipe/ds-rt-mono.h
  • Remove AutoTrace function declarations from src/native/eventpipe/ds-rt.h
  • Remove ds_rt_auto_trace_* call sites from src/native/eventpipe/ds-server.c
  • Delete docs/workflow/testing/coreclr/automated-stress-testing-diagnostic-server.md

Note

This PR was created with the assistance of GitHub Copilot.

Comment thread src/coreclr/vm/CMakeLists.txt Resolved
Comment thread src/native/eventpipe/ds-server.c Resolved
Copilot AI review requested due to automatic review settings May 1, 2026 01:16
@jkotas
jkotas marked this pull request as ready for review May 1, 2026 01:16

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

This pull request removes the FEATURE_AUTO_TRACE / AutoTrace infrastructure used for automated Diagnostic Server (EventPipe) stress-testing, including its build-time feature flag, runtime shims, configuration entries, and documentation, since it was not enabled by default and is being retired.

Changes:

  • Removes AutoTrace entry points and call sites from the native Diagnostic Server implementation (ds-server.c) and its runtime abstraction header (ds-rt.h).
  • Deletes the CoreCLR AutoTrace implementation (autotrace.cpp / autotrace.h) and removes related build wiring (CMakeLists.txt, clrfeatures.cmake, clrdefinitions.cmake) and config knobs (clrconfigvalues.h).
  • Removes AutoTrace shims from CoreCLR, NativeAOT, and Mono EventPipe runtime headers, and deletes the associated testing documentation.

Reviewed changes

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

Show a summary per file
File Description
src/native/eventpipe/ds-server.c Removes AutoTrace init/launch/signal/wait calls from the Diagnostic Server loop and startup.
src/native/eventpipe/ds-rt.h Removes AutoTrace runtime abstraction declarations.
src/mono/mono/eventpipe/ds-rt-mono.h Removes Mono-side AutoTrace stub implementations.
src/coreclr/vm/eventing/eventpipe/ds-rt-coreclr.h Removes CoreCLR-side AutoTrace shims and conditional include.
src/coreclr/vm/CMakeLists.txt Removes AutoTrace sources/headers from VM build inputs and drops FEATURE_AUTO_TRACE definition emission.
src/coreclr/vm/autotrace.h Deletes the AutoTrace header.
src/coreclr/vm/autotrace.cpp Deletes the AutoTrace implementation.
src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.h Removes NativeAOT-side AutoTrace shims and conditional include.
src/coreclr/inc/clrconfigvalues.h Removes AutoTrace-related CLR config values.
src/coreclr/clrfeatures.cmake Removes the FEATURE_AUTO_TRACE feature toggle default.
src/coreclr/clrdefinitions.cmake Removes propagation of FEATURE_AUTO_TRACE into compile definitions.
docs/workflow/testing/coreclr/automated-stress-testing-diagnostic-server.md Deletes the AutoTrace testing documentation.

@jkotas

jkotas commented May 1, 2026

Copy link
Copy Markdown
Member

/ba-g wasm deadletter

@jkotas
jkotas merged commit c7286d5 into main May 1, 2026
157 of 162 checks passed
@jkotas
jkotas deleted the copilot/remove-feature-autotrace branch May 1, 2026 05:54
@github-actions github-actions Bot locked and limited conversation to collaborators May 31, 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.

4 participants