Skip to content

[DO NOT MERGE] Test-only: Inject FailFast in GC test for crash dump infrastructure validation#125746

Draft
mrsharm wants to merge 1 commit intodotnet:mainfrom
mrsharm:musharm/BREAKGCTEST
Draft

[DO NOT MERGE] Test-only: Inject FailFast in GC test for crash dump infrastructure validation#125746
mrsharm wants to merge 1 commit intodotnet:mainfrom
mrsharm:musharm/BREAKGCTEST

Conversation

@mrsharm
Copy link
Member

@mrsharm mrsharm commented Mar 18, 2026

DO NOT MERGE - Testing Only

This PR intentionally injects an Environment.FailFast call into the GC/API/GC/Collect test to trigger a crash and validate that crash dump collection infrastructure in Helix is working correctly.

Changes

  • Added Environment.FailFast(...) to src/tests/GC/API/GC/Collect.cs to force a process abort during test execution

Purpose

  • Validate that crash dumps are generated and collected by Helix when a test process aborts
  • This PR is not intended to be merged and will be closed after testing is complete

Copilot AI review requested due to automatic review settings March 18, 2026 21:05
@mrsharm
Copy link
Member Author

mrsharm commented Mar 18, 2026

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet-policy-service
Copy link
Contributor

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

@mrsharm
Copy link
Member Author

mrsharm commented Mar 18, 2026

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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 injects an intentional hard crash into an existing GC API test (GC/API/GC/Collect) to validate Helix crash dump collection infrastructure by forcing a FailFast during test execution.

Changes:

  • Added logging plus an unconditional Environment.FailFast(...) call inside the GC.Collect test.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +25 to +26
Console.WriteLine("About to FailFast to force a crash dump...");
Environment.FailFast("Intentional crash for diag-perf-ai E2E testing");
Comment on lines +24 to +26
// Intentional crash to generate a dump for diag-perf-ai E2E testing.
Console.WriteLine("About to FailFast to force a crash dump...");
Environment.FailFast("Intentional crash for diag-perf-ai E2E testing");
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.

2 participants