Skip to content

[cDAC] implement GetVersionId - #133535

Merged
rcj1 merged 2 commits into
dotnet:mainfrom
rcj1:fix-GetVersionId
Sep 11, 2026
Merged

rcj1 merged 2 commits into
dotnet:mainfrom
rcj1:fix-GetVersionId

Conversation

@rcj1

@rcj1 rcj1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

Qualify System.Guid so the cDAC unit tests compile in CI configurations without implicit System imports.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 62628c2d-6b16-4c8a-997e-adfcd2c69966
@rcj1
rcj1 marked this pull request as ready for review September 11, 2026 01:28
Copilot AI lite review requested due to automatic review settings September 11, 2026 01:28
@rcj1
rcj1 merged commit 3898c71 into dotnet:main Sep 11, 2026
68 of 73 checks passed
@rcj1
rcj1 deleted the fix-GetVersionId branch September 11, 2026 01:29
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Copilot review overview

🔵 Needs a closer look

The missing-metadata path must return the specific CORDBG_E_MISSING_METADATA result.

Review tier: Lite
Findings: None

What changed in this PR

Implements IXCLRDataModule.GetVersionId using ECMA metadata and adds cross-architecture unit coverage.

Changes:

  • Adds MVID retrieval and HRESULT handling.
  • Tests successful retrieval and null-pointer validation.
  • Supports custom MVIDs in test metadata.
File Summary
src/​native/​managed/​cdac/​tests/​UnitTests/​IXCLRDataProcessTests.cs Adds MVID retrieval and error-handling tests.
src/​native/​managed/​cdac/​Microsoft.Diagnostics.DataContractReader.Legacy/​ClrDataModule.cs Implements GetVersionId; missing metadata must return CORDBG_E_MISSING_METADATA instead of E_NOTIMPL.

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.

3 participants