Skip to content

Filter runtime-diagnostics pipeline to SOS tests only#126855

Merged
max-charlamb merged 1 commit intodotnet:mainfrom
max-charlamb:fix/runtime-diagnostics-sos-only
Apr 14, 2026
Merged

Filter runtime-diagnostics pipeline to SOS tests only#126855
max-charlamb merged 1 commit intodotnet:mainfrom
max-charlamb:fix/runtime-diagnostics-sos-only

Conversation

@max-charlamb
Copy link
Copy Markdown
Member

@max-charlamb max-charlamb commented Apr 13, 2026

Summary

Filter the runtime-diagnostics pipeline's cDAC and DAC test legs to only run SOS tests, which are the tests that actually exercise the DAC/cDAC with a locally-built runtime.

Problem

The runtime-diagnostics pipeline runs ALL diagnostics test projects, including EventPipe monitoring, dotnet-counters, DbgShim, and other tests that don't depend on the runtime's DAC implementation. The Microsoft.Diagnostics.Monitoring.EventPipe.UnitTests have been consistently failing since April 10, blocking all builds.

These other tests are already covered by the diagnostics repo's own CI (diagnostics-public-ci) and don't need to run against a privately-built runtime.

Changes

  • runtime-diag-job.yml: Add classFilter parameter that passes -classfilter to the diagnostics build.ps1
  • runtime-diagnostics.yml: Set classFilter: SOS for both cDAC and DAC legs

This uses the existing -classfilter support in the diagnostics build.ps1, which translates to xunit's -class filter. Only the SOS test class (27+ test methods covering DivZero, StackTests, OtherCommands, GCTests, DotnetDumpCommands, etc.) will run.

Note

This PR was generated with the assistance of GitHub Copilot.

@max-charlamb

This comment has been minimized.

Add classFilter parameter to runtime-diag-job.yml that passes
-classfilter to the diagnostics build script, filtering xunit
tests by class name. Set classFilter to SOS for both cDAC and
DAC legs, avoiding unrelated EventPipe test failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@max-charlamb max-charlamb force-pushed the fix/runtime-diagnostics-sos-only branch from 23df05f to 6473591 Compare April 13, 2026 23:48
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@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.

@max-charlamb
Copy link
Copy Markdown
Member Author

/ba-g runtime diagnostics pipeline change only

@max-charlamb max-charlamb merged commit a6329eb into dotnet:main Apr 14, 2026
180 of 189 checks passed
@max-charlamb
Copy link
Copy Markdown
Member Author

/azp run runtime-diagnostics

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.

3 participants