Skip to content

Remove COMPLUS_* environment variable references#5714

Merged
hoyosjs merged 4 commits intomainfrom
copilot/remove-complus-environment-variables
Feb 13, 2026
Merged

Remove COMPLUS_* environment variable references#5714
hoyosjs merged 4 commits intomainfrom
copilot/remove-complus-environment-variables

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Minimum supported runtime is now .NET 8, so COMPLUS_* env var fallbacks are unnecessary — all config uses DOTNET_*.

  • ProcessRunner.WithRuntimeConfiguration: Remove COMPlus_ fallback (the existing comment explicitly called for this)
  • documentation/FAQ.md: Remove stale note about .NET 6 requiring COMPlus_ prefix

Files in src/shared/ (clrconfignocache.h, resource.h) are synced from dotnet/runtime and left unchanged — BFA_BAD_COMPLUS_SIG refers to COM+ metadata signatures, not env vars.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@max-charlamb
Copy link
Member

@copilot , remove the changes to nuget.exe. This binary file should not have changed.

Copilot AI changed the title [WIP] Remove references to COMPLUS_* environment variables Remove COMPLUS_* environment variable references Feb 12, 2026
Copilot AI requested a review from max-charlamb February 12, 2026 19:32
@max-charlamb
Copy link
Member

@copilot , remove the .gitignore changes

Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot , remove the changes to nuget.exe. This binary file should not have changed.

Reverted the .gitignore change in 933a2a2. The PR now only contains the intended ProcessRunner.cs and FAQ.md changes.

Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot , remove the .gitignore changes

Already reverted in 933a2a2. The PR currently only modifies ProcessRunner.cs and FAQ.md.

@max-charlamb max-charlamb marked this pull request as ready for review February 12, 2026 19:45
@max-charlamb max-charlamb requested a review from a team as a code owner February 12, 2026 19:45
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

Removes legacy COMPlus_* environment variable fallbacks/references now that the repo’s minimum supported runtime is .NET 8 and configuration is expected to use DOTNET_* prefixes.

Changes:

  • Update ProcessRunner.WithRuntimeConfiguration to only set DOTNET_{key} (drop COMPlus_{key} fallback).
  • Remove the outdated .NET 6 COMPlus_ prefix note from the FAQ entry about DOTNET_DbgMiniDumpType.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Microsoft.Diagnostics.TestHelpers/ProcessRunner.cs Removes COMPlus_ env var fallback from runtime configuration helper.
documentation/FAQ.md Updates troubleshooting guidance to remove stale COMPlus_ prefix note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

If that doesn't work, try using the `setclrpath <directory>` command with a directory that contains the matching version of the DAC module. This is useful for private runtimes or debug builds that haven't been published to our symbol servers.

If this is a dump, the problem could also be that the dump is missing some memory required by SOS. Try generating a "full" dump (the default with `dotnet-dump collect` without a `--type` option) or add setting the crash dump generation (createdump) environment variable `DOTNET_DbgMiniDumpType=4` (.NET 6 and below require `COMPlus_` prefix instead of `DOTNET_`). For more details on crash dump generation see [here](https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dumps#collecting-dumps-on-crash).
If this is a dump, the problem could also be that the dump is missing some memory required by SOS. Try generating a "full" dump (the default with `dotnet-dump collect` without a `--type` option) or add setting the crash dump generation (createdump) environment variable `DOTNET_DbgMiniDumpType=4`. For more details on crash dump generation see [here](https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dumps#collecting-dumps-on-crash).
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The sentence is grammatically incorrect: "or add setting" should be rephrased (e.g., "or by setting" / "or set") to improve readability of the troubleshooting guidance.

Copilot uses AI. Check for mistakes.
@max-charlamb max-charlamb enabled auto-merge (squash) February 12, 2026 19:56
@max-charlamb
Copy link
Member

/ba-g Unrelated test infra failure

@hoyosjs hoyosjs disabled auto-merge February 13, 2026 23:00
@hoyosjs hoyosjs merged commit 51337c8 into main Feb 13, 2026
22 of 25 checks passed
@hoyosjs hoyosjs deleted the copilot/remove-complus-environment-variables branch February 13, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants